API reference

API reference · Organizations

Create an organization

POST/api/orgsSigned in session

The creator becomes its owner. An organization is never ownerless.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
namerequiredstring

Example

{
  "name": "string"
}

Answer 201

Created.

Fields of the 201 answer
FieldTypeWhat it is
idinteger
namestring
createdAtinteger
rolestring

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 409OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter