For the complete documentation index, see llms.txt. This page is also available as Markdown.

Organizations

Create Organization

post

Create an organization with the caller as its owner.

Takes a name; the slug is derived from it with a random suffix, so two organizations may share a name and a later rename does not move the slug. A default workspace is provisioned alongside, because an organization without one has nowhere to hold a key, a budget or a usage row.

The caller is not moved into it. Switching is a separate call (POST /me/switch), so creating an organization does not change what the rest of the caller's session is looking at.

Where signup is closed, the caller must already be an active member of an organization; a caller with none is refused with a 403.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Create an organization, with the caller as its owner.

Name only. The slug is derived server-side and never sent, because it is unique where the name is not: two organizations may share a name, and a rename deliberately does not move the slug.

namestring · min: 1 · max: 255Required
Responses
201

Successful Response

application/json
created_atstring · date-timeRequired
created_by_user_idstring · uuid · nullableOptional
idstring · uuidRequired
namestring · max: 255Required
slugstring · max: 255Required
updated_atstring · date-time · nullableOptional
post/api/v1/organizations
POST /api/v1/organizations HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
{
  "created_at": "2026-01-01T00:00:00.000Z",
  "created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "slug": "text",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Get Active Organization Context

get

Get the caller's active organization and their standing in it.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

An organization plus the caller's standing in it.

What every tenancy page reads first: which organization it is looking at, and what the caller may do there.

deployment_operatorbooleanOptionalDefault: false
organization_member_idstring · uuidRequired
provider_key_encryption_availablebooleanOptionalDefault: false
rolestringRequired
statusstringRequired
get/api/v1/organizations/me
GET /api/v1/organizations/me HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "caller": {
    "claims_deployment": true,
    "email": "text",
    "full_name": "text",
    "has_password": true,
    "user_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "deployment_operator": false,
  "organization": {
    "created_at": "2026-01-01T00:00:00.000Z",
    "created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "slug": "text",
    "updated_at": "2026-01-01T00:00:00.000Z"
  },
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider_key_encryption_available": false,
  "role": "text",
  "status": "text",
  "workspace_memberships": [
    {
      "name": "text",
      "role": "text",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Update Active Organization

patch

Rename the caller's active organization.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body
namestring · min: 1 · max: 255Required
Responses
200

Successful Response

application/json

An organization plus the caller's standing in it.

What every tenancy page reads first: which organization it is looking at, and what the caller may do there.

deployment_operatorbooleanOptionalDefault: false
organization_member_idstring · uuidRequired
provider_key_encryption_availablebooleanOptionalDefault: false
rolestringRequired
statusstringRequired
patch/api/v1/organizations/me
PATCH /api/v1/organizations/me HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
{
  "caller": {
    "claims_deployment": true,
    "email": "text",
    "full_name": "text",
    "has_password": true,
    "user_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "deployment_operator": false,
  "organization": {
    "created_at": "2026-01-01T00:00:00.000Z",
    "created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "slug": "text",
    "updated_at": "2026-01-01T00:00:00.000Z"
  },
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider_key_encryption_available": false,
  "role": "text",
  "status": "text",
  "workspace_memberships": [
    {
      "name": "text",
      "role": "text",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Delete Active Organization

delete

Delete the caller's active organization, if it has no usage, and move the caller out of it.

Owners and admins only. Its workspaces, memberships, invitations and organization-level settings go with it. Refused for the deployment's default organization, for the only organization the caller belongs to, and for one whose workspaces still hold usage, API keys, aliases or routing policies, so a deletion never takes spend history with it.

Answers with the caller's context in the organization they are moved to, their oldest other one.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

An organization plus the caller's standing in it.

What every tenancy page reads first: which organization it is looking at, and what the caller may do there.

deployment_operatorbooleanOptionalDefault: false
organization_member_idstring · uuidRequired
provider_key_encryption_availablebooleanOptionalDefault: false
rolestringRequired
statusstringRequired
delete/api/v1/organizations/me
DELETE /api/v1/organizations/me HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "caller": {
    "claims_deployment": true,
    "email": "text",
    "full_name": "text",
    "has_password": true,
    "user_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "deployment_operator": false,
  "organization": {
    "created_at": "2026-01-01T00:00:00.000Z",
    "created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "slug": "text",
    "updated_at": "2026-01-01T00:00:00.000Z"
  },
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider_key_encryption_available": false,
  "role": "text",
  "status": "text",
  "workspace_memberships": [
    {
      "name": "text",
      "role": "text",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

List Active Organization Domains

get

List the caller's organization's email-domain claims. Owners and admins only.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json
countintegerRequired
get/api/v1/organizations/me/domains
GET /api/v1/organizations/me/domains HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

{
  "count": 1,
  "data": [
    {
      "created_at": "2026-01-01T00:00:00.000Z",
      "default_role": "member",
      "domain": "text",
      "enabled": true,
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "organization_id": "123e4567-e89b-12d3-a456-426614174000",
      "proof_expires_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "verification_record": "text",
      "verified_at": "2026-01-01T00:00:00.000Z"
    }
  ]
}

Create Active Organization Domain

post

Claim an email domain for the caller's organization. Owners and admins only.

The claim lands unverified and does nothing until POST /me/domains/{id}/verify finds the record in verification_record published at the domain's apex. A public email provider is refused outright, and a domain another organization already claims answers 409 without saying who holds it.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body
default_rolestring · enumOptionalDefault: memberPossible values:
domainstring · min: 1 · max: 255Required
enabledbooleanOptionalDefault: true
Responses
201

Successful Response

application/json

A claim as its organization's admins see it.

Carries verification_record (the whole string to publish) rather than the raw token: the admin never has a use for the token on its own, and one field that can be copied verbatim into a DNS panel is harder to get wrong than a prefix they must remember to prepend.

created_atstring · date-timeRequired
default_rolestring · max: 32OptionalDefault: member
domainstring · max: 255Required
enabledbooleanOptionalDefault: true
idstring · uuidRequired
organization_idstring · uuidRequired
proof_expires_atstring · date-time · nullableOptional
updated_atstring · date-time · nullableOptional
verification_recordstringRequired
verified_atstring · date-time · nullableOptional
post/api/v1/organizations/me/domains
POST /api/v1/organizations/me/domains HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "default_role": "member",
  "domain": "text",
  "enabled": true
}
{
  "created_at": "2026-01-01T00:00:00.000Z",
  "default_role": "member",
  "domain": "text",
  "enabled": true,
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "proof_expires_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "verification_record": "text",
  "verified_at": "2026-01-01T00:00:00.000Z"
}

Update Active Organization Domain

patch

Change a claim's auto-join role or enabled flag. Owners and admins only.

The domain itself and its verification state are not editable: a different domain is a different claim and needs its own proof.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
organization_domain_idstring · uuidRequired
Body
default_rolestring · enum · nullableOptionalPossible values:
enabledboolean · nullableOptional
Responses
200

Successful Response

application/json

A claim as its organization's admins see it.

Carries verification_record (the whole string to publish) rather than the raw token: the admin never has a use for the token on its own, and one field that can be copied verbatim into a DNS panel is harder to get wrong than a prefix they must remember to prepend.

created_atstring · date-timeRequired
default_rolestring · max: 32OptionalDefault: member
domainstring · max: 255Required
enabledbooleanOptionalDefault: true
idstring · uuidRequired
organization_idstring · uuidRequired
proof_expires_atstring · date-time · nullableOptional
updated_atstring · date-time · nullableOptional
verification_recordstringRequired
verified_atstring · date-time · nullableOptional
patch/api/v1/organizations/me/domains/{organization_domain_id}
PATCH /api/v1/organizations/me/domains/{organization_domain_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "default_role": "member",
  "enabled": true
}
{
  "created_at": "2026-01-01T00:00:00.000Z",
  "default_role": "member",
  "domain": "text",
  "enabled": true,
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "proof_expires_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "verification_record": "text",
  "verified_at": "2026-01-01T00:00:00.000Z"
}

Delete Active Organization Domain

delete

Drop an email-domain claim. Owners and admins only.

Members who already joined through it keep their membership: they are colleagues by then, not an artifact of the claim.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
organization_domain_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

delete/api/v1/organizations/me/domains/{organization_domain_id}
DELETE /api/v1/organizations/me/domains/{organization_domain_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

Verify Active Organization Domain

post

Prove control of a claimed domain via its DNS TXT record. Owners and admins only.

Idempotent, and answers 400 while the record is not visible yet, which is the expected answer straight after publishing one.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
organization_domain_idstring · uuidRequired
Responses
200

Successful Response

application/json

A claim as its organization's admins see it.

Carries verification_record (the whole string to publish) rather than the raw token: the admin never has a use for the token on its own, and one field that can be copied verbatim into a DNS panel is harder to get wrong than a prefix they must remember to prepend.

created_atstring · date-timeRequired
default_rolestring · max: 32OptionalDefault: member
domainstring · max: 255Required
enabledbooleanOptionalDefault: true
idstring · uuidRequired
organization_idstring · uuidRequired
proof_expires_atstring · date-time · nullableOptional
updated_atstring · date-time · nullableOptional
verification_recordstringRequired
verified_atstring · date-time · nullableOptional
post/api/v1/organizations/me/domains/{organization_domain_id}/verify
POST /api/v1/organizations/me/domains/{organization_domain_id}/verify HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "created_at": "2026-01-01T00:00:00.000Z",
  "default_role": "member",
  "domain": "text",
  "enabled": true,
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "proof_expires_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "verification_record": "text",
  "verified_at": "2026-01-01T00:00:00.000Z"
}

Invite Active Organization Member

post

Invite an address to the caller's active organization by email.

Organization owners and admins only. Unlike POST /me/members, the membership lands invited rather than active: it becomes active once the recipient accepts (POST /api/v1/invitations/accept). When the email did not go out (mail_sent is false: mail is not configured, the send failed, or the invitation mail limit was reached), the response carries the accept link so the caller can share it themselves. An address whose invitation is still pending is refused; reissue that invitation to send a new link.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Invite an address to the caller's organization, optionally into workspaces at once.

Field-for-field ActiveOrganizationMemberCreateRequest's twin: the two requests ask for the same thing and differ only in what creating one produces (this lands invited and emails a link; that lands active immediately).

emailstring · email · max: 255Required
rolestring · enumOptionalDefault: memberPossible values:
Responses
201

Successful Response

application/json

What issuing an invitation produces, and whether the email actually went out.

accept_linkstring · nullableOptional

The link to share with the invitee yourself, set only when mail_sent is false. A delivered link goes to the invitee's mailbox alone, so the inviter cannot open it as them.

created_atstring · date-timeRequired
emailstringRequired
expires_atstring · date-timeRequired
invitation_idstring · uuidRequired
mail_limitedbooleanOptional

Whether the email was held back because the organization or the address reached its invitation mail limit for the day. Share the link yourself, or reissue the invitation later to email a new one.

Default: false
mail_sentbooleanRequired

Whether the invitation email was actually dispatched. False when mail is not configured, the send itself failed, or mail_limited.

organization_member_idstring · uuidRequired
rolestringRequired
statusconst: invitedOptionalDefault: invited
post/api/v1/organizations/me/member-invitations
POST /api/v1/organizations/me/member-invitations HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 140

{
  "email": "name@gmail.com",
  "role": "member",
  "workspace_assignments": [
    {
      "role": "member",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}
{
  "accept_link": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "email": "text",
  "expires_at": "2026-01-01T00:00:00.000Z",
  "invitation_id": "123e4567-e89b-12d3-a456-426614174000",
  "mail_limited": false,
  "mail_sent": true,
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "role": "text",
  "status": "invited"
}

Bulk Invite Active Organization Members

post

Invite several addresses to the caller's active organization at once.

Organization owners and admins only. Every address gets the same role and workspace assignments. Each one is checked as POST /me/member-invitations would check it, and an address that is refused lands in failed with the reason rather than failing the request, so the answer is 200 even when some or all were refused. Each invited entry carries its own mail_sent, and its accept link when that is false.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Invite several addresses at once, all with the same role and workspace assignments.

emailsstring[] · min: 1 · max: 100Required
rolestring · enumOptionalDefault: memberPossible values:
Responses
200

Successful Response

application/json

What a bulk invite produced: one entry per submitted address, repeats included, in one of the two lists.

post/api/v1/organizations/me/member-invitations/bulk
POST /api/v1/organizations/me/member-invitations/bulk HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 133

{
  "emails": [
    "text"
  ],
  "role": "member",
  "workspace_assignments": [
    {
      "role": "member",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}
{
  "failed": [
    {
      "detail": "text",
      "email": "text"
    }
  ],
  "invited": [
    {
      "accept_link": "text",
      "created_at": "2026-01-01T00:00:00.000Z",
      "email": "text",
      "expires_at": "2026-01-01T00:00:00.000Z",
      "invitation_id": "123e4567-e89b-12d3-a456-426614174000",
      "mail_limited": false,
      "mail_sent": true,
      "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
      "role": "text",
      "status": "invited"
    }
  ]
}

Revoke Active Organization Member Invitation

delete

Revoke an unaccepted invitation, pending or expired. Organization owners and admins only.

Suspends the paired membership rather than deleting it, the same as removing an active member: re-inviting the same address later revives it.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
invitation_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

delete/api/v1/organizations/me/member-invitations/{invitation_id}
DELETE /api/v1/organizations/me/member-invitations/{invitation_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

Reissue Active Organization Member Invitation

post

Give a pending or expired invitation a new accept link. Organization owners and admins only.

The old link stops working. The new one is emailed as an invitation is, and returned in accept_link when it was not, so a lost link can be recovered whether or not the deployment sends mail.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
invitation_idstring · uuidRequired
Responses
200

Successful Response

application/json

What issuing an invitation produces, and whether the email actually went out.

accept_linkstring · nullableOptional

The link to share with the invitee yourself, set only when mail_sent is false. A delivered link goes to the invitee's mailbox alone, so the inviter cannot open it as them.

created_atstring · date-timeRequired
emailstringRequired
expires_atstring · date-timeRequired
invitation_idstring · uuidRequired
mail_limitedbooleanOptional

Whether the email was held back because the organization or the address reached its invitation mail limit for the day. Share the link yourself, or reissue the invitation later to email a new one.

Default: false
mail_sentbooleanRequired

Whether the invitation email was actually dispatched. False when mail is not configured, the send itself failed, or mail_limited.

organization_member_idstring · uuidRequired
rolestringRequired
statusconst: invitedOptionalDefault: invited
post/api/v1/organizations/me/member-invitations/{invitation_id}/reissue
POST /api/v1/organizations/me/member-invitations/{invitation_id}/reissue HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "accept_link": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "email": "text",
  "expires_at": "2026-01-01T00:00:00.000Z",
  "invitation_id": "123e4567-e89b-12d3-a456-426614174000",
  "mail_limited": false,
  "mail_sent": true,
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "role": "text",
  "status": "invited"
}

List Active Organization Members

get

List the members of the caller's active organization.

search narrows the page and the count together, so a caller offering these members as options can ask for the matches instead of filtering whatever page it happened to fetch.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
skipintegerOptional

Number of records to skip

Default: 0
limitinteger · min: 1 · max: 1000Optional

Maximum number of records to return

Default: 100
searchstring · max: 200 · nullableOptional

Narrow to members whose name or email contains this text, case-insensitively.

Responses
200

Successful Response

application/json
countintegerRequired
get/api/v1/organizations/me/members
GET /api/v1/organizations/me/members HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "attribution": {
        "allowed_models": [
          "text"
        ],
        "allowed_tools": [
          "text"
        ],
        "blocked": true,
        "reserved": 1,
        "spend": 1
      },
      "attribution_user_id": "text",
      "created_at": "2026-01-01T00:00:00.000Z",
      "email": "text",
      "full_name": "text",
      "invitation_expires_at": "2026-01-01T00:00:00.000Z",
      "invitation_id": "123e4567-e89b-12d3-a456-426614174000",
      "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
      "role": "text",
      "status": "text",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "user_id": "123e4567-e89b-12d3-a456-426614174000",
      "workspaces": [
        {
          "ceiling": {
            "budget_id": "text",
            "id": "text",
            "max_budget": 1
          },
          "role": "text",
          "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
          "workspace_member_id": "123e4567-e89b-12d3-a456-426614174000",
          "workspace_name": "text"
        }
      ]
    }
  ]
}

Create Active Organization Member

post

Add a member to the caller's active organization, by email address.

Organization owners and admins only. The member is active immediately, with no invitation to accept and no email sent, so the person has to be told some other way. An address that belongs to no identity yet creates one, which gets in by signing up, by "Forgot your password?" or by a Google or GitHub sign-in; on a deployment with no mail and no provider it waits for an operator's password link, so invite it instead (POST /me/member-invitations), whose link can set its first password.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Add someone to the caller's organization, optionally into workspaces at once.

emailstring · email · max: 255Required
rolestring · enumOptionalDefault: memberPossible values:
Responses
201

Successful Response

application/json

The outcome of adding a member directly.

The platform answers invited on both its branches, because being added there always needs acceptance. A direct add here needs none, so it answers on the other arm of the same union, active, and the invitation fields stay null; inviting answers InviteOrganizationMemberResultPublic.

attribution_user_idstring · nullableOptional
created_atstring · date-time · nullableOptional
emailstringRequired
expires_atstring · date-time · nullableOptional
full_namestring · nullableOptional
invitation_idstring · uuid · nullableOptional
organization_member_idstring · uuid · nullableOptional
rolestringRequired
statusstring · enumRequiredPossible values:
updated_atstring · date-time · nullableOptional
user_idstring · uuid · nullableOptional
post/api/v1/organizations/me/members
POST /api/v1/organizations/me/members HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 140

{
  "email": "name@gmail.com",
  "role": "member",
  "workspace_assignments": [
    {
      "role": "member",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}
{
  "attribution_user_id": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "email": "text",
  "expires_at": "2026-01-01T00:00:00.000Z",
  "full_name": "text",
  "invitation_id": "123e4567-e89b-12d3-a456-426614174000",
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "role": "text",
  "status": "active",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "user_id": "123e4567-e89b-12d3-a456-426614174000"
}

Update Active Organization Member

patch

Change a member's role or status. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
organization_member_idstring · uuidRequired
Body
rolestring · enum · nullableOptionalPossible values:
statusstring · enum · nullableOptionalPossible values:
Responses
200

Successful Response

application/json

A member row joined to the identity behind it, as the roster shows it.

Field-for-field the platform's shape, so the ported roster page is not rewritten around a new contract, except that email is nullable here (a local operator identity has no sign-in address).

invitation_id and invitation_expires_at name an invited row's current invitation, which may have expired, so the roster can offer to revoke or reissue it.

attribution_user_id is the addition the platform has no counterpart for. Keys, budgets, and usage attach to the gateway's string-keyed users row, not to this UUID identity, so this carries the user_id a caller passes to when minting a key for this member. It is null when no usable row exists (nobody minted one, or it was soft-deleted through soft-deleted), which is the signal not to offer this member as a key owner: key creation would refuse. How the two ids converge is the open question in otari-ai#1727; this field is the join until it is answered, and is what lets either answer land without the dashboard changing.

attribution_user_idstring · nullableOptional
created_atstring · date-timeRequired
emailstring · nullableOptional
full_namestring · nullableOptional
invitation_expires_atstring · date-time · nullableOptional

When the invitation in invitation_id expires, or expired. Null when there is none.

invitation_idstring · uuid · nullableOptional
organization_member_idstring · uuid · nullableOptional
rolestringRequired
statusstringRequired
updated_atstring · date-time · nullableOptional
user_idstring · uuid · nullableOptional
patch/api/v1/organizations/me/members/{organization_member_id}
PATCH /api/v1/organizations/me/members/{organization_member_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "role": "owner",
  "status": "active"
}
{
  "attribution": {
    "allowed_models": [
      "text"
    ],
    "allowed_tools": [
      "text"
    ],
    "blocked": true,
    "reserved": 1,
    "spend": 1
  },
  "attribution_user_id": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "email": "text",
  "full_name": "text",
  "invitation_expires_at": "2026-01-01T00:00:00.000Z",
  "invitation_id": "123e4567-e89b-12d3-a456-426614174000",
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "role": "text",
  "status": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "user_id": "123e4567-e89b-12d3-a456-426614174000",
  "workspaces": [
    {
      "ceiling": {
        "budget_id": "text",
        "id": "text",
        "max_budget": 1
      },
      "role": "text",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
      "workspace_member_id": "123e4567-e89b-12d3-a456-426614174000",
      "workspace_name": "text"
    }
  ]
}

Remove Active Organization Member

delete

Remove a member by suspending their membership, keeping their history resolvable.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
organization_member_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

delete/api/v1/organizations/me/members/{organization_member_id}
DELETE /api/v1/organizations/me/members/{organization_member_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

List Caller Organization Memberships

get

List the organizations the caller belongs to, and their role in each.

The caller's own active memberships, not a directory of the deployment's organizations: this is what an organization switcher renders, and one row carries is_active_organization so it can mark the current one. Not to be confused with GET /me/members, which is the active organization's roster.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
skipintegerOptional

Number of records to skip

Default: 0
limitinteger · min: 1 · max: 1000Optional

Maximum number of records to return

Default: 100
Responses
200

Successful Response

application/json
countintegerRequired
get/api/v1/organizations/me/memberships
GET /api/v1/organizations/me/memberships HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "is_active_organization": false,
      "organization": {
        "created_at": "2026-01-01T00:00:00.000Z",
        "created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "text",
        "slug": "text",
        "updated_at": "2026-01-01T00:00:00.000Z"
      },
      "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
      "role": "text",
      "status": "text"
    }
  ]
}

List Caller Pending Memberships

get

List the organization invitations still awaiting the caller.

The invitee's side of the invitation flow, where /me/member-invitations is the admin's. Not to be confused with GET /me/memberships, which lists the organizations the caller is already an active member of and deliberately omits an invited one.

Takes no token, unlike /api/v1/invitations/*: those are public because the recipient of an emailed link holds nothing else to prove anything with, while this caller is authenticated as the addressee and the membership's own user_id is what scopes the answer. An invitation whose deadline has passed is omitted rather than listed as unactionable.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
skipintegerOptional

Number of records to skip

Default: 0
limitinteger · min: 1 · max: 1000Optional

Maximum number of records to return

Default: 100
Responses
200

Successful Response

application/json
countintegerRequired
get/api/v1/organizations/me/pending-memberships
GET /api/v1/organizations/me/pending-memberships HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "created_at": "2026-01-01T00:00:00.000Z",
      "email": "text",
      "expires_at": "2026-01-01T00:00:00.000Z",
      "invitation_id": "123e4567-e89b-12d3-a456-426614174000",
      "organization_id": "123e4567-e89b-12d3-a456-426614174000",
      "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
      "organization_name": "text",
      "role": "text"
    }
  ]
}

Accept Caller Pending Membership

post

Accept an invitation addressed to the caller, resolving it to an active membership.

Does the same work as POST /api/v1/invitations/accept, including the workspace assignments parked at invite time, and answers the same shape. Addressed by membership id rather than by token: the caller is already the addressee, so a token would add nothing their session does not carry.

Idempotent for any membership the caller already holds active, which is what two clicks before the list refreshes produces: it answers that membership's organization and role rather than a 404 for an action that worked. Deliberately not narrowed to memberships that got there by accepting, which would cost a lookup to tell the two apart and answer a caller nothing they cannot already read from GET /me/memberships.

Answers 404 for a membership that is not the caller's own, whether or not it exists, and for one of theirs that is neither active nor holding an invitation. An invitation that has lapsed answers 400.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
organization_member_idstring · uuidRequired
Responses
200

Successful Response

application/json

What accepting produces: enough for the accept page to say where the visitor landed.

No session and no token. When the request carried a password, the identity can sign in straight away; otherwise it stays password-less until claimed by signup or a provider sign-in.

can_sign_inbooleanOptional

Whether the invited address can sign in now, with a password (this accept's included) or through a provider. False when it accepted without one and has never signed in.

Default: true
organization_namestringRequired
password_setbooleanOptional

Whether this accept set the identity's password.

Default: false
rolestringRequired
verification_pendingbooleanOptional

Whether the invited address chose a password through signup and has not verified it yet, so it has to open its verification link before it can sign in.

Default: false
post/api/v1/organizations/me/pending-memberships/{organization_member_id}/accept
POST /api/v1/organizations/me/pending-memberships/{organization_member_id}/accept HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "can_sign_in": true,
  "organization_name": "text",
  "password_set": false,
  "role": "text",
  "verification_pending": false,
  "ways_in": [
    "provider"
  ]
}

Decline Caller Pending Membership

post

Decline an invitation addressed to the caller.

Lands the pair where a revoke does: the invitation cancelled and the membership suspended rather than deleted, which is what stops the emailed link from later reviving a declined invitation. A future invite to the same address revives the membership.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
organization_member_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

post/api/v1/organizations/me/pending-memberships/{organization_member_id}/decline
POST /api/v1/organizations/me/pending-memberships/{organization_member_id}/decline HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

Switch Active Organization

post

Point the caller's identity at another organization they belong to.

Distinct from PATCH /me, which renames the organization already active. This changes which organization every later request is scoped to, so workspaces, keys, budgets and usage all follow it. Answers 404 for an organization the caller holds no active membership in, whether or not it exists.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Point the caller's identity at one of the organizations they belong to.

The one request in this surface that names an organization by id, and it is not a hole in the tenant boundary: an id the caller holds no active membership in answers 404, so it says nothing about whether the organization exists.

organization_idstring · uuidRequired
Responses
200

Successful Response

application/json

An organization plus the caller's standing in it.

What every tenancy page reads first: which organization it is looking at, and what the caller may do there.

deployment_operatorbooleanOptionalDefault: false
organization_member_idstring · uuidRequired
provider_key_encryption_availablebooleanOptionalDefault: false
rolestringRequired
statusstringRequired
post/api/v1/organizations/me/switch
POST /api/v1/organizations/me/switch HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "organization_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "caller": {
    "claims_deployment": true,
    "email": "text",
    "full_name": "text",
    "has_password": true,
    "user_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "deployment_operator": false,
  "organization": {
    "created_at": "2026-01-01T00:00:00.000Z",
    "created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "slug": "text",
    "updated_at": "2026-01-01T00:00:00.000Z"
  },
  "organization_member_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider_key_encryption_available": false,
  "role": "text",
  "status": "text",
  "workspace_memberships": [
    {
      "name": "text",
      "role": "text",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Last updated

Was this helpful?