API reference

API reference · Organizations

Organizations this account belongs to

GET/api/orgsSigned in session

Answer 200

Memberships and what each role may do.

Fields of the 200 answer
FieldTypeWhat it is
orgsarray of OrgSummary
orgs[].idinteger
orgs[].namestring
orgs[].createdAtinteger
orgs[].ownerUserIdinteger
orgs[].roleOrgRoleowner does everything. admin does everything but delete the organization, and never acts on an owner. member uses the keys. billing reads the money and the trail and changes nothing. One of "owner", "admin", "member", "billing".
orgs[].budgetMicrosinteger or nullThis member's monthly ceiling, in micro USD.
orgs[].permissionsarray of string

Errors

  • 401OpenAI 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