POST
/
environments
/
{environmentId}
/
custom
/
hostnames
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/custom/hostnames \
  --header 'Content-Type: application/json' \
  --data '{
  "hostname": "auth.dynamic.xyz"
}'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "hostname": "auth.dynamic.xyz",
  "status": "active",
  "verificationRecords": [
    {
      "dnsRecordType": "TXT",
      "verificationType": "certificate",
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "errors": "<string>"
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
hostname
string
required
Maximum length: 255

Response

201
application/json
Successfully created
id
string
required
Required string length: 36
hostname
string
required
Maximum length: 255
status
enum<string>
required
Available options:
active,
pending,
error
verificationRecords
object[]
required
errors
string