Create an organization

POST /api/organizations

Create a new organization with the given data.

application/json

Body Required

  • name string Required

    The name of the organization.

    Minimum length is 1, maximum length is 128.

  • description string | null

    The description of the organization.

    Maximum length is 256.

Responses

  • 201

    The organization was created successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

POST /api/organizations
curl \
 -X POST https://[tenant_id].logto.app/api/organizations \
 -H "Content-Type: application/json" \
 -d '{"name":"string","description":"string","createdAt":42.0}'
Request example
{
  "name": "string",
  "description": "string",
  "createdAt": 42.0
}