Skip to main content
POST
https://api.taap.it
/
v1
/
domains
Create Domain
curl --request POST \
  --url https://api.taap.it/v1/domains \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "<string>",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "created_at": "<string>",
  "domain": "<string>"
}
Add a custom domain for branded short links. Request:
cURL
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:
{
  "id": "domain_987654321",
  "created_at": "2024-01-15T10:30:00Z",
  "domain": "links.yourcompany.com"
}

Authorization

Authorization
string
required
Bearer token for API authentication. Format: Bearer YOUR_API_KEY

Request Parameters

domain
string
required
The custom domain name (e.g., “links.yourcompany.com”)
description
string
Optional description for the domain

Response Fields

id
string
required
Unique identifier for the created domain
created_at
string
required
ISO 8601 timestamp when the domain was created
domain
string
required
The custom domain name