Skip to main content
POST
/
api
/
v2
/
account
/
{account_id}
/
attribute
/
domains
Add a domain link to an account
curl --request POST \
  --url https://api.example.com/api/v2/account/{account_id}/attribute/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain_name": "acme.com"
}
'
{
  "data": {
    "domain_name": "<string>",
    "is_primary": true
  }
}

Authorizations

Authorization
string
header
required

Reevo API key passed as Authorization: Bearer <api-key>.

Path Parameters

account_id
string<uuid>
required

Body

application/json

POST /account/{id}/attribute/domains body.

Adds one domain link to the account. The first active domain auto-promotes to primary inside AccountService.add_domain_to_account; is_primary is not part of the add body (set it afterward via the per-item PATCH).

domain_name
string
required

Response

Successful Response

Single-item response for the domains sub-resource verbs.

data is the raw AccountDomainRead item (keyed by domain_name, no server-minted id) — the add / set-primary / move responses each carry the one affected domain. remove returns 204 with no body.

data
AccountDomainRead · object
required

Read payload for the account_domain value type.

Keyed by domain_name (no separate item id); is_primary flags the account's primary domain and status carries the link lifecycle state.