Skip to main content
An Organization groups the Entities that a client runs as one business. Every Entity belongs to exactly one Organization. Users reach Entities through an Organization Membership, which carries one Role and covers every Entity of the Organization, including Entities added later. See Access and roles for what each Role allows. Use this page to manage Organizations themselves. To grant, change, or revoke a User’s Membership, use the Onboarding API. To move an Entity to another Organization, use PATCH /api/entities/:entityId/organization.
Every route below except GET /organizations is restricted to Users with the global role = staff. Any other caller receives 403.

GET /organizations

List the Organizations you can create Entities in, each with the Entities it holds. Use it to pick the organizationId for POST /api/entities.
  • Global staff Users see every Organization.
  • Other Users see the Organizations where they hold the staff Role.
  • An API key confined to one Entity receives an empty array.
Response 200: an array of Organization summaries.

POST /organizations

Create an empty Organization. Add Entities to it by creating them with its organizationId or by moving existing Entities into it. Body Response 201
A name that another Organization already uses, in any case, returns 409 with ORGANIZATION_NAME_ALREADY_EXISTS_ERROR.

GET /organizations/:organizationId

Get one Organization with the Entities it holds. The response has the same shape as one item of GET /organizations.

PATCH /organizations/:organizationId

Rename an Organization. The body and validation rules match POST /organizations. Response 200: the renamed Organization (id, name, createdAt).

DELETE /organizations/:organizationId

Delete an empty Organization. Deleting an Organization also removes every Membership in it. An Organization that still holds an Entity can’t be deleted. The request returns 409 with ORGANIZATION_NOT_EMPTY_ERROR. Move its Entities to another Organization first.
  • Status: 204.

GET /organizations/:organizationId/members

List the Users who hold a Membership in the Organization. Response 200: an array of members.

Domain error codes

Status codes