Organizations
An organization is a tenant inside one of your accounts. It is the boundary that everything else lives in: workspaces, documents (and their folders), and tools all belong to an organization.
What an organization owns
- Workspaces — the chat/RAG environments end users interact with. See Workspaces.
- Documents & folders — files uploaded once at the org level and shared across every workspace in the org. See Documents & knowledge base.
- Tools — HTTP actions defined once and attached to any workspace in the org. See Tools.
Documents and tools are org-owned and shared. You upload a document or define a tool once per organization, then opt individual workspaces in (by embedding the document or attaching the tool). You do not re-upload a file for each workspace.
Addressing and scoping
An organization is addressed by its id (a UUID) in the URL — for example GET /v1/organizations/{orgId}. Every organization call also requires the X-Account-Id header of the account that owns it. An org id that does not belong to the account in the header resolves to 404.
- List an account’s orgs:
GET /v1/organizations - Read one org:
GET /v1/organizations/{orgId}
The org detail returns its parent account context (accountId, accountName) and counts of its workspaces and tools. The collections themselves have their own endpoints — details carry counts, not inlined lists.
Lifecycle
Deleting an organization is destructive and irreversible — its workspaces, documents, and tools go with it. Delete with care.

