Add organization JIT email domain

POST /api/organizations/{id}/jit/email-domains

Add a new email domain for just-in-time provisioning of users in the organization.

Path parameters

  • id string Required

    The unique identifier of the organization.

application/json

Body Required

  • emailDomain string Required

    The email domain to add.

    Minimum length is 1.

Responses

  • 201 application/json

    The email domain was added successfully.

    Hide response attributes Show response attributes object
  • Bad Request

  • Unauthorized

  • Forbidden

  • The email domain is already in use.

POST /api/organizations/{id}/jit/email-domains
curl \
 -X POST https://[tenant_id].logto.app/api/organizations/{id}/jit/email-domains \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"emailDomain":"string"}'
Request examples
{
  "emailDomain": "string"
}
Response examples (201)
{
  "tenantId": "string",
  "organizationId": "string",
  "emailDomain": "string"
}