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

# Create Domain

> Create a new custom domain for your workspace

Add a custom domain for branded deeplinks.

**Request:**

```bash cURL theme={null}
curl -X POST 'https://api.taap.it/v1/domains' \
  -H 'Authorization: Bearer taapit_your_api_key_here' \
  -H 'Content-Type: application/json' \
  -d '{
    "domain": "links.yourcompany.com",
    "description": "Custom domain for marketing links"
  }'
```

**Response:**

```json theme={null}
{
  "id": "domain_987654321",
  "created_at": "2024-01-15T10:30:00Z",
  "domain": "links.yourcompany.com"
}
```

## Authorization

<ParamField header="Authorization" type="string" required>
  Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
</ParamField>

## Request Parameters

<ParamField body="domain" type="string" required>
  The custom domain name (e.g., "links.yourcompany.com")
</ParamField>

<ParamField body="description" type="string">
  Optional description for the domain
</ParamField>

## Response Fields

<ResponseField name="id" type="string" required>
  Unique identifier for the created domain
</ResponseField>

<ResponseField name="created_at" type="string" required>
  ISO 8601 timestamp when the domain was created
</ResponseField>

<ResponseField name="domain" type="string" required>
  The custom domain name
</ResponseField>
