> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Website

> Add a sending domain

Add a sending domain to the authenticated company. Configure the returned DNS records before sending from the domain.

## Request

<ParamField body="domain" type="string" required>
  Domain to add.
</ParamField>

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/websites" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "mail.example.com"}'
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "website": {
      "domain": "mail.example.com",
      "status": "pending",
      "message": "Domain added. Configure DNS records and verify to start sending."
    }
  }
  ```

  ```json 400 theme={null}
  {
    "success": false,
    "error": "Invalid domain"
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "error": "Unauthorized"
  }
  ```

  ```json 409 theme={null}
  {
    "success": false,
    "code": "DOMAIN_ALREADY_CONFIGURED",
    "error": "Domain already configured",
    "title": "Domain already configured",
    "description": "The domain \"mail.example.com\" is already configured as a sending domain in Sequenzy. Sending domains are globally unique, so the same domain cannot be added to another company.",
    "resolution": "Call list_websites for the current company. If the domain is listed, use check_website for its DNS status. If it is not listed, select the company or account that owns it, remove or reassign the domain, or choose a different sending domain.",
    "docsUrl": "https://docs.sequenzy.com/api-reference/websites/create",
    "details": {
      "domain": "mail.example.com"
    }
  }
  ```

  ```json 500 theme={null}
  {
    "success": false,
    "error": "Failed to create domain"
  }
  ```
</ResponseExample>
