Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Instance Objects

Setup Organization

Deprecated: use organization service v2 AddOrganization instead.

Create a new organization with an administrative user. If no specific roles are sent for the first user, the user will get the role ORG_OWNER.

POST
/admin/v1/orgs/_setup

Request Body

application/json
  1. body
org?
roles?array<string>

specify Org Member Roles for the provided user (default is ORG_OWNER if roles are empty)

human*

oneof field for the user managing the organization

Response Body

Success

application/json
  1. response
details?
orgId?org_id
userId?user_id
Example Request
curl -X POST 'https://example.com/admin/v1/orgs/_setup' \  -H 'Content-Type: application/json' \  -d '{  "human": {}}'
Example Response200
{  "details": {    "sequence": 0,    "creationDate": "2023-01-15T01:30:15.01Z",    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string"  },  "orgId": "string",  "userId": "string"}

Was this page helpful?