Custom Domains

Create domain [WRITE] [PRO]

Changed on
post/v2/network/domain/{namespace}

Request

  • Base URL
    https://api.endpoints.huggingface.cloud (the document declares no server; this is the origin it was published from)
  • URL
    https://api.endpoints.huggingface.cloud/v2/network/domain/{namespace}
  • Auth
    HTTP bearer

Path parameters

namespacestring required

User or organization name

Request body

domainstring required

Fully qualified domain name

Example request

{
  "domain": "api.example.com"
}

Response

Domain created successfully

createdAtstring date-time required

When the domain was registered

domainstring required

Fully qualified domain name

Example response

{
  "domain": "api.example.com"
}

Changes