Create domain
Create a new domain with the given data. The maximum domain number is 1, once created, can not be modified, you'll have to delete and recreate one.
POST /api/domains
curl \
-X POST https://[tenant_id].logto.app/api/domains \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"domain":"string"}'
Request examples
{
"domain": "string"
}
Response examples (201)
{
"id": "string",
"domain": "string",
"status": "PendingVerification",
"errorMessage": "string",
"dnsRecords": [
{
"name": "string",
"type": "string",
"value": "string"
}
]
}