Organization
8 endpoints under /v1/organizations.
Read Current Org
/v1/organizations/currentRead the caller's current organization.
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Update Current Org
/v1/organizations/currentUpdate org name, billing email or settings.
Audited atomically with the mutation: ORGANIZATION_RENAMED iff
name changed, otherwise ORGANIZATION_UPDATED.
Headers
X-Organization-IDstringoptional
Request body
namestringoptionalbilling_emailstring (email)optionalsettingsobjectoptional
Failures return the error envelope; branch on error_code.
List Invitations
/v1/organizations/current/invitationsList pending (unaccepted, unexpired) invitations.
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Create Invitation
/v1/organizations/current/invitationsInvite a new member to the org.
The member_invite OperationSpec enforces max_members, shared
with the agent-tool path. The ORG_INVITATION_SENT audit row commits
with the invitation.
Headers
X-Organization-IDstringoptional
Request body
emailstring (email)requiredrolestringoptional
Failures return the error envelope; branch on error_code.
Revoke Invitation
/v1/organizations/current/invitations/{invitation_id}Revoke a pending invitation. Ownership by the caller's org is checked before delegating, since the service takes only the invitation id; this blocks cross-org deletion.
Path parameters
invitation_idstring (uuid)required
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
List Members
/v1/organizations/current/membersList every member of the caller's org.
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Update Member
/v1/organizations/current/members/{user_id}Change a member's role.
Emits ORG_MEMBER_ROLE_CHANGED; demoting the last owner is refused
(RemoveMemberError).
Path parameters
user_idstring (uuid)required
Headers
X-Organization-IDstringoptional
Request body
rolestringrequired
Failures return the error envelope; branch on error_code.
Remove Member
/v1/organizations/current/members/{user_id}Remove a member from the org, revoking the API keys they owned.
Path parameters
user_idstring (uuid)required
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.