---
title: "Create domain forwarding"
method: POST
path: "/api/domains/v1/forwarding"
tags: ["Domains: Forwarding"]
---

# Create domain forwarding

`POST /api/domains/v1/forwarding`

Create domain forwarding configuration.

Use this endpoint to set up domain redirects to other URLs.

## Request body

- DomainsV1ForwardingStoreRequest
  - `domain` string, required — Domain name
  - `redirect_type` '301' | '302', required — Redirect type
  - `redirect_url` string, required — URL to forward domain to

## Response `200`

Success response

- DomainsV1ForwardingForwardingResource
  - `domain` string, nullable — Domain name
  - `redirect_type` '301' | '302' — Redirect type
  - `redirect_url` string — URL domain is forwarded to
  - `created_at` string, date-time
  - `updated_at` string, date-time, nullable

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/versions/796bd5194565/schema)
