Create domain

POST /api/domains

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.

application/json

Body Required

  • domain string Required

    The domain name, e.g. example.com.

    Minimum length is 1, maximum length is 256.

Responses

  • 201

    The domain was created successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 422

    Validation error. Please check the request body.

POST /api/domains
curl \
 -X POST https://[tenant_id].logto.app/api/domains \
 -H "Content-Type: application/json" \
 -d '{"domain":"string"}'
Request example
{
  "domain": "string"
}