ZITADEL Docs
APIsCore ResourcesV2Organization

Add Organization

Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER.

Required permission:

  • org.create
POST
/v2/organizations

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/v2/organizations" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "details": {
    "sequence": 0,
    "changeDate": "2023-01-15T01:30:15.01Z",
    "resourceOwner": "string",
    "creationDate": "2023-01-15T01:30:15.01Z"
  },
  "organizationId": "string",
  "createdAdmins": [
    {
      "userId": "string",
      "emailCode": "string",
      "phoneCode": "string"
    }
  ]
}

Was this page helpful?