Workspaces
List the workspaces the caller can see in their organization.
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/workspaces HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"count": 1,
"data": [
{
"created_at": "2026-01-01T00:00:00.000Z",
"created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"request_mcp_servers_allowed": false,
"trace_content_enabled": false,
"trace_content_tool_output": true,
"updated_at": "2026-01-01T00:00:00.000Z"
}
]
}Create a workspace in the caller's organization. Owners and admins only.
Enter your API key here (sent as Otari-Key header).
Successful Response
Whether this workspace's keys may name MCP servers by URL in a request.
falseWhether this workspace keeps what its agent sessions were about.
falseWhether this workspace also keeps what each tool returned, where it keeps content and the deployment keeps tool output.
trueValidation Error
POST /api/v1/workspaces HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"description": "text",
"name": "text"
}{
"created_at": "2026-01-01T00:00:00.000Z",
"created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"request_mcp_servers_allowed": false,
"trace_content_enabled": false,
"trace_content_tool_output": true,
"updated_at": "2026-01-01T00:00:00.000Z"
}Get one workspace.
Enter your API key here (sent as Otari-Key header).
Successful Response
Whether this workspace's keys may name MCP servers by URL in a request.
falseWhether this workspace keeps what its agent sessions were about.
falseWhether this workspace also keeps what each tool returned, where it keeps content and the deployment keeps tool output.
trueValidation Error
GET /api/v1/workspaces/{workspace_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"created_at": "2026-01-01T00:00:00.000Z",
"created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"request_mcp_servers_allowed": false,
"trace_content_enabled": false,
"trace_content_tool_output": true,
"updated_at": "2026-01-01T00:00:00.000Z"
}Rename a workspace, change its description, or turn keeping its agent sessions' content or tool output on or off.
Turning either off keeps nothing new of it from the next export on; what is already stored stays until it ages out, or until DELETE .../trace-content deletes it.
Enter your API key here (sent as Otari-Key header).
Let this workspace's keys name MCP servers by URL in a request (mcp_servers), beside the stored servers whose access lists the workspace controls.
Keep what this workspace's agent sessions were about: the prompts, commands and file paths its agents report. Only where the deployment keeps content at all.
Also keep what each tool returned, where this workspace keeps content and the deployment keeps tool output. Turning it off keeps none from the next request on, whatever the deployment allows.
Successful Response
Whether this workspace's keys may name MCP servers by URL in a request.
falseWhether this workspace keeps what its agent sessions were about.
falseWhether this workspace also keeps what each tool returned, where it keeps content and the deployment keeps tool output.
trueValidation Error
PATCH /api/v1/workspaces/{workspace_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"description": "text",
"name": "text",
"request_mcp_servers_allowed": true,
"trace_content_enabled": true,
"trace_content_tool_output": true
}{
"created_at": "2026-01-01T00:00:00.000Z",
"created_by_user_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"request_mcp_servers_allowed": false,
"trace_content_enabled": false,
"trace_content_tool_output": true,
"updated_at": "2026-01-01T00:00:00.000Z"
}Delete a workspace and its memberships. Organization owners and admins only.
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/workspaces/{workspace_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}List a workspace's members.
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/workspaces/{workspace_id}/members HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"count": 1,
"data": [
{
"created_at": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"role": "member",
"status": "active",
"updated_at": "2026-01-01T00:00:00.000Z",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}Add an existing organization member to a workspace.
The 404 for a workspace deleted during the add describes PostgreSQL. SQLite does not name the foreign key it enforced, so it surfaces that race as a 500.
Enter your API key here (sent as Otari-Key header).
Role to assign in this workspace.
memberPossible values: Successful Response
memberactiveThe workspace does not exist, or was deleted during the add.
The user is already a member of the workspace.
Validation Error
POST /api/v1/workspaces/{workspace_id}/members/{user_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"created_at": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"role": "member",
"status": "active",
"updated_at": "2026-01-01T00:00:00.000Z",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}Change a workspace member's role.
Enter your API key here (sent as Otari-Key header).
Role to assign in this workspace.
Successful Response
memberactiveValidation Error
PATCH /api/v1/workspaces/{workspace_id}/members/{user_id}?role=owner HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"created_at": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"role": "member",
"status": "active",
"updated_at": "2026-01-01T00:00:00.000Z",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}Remove a member from a workspace. Idempotent.
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/workspaces/{workspace_id}/members/{user_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}Delete what this workspace's agent sessions were about, keeping the sessions. Its managers only.
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/workspaces/{workspace_id}/trace-content HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}Last updated
Was this helpful?
