Organizations
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.
Enter your API key here (sent as Otari-Key header).
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.
Successful Response
Signup is closed and the caller is not an active member of any organization.
Validation Error
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 the caller's active organization and their standing in it.
Enter your API key here (sent as Otari-Key header).
Successful Response
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.
falsefalseThe caller is an active member of no organization.
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"
}
]
}Rename the caller's active organization.
Enter your API key here (sent as Otari-Key header).
Successful Response
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.
falsefalseValidation Error
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 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.
Enter your API key here (sent as Otari-Key header).
Successful Response
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.
falsefalseIt is the deployment's default organization, or the only one the caller belongs to.
The caller is not an owner or admin of the organization.
The organization still holds usage, API keys, aliases or routing policies.
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 the caller's organization's email-domain claims. Owners and admins only.
Enter your API key here (sent as Otari-Key header).
Successful Response
GET /api/v1/organizations/me/domains HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
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"
}
]
}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.
Enter your API key here (sent as Otari-Key header).
memberPossible values: trueSuccessful Response
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.
membertrueValidation Error
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"
}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.
Enter your API key here (sent as Otari-Key header).
Successful Response
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.
membertrueValidation Error
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"
}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.
Enter your API key here (sent as Otari-Key header).
Successful Response
A human-readable acknowledgment for an operation with nothing to return.
What happened.
Validation Error
DELETE /api/v1/organizations/me/domains/{organization_domain_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}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.
Enter your API key here (sent as Otari-Key header).
Successful Response
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.
membertrueValidation Error
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 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.
Enter your API key here (sent as Otari-Key header).
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).
memberPossible values: Successful Response
What issuing an invitation produces, and whether the email actually went out.
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.
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.
falseWhether the invitation email was actually dispatched. False when mail is not configured, the send itself failed, or mail_limited.
invitedValidation Error
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"
}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.
Enter your API key here (sent as Otari-Key header).
Invite several addresses at once, all with the same role and workspace assignments.
memberPossible values: Successful Response
What a bulk invite produced: one entry per submitted address, repeats included, in one of the two lists.
Validation Error
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 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.
Enter your API key here (sent as Otari-Key header).
Successful Response
A human-readable acknowledgment for an operation with nothing to return.
What happened.
Validation Error
DELETE /api/v1/organizations/me/member-invitations/{invitation_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}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.
Enter your API key here (sent as Otari-Key header).
Successful Response
What issuing an invitation produces, and whether the email actually went out.
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.
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.
falseWhether the invitation email was actually dispatched. False when mail is not configured, the send itself failed, or mail_limited.
invitedValidation Error
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 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.
Enter your API key here (sent as Otari-Key header).
Number of records to skip
0Maximum number of records to return
100Narrow to members whose name or email contains this text, case-insensitively.
Successful Response
Validation Error
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"
}
]
}
]
}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.
Enter your API key here (sent as Otari-Key header).
Add someone to the caller's organization, optionally into workspaces at once.
memberPossible values: Successful Response
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.
Validation Error
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"
}Change a member's role or status. Organization owners and admins only.
Enter your API key here (sent as Otari-Key header).
Successful Response
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.
When the invitation in invitation_id expires, or expired. Null when there is none.
Validation Error
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 a member by suspending their membership, keeping their history resolvable.
Enter your API key here (sent as Otari-Key header).
Successful Response
A human-readable acknowledgment for an operation with nothing to return.
What happened.
Validation Error
DELETE /api/v1/organizations/me/members/{organization_member_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}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.
Enter your API key here (sent as Otari-Key header).
Number of records to skip
0Maximum number of records to return
100Successful Response
Validation Error
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 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.
Enter your API key here (sent as Otari-Key header).
Number of records to skip
0Maximum number of records to return
100Successful Response
Validation Error
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 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.
Enter your API key here (sent as Otari-Key header).
Successful Response
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.
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.
trueWhether this accept set the identity's password.
falseWhether 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.
falseValidation Error
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 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.
Enter your API key here (sent as Otari-Key header).
Successful Response
A human-readable acknowledgment for an operation with nothing to return.
What happened.
Validation Error
POST /api/v1/organizations/me/pending-memberships/{organization_member_id}/decline HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}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.
Enter your API key here (sent as Otari-Key header).
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.
Successful Response
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.
falsefalseValidation Error
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?
