Skip to main content
POST
/
v1
/
workspace
/
website
/
{website_id}
/
domain
Add custom domain
curl --request POST \
  --url https://apidev.lindo.ai/v1/workspace/website/{website_id}/domain \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "www.mybusiness.com"
}
'
{
  "success": true,
  "result": {
    "message": "Custom domain setup initiated",
    "domain": "www.mybusiness.com",
    "dns_records": [
      {
        "record_type": "CNAME",
        "host": "www",
        "value": "proxy.example.com",
        "purpose": "Points your domain to our servers",
        "ttl": 3600
      }
    ],
    "instructions": "Add the following DNS records to your domain registrar to complete the setup."
  }
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Path Parameters

website_id
string
required

Unique identifier of the website

Example:

"website_abc123"

Body

application/json
domain
string
required

Custom domain to add to the website

Example:

"www.mybusiness.com"

Response

Custom domain setup initiated with DNS records

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required