Skip to main content

Third Loop API (1.0.9)

Download OpenAPI specification:Download

The Third Loop API is a REST API. Our API accepts JSON-encoded requests and returns JSON-encoded responses. We use standard HTTP response codes, oauth2 authentication, and clear messaging. Note that your API may differ slightly from this documentation as we tailor functionality to individual accounts.

Agents

Get Public Tools

Retrieve the tools published to your organization, plus the Third Loop ones.

Args: request (Request): The incoming HTTP request. sparse (bool): When True, returns a reduced representation. Defaults to False. tool_service (ToolService): Injected tool service dependency.

Returns: APIListModel[ToolData | ToolData.Sparse]: Public tools.

query Parameters
sparse
boolean (Sparse)
Default: false

Whether to return a sparse representation (minimal fields).

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

List Tool tags

Retrieve the distinct tags in use across the tools available to you.

Responses

Response samples

Content type
application/json
[
  • "string"
]

Get a Tool

Retrieve a single tool by its unique identifier.

path Parameters
tool_id
required
string <uuid> (Tool Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "purpose": "string",
  • "text": "string",
  • "schema": { },
  • "outputSchema": { },
  • "handlers": [
    ],
  • "isCode": false,
  • "mutable": true,
  • "visible": "internal",
  • "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
  • "conditions": [
    ],
  • "tags": [
    ],
  • "codeTool": {
    }
}

Update a Tool

Update an existing Tool. Any fields that you do not specify will be excluded from the update.

path Parameters
tool_id
required
string <uuid> (Tool Id)
Request Body schema: application/json
required
Displayname (string) or Displayname (null) (Displayname)
Description (string) or Description (null) (Description)
Version (integer) or Version (null) (Version)
Islatestversion (boolean) or Islatestversion (null) (Islatestversion)
Purpose (string) or Purpose (null) (Purpose)
Text (string) or Text (null) (Text)
Schema (object) or Schema (null) (Schema)
Outputschema (object) or Outputschema (null) (Outputschema)
Array of Handlers (strings) or Handlers (null) (Handlers)
UserToolCreate (object) or null
Mutable (boolean) or Mutable (null) (Mutable)
Ownerid (string) or Ownerid (null) (Ownerid)
Array of Conditions (objects) or Conditions (null) (Conditions)
Array of Tags (strings) or Tags (null) (Tags)

Responses

Request samples

Content type
application/json
{
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "purpose": "string",
  • "text": "string",
  • "schema": { },
  • "outputSchema": { },
  • "handlers": [
    ],
  • "codeTool": {
    },
  • "mutable": true,
  • "ownerId": "string",
  • "conditions": [
    ],
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "purpose": "string",
  • "text": "string",
  • "schema": { },
  • "outputSchema": { },
  • "handlers": [
    ],
  • "isCode": false,
  • "mutable": true,
  • "visible": "internal",
  • "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
  • "conditions": [
    ],
  • "tags": [
    ],
  • "codeTool": {
    }
}

List Tool Versions

List all the versions for a tool you have access to.

path Parameters
name
required
string (Name)
query Parameters
sparse
boolean (Sparse)
Default: true

Whether to return a sparse representation (minimal fields).

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

List Tools

Returns all the tools that are available for to use with Agents. These tools are grouped by whether they are owned, shared, published to your organization, or built by Third Loop.

Responses

Response samples

Content type
application/json
{
  • "owned": [
    ],
  • "shared": [
    ],
  • "organization": [
    ],
  • "system": [ ]
}

Delete a Tool

Delete a tool by name (and optionally a specific version). Leaving the version empty will remove all versions of the Tool.

query Parameters
name
required
string (Name)

The name of the tool.

version
integer (Version)

Specific version number to delete.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Update a Tool network configuration

Update the network configuration for an existing tool. This allows you to dictate if the tool should have internet access and where it should be allowed to go.

path Parameters
tool_id
required
string <uuid> (Tool Id)
Request Body schema: application/json
required
enableNetwork
boolean (Enablenetwork)
Default: false
Array of Networkendpoints (strings) or Networkendpoints (null) (Networkendpoints)

Responses

Request samples

Content type
application/json
{
  • "enableNetwork": false,
  • "networkEndpoints": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "purpose": "string",
  • "text": "string",
  • "schema": { },
  • "outputSchema": { },
  • "handlers": [
    ],
  • "isCode": false,
  • "mutable": true,
  • "visible": "internal",
  • "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
  • "conditions": [
    ],
  • "tags": [
    ],
  • "codeTool": {
    }
}

Create a Tool

Create a new Tool.

Request Body schema: application/json
required
Displayname (string) or Displayname (null) (Displayname)
name
required
string (Name) [ 1 .. 255 ] characters
Description (string) or Description (null) (Description)
version
required
integer (Version)
isLatestVersion
required
boolean (Islatestversion)
purpose
required
string (Purpose) non-empty
Text (string) or Text (null) (Text)
Schema (object) or Schema (null) (Schema)
Outputschema (object) or Outputschema (null) (Outputschema)
handlers
Array of strings (Handlers) non-empty
Items Enum: "client" "desktop" "server" "sandbox" "code"
isCode
boolean (Iscode)
Default: false
mutable
boolean (Mutable)
Default: true
Ownerid (string) or Ownerid (null) (Ownerid)
Organizationid (string) or Organizationid (null) (Organizationid)
Array of objects (Conditions)
tags
Array of strings (Tags)
UserToolCreate (object) or null

Responses

Request samples

Content type
application/json
{
  • "displayName": "string",
  • "name": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "purpose": "string",
  • "text": "string",
  • "schema": { },
  • "outputSchema": { },
  • "handlers": [
    ],
  • "isCode": false,
  • "mutable": true,
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "conditions": [
    ],
  • "tags": [
    ],
  • "codeTool": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "purpose": "string",
  • "text": "string",
  • "schema": { },
  • "outputSchema": { },
  • "handlers": [
    ],
  • "isCode": false,
  • "mutable": true,
  • "visible": "internal",
  • "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
  • "conditions": [
    ],
  • "tags": [
    ],
  • "codeTool": {
    }
}

Create Tool

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share a Tool

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare a Tool

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke a Tool Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of a Tool

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Publish Tool

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Tool Publication

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unpublish Tool

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Public Instructions

Retrieve the instructions published to your organization, plus the Third Loop ones.

Args: request (Request): The incoming HTTP request. sparse (bool): When True, returns a reduced representation. Defaults to False. instruction_service (InstructionService): Injected instruction service dependency.

Returns: APIListModel[InstructionData | InstructionData.Sparse]: Public instructions.

query Parameters
sparse
boolean (Sparse)
Default: false

Whether to return a sparse representation (minimal fields).

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

List Instruction tags

Retrieve the distinct tags in use across the instructions available to you.

Responses

Response samples

Content type
application/json
[
  • "string"
]

Get an Instruction

Retrieve a single instruction by its unique identifier.

path Parameters
instruction_id
required
string <uuid> (Instruction Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "priority": "LOW",
  • "instructionType": "core",
  • "mutable": true,
  • "visible": "internal",
  • "guidelines": [
    ],
  • "tags": [
    ]
}

Update an Instruction

Update an Instruction. Any fields that you do not specify will be excluded from the update.

path Parameters
instruction_id
required
string <uuid> (Instruction Id)
Request Body schema: application/json
required
Displayname (string) or Displayname (null) (Displayname)
Description (string) or Description (null) (Description)
InstructionPriority (string) or null
InstructionType (string) or null
Mutable (boolean) or Mutable (null) (Mutable)
Ownerid (string) or Ownerid (null) (Ownerid)
Array of Guidelines (objects) or Guidelines (null) (Guidelines)
Array of Tags (strings) or Tags (null) (Tags)

Responses

Request samples

Content type
application/json
{
  • "displayName": "string",
  • "description": "string",
  • "priority": "LOW",
  • "instructionType": "core",
  • "mutable": true,
  • "ownerId": "string",
  • "guidelines": [
    ],
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "priority": "LOW",
  • "instructionType": "core",
  • "mutable": true,
  • "visible": "internal",
  • "guidelines": [
    ],
  • "tags": [
    ]
}

Delete an Instruction

Delete an Instruction. This will permanently remove the instruction and its associated taggings.

Note that deleting an instruction will automatically remove it from associated Agents. This can potentially lead to undesired behavior. It is recommended to ensure that an instruction is no longer associated with any Agents prior to deletion.

path Parameters
instruction_id
required
string <uuid> (Instruction Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

List Instructions

Returns all the instructions that are available for to use with Agents. These instructions are grouped by whether they are owned, shared, published to your organization, or built by Third Loop.

Responses

Response samples

Content type
application/json
{
  • "owned": [
    ],
  • "shared": [
    ],
  • "organization": [
    ],
  • "system": [ ]
}

Create an Instruction

Create a new Instruction. This Instruction should include guidelines about how you want your Agent to behave. This could include things like the language style, level of detail, and effort it uses.

Request Body schema: application/json
required
displayName
string (Displayname) [ 1 .. 255 ] characters
name
required
string (Name) [ 1 .. 255 ] characters
description
required
string (Description) [ 1 .. 1024 ] characters
priority
string (InstructionPriority)
Default: "STANDARD"
Enum: "LOW" "STANDARD" "HIGH" "CRITICAL"

Enumeration defining priority levels for instructions.

Priority levels determine the order and emphasis with which instructions are applied to agent behavior. Higher priority instructions take precedence when conflicts arise.

Attributes: LOW: Lowest priority, applied only when no conflicts exist. STANDARD: Default priority level for most instructions. HIGH: Elevated priority for important behavioral directives. CRITICAL: Highest priority, must always be followed.

instructionType
required
string (InstructionType)
Enum: "core" "section" "guideline" "note" "format"

Enumeration defining categories of instructions.

Instruction types categorize the purpose and scope of an instruction, allowing agents to process different types of directives appropriately.

Attributes: CORE: Fundamental instructions that define core agent behavior. SECTION: Instructions that apply to specific conversation sections. GUIDELINE: General behavioral guidelines and best practices. NOTE: Informational notes that provide context without strict directives. FORMAT: Instructions specifically for output formatting.

mutable
boolean (Mutable)
Default: true
Ownerid (string) or Ownerid (null) (Ownerid)
Organizationid (string) or Organizationid (null) (Organizationid)
Array of objects (Guidelines)
tags
Array of strings (Tags)

Responses

Request samples

Content type
application/json
{
  • "displayName": "string",
  • "name": "string",
  • "description": "string",
  • "priority": "LOW",
  • "instructionType": "core",
  • "mutable": true,
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "guidelines": [
    ],
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "priority": "LOW",
  • "instructionType": "core",
  • "mutable": true,
  • "visible": "internal",
  • "guidelines": [
    ],
  • "tags": [
    ]
}

Create Instruction

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share an Instruction

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare an Instruction

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke an Instruction Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of an Instruction

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Publish Instruction

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Instruction Publication

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unpublish Instruction

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Create an Agent

Create a new agent. An Agent is a logical composition of tools and instructions designed for specific tasks or use cases. An Agent can be configured with any number of tools and instructions and can be designed for general purpose chatting or dedicated workflow use.

Request Body schema: application/json
required
displayName
string (Displayname) [ 1 .. 255 ] characters
name
required
string (Name) [ 1 .. 255 ] characters
description
required
string (Description) [ 1 .. 1024 ] characters
version
required
integer (Version)
isLatestVersion
required
boolean (Islatestversion)
modelId
string (Modelid) non-empty
Default: "anthropic.sonnet"
modelVersion
string (Modelversion) non-empty
Default: "bedrock-2023-05-31"
maxTokens
integer (Maxtokens) [ 1 .. 1000000 ]
Default: 8192
temperature
number (Temperature) [ 0 .. 2 ]
Default: 0.7
topP
number (Topp) [ 0 .. 1 ]
Default: 1
topK
integer (Topk) [ 1 .. 100 ]
Default: 50
acceptType
string (Accepttype)
Default: "application/json"
contentType
string (Contenttype)
Default: "application/json"
mutable
boolean (Mutable)
Default: true
useCache
boolean (Usecache)
Default: true
unsupportedClientTypes
Array of strings (Unsupportedclienttypes)
Default: []
Items Enum: "web" "desktop" "sdk" "cli" "workflow_run"
enhancedReasoning
boolean (Enhancedreasoning)
Default: false
Ownerid (string) or Ownerid (null) (Ownerid)
Organizationid (string) or Organizationid (null) (Organizationid)
Array of objects (Instructionassociations)
toolIds
Array of strings <uuid> (Toolids) [ items <uuid > ]
tags
Array of strings (Tags)

Responses

Request samples

Content type
application/json
{
  • "displayName": "string",
  • "name": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "modelId": "anthropic.sonnet",
  • "modelVersion": "bedrock-2023-05-31",
  • "maxTokens": 8192,
  • "temperature": 0.7,
  • "topP": 1,
  • "topK": 50,
  • "acceptType": "application/json",
  • "contentType": "application/json",
  • "mutable": true,
  • "useCache": true,
  • "unsupportedClientTypes": [ ],
  • "enhancedReasoning": false,
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "instructionAssociations": [
    ],
  • "toolIds": [
    ],
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "modelId": "anthropic.sonnet",
  • "modelVersion": "bedrock-2023-05-31",
  • "maxTokens": 8192,
  • "temperature": 0.7,
  • "topP": 1,
  • "topK": 50,
  • "acceptType": "application/json",
  • "contentType": "application/json",
  • "mutable": true,
  • "useCache": true,
  • "unsupportedClientTypes": [ ],
  • "visible": "internal",
  • "agentInstructions": [
    ],
  • "tools": [
    ],
  • "tags": [
    ],
  • "enhancedReasoning": true
}

Get System Agents

Retrieve all system agents available for user selection.

Returns the agents held by the platform principal, which every authenticated user may select in the chat modal. Internal agents are held by a different principal, so they are not returned.

Args: request (Request): The incoming HTTP request. sparse (bool): When True, returns a reduced representation. Defaults to True. service (AgentService): Injected agent service dependency.

Returns: List[AgentData | AgentData.Sparse]: System agents.

query Parameters
sparse
boolean (Sparse)
Default: true

Whether to return a sparse representation (minimal fields).

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Get Public Agents

Retrieve the agents published to your organization.

Args: request (Request): The incoming HTTP request. sparse (bool): When True, returns a reduced representation. Defaults to False. include_instructions (bool): When True, eagerly loads associated instructions for each agent. Defaults to True. include_tools (bool): When True, eagerly loads associated tools for each agent. Defaults to True. service (AgentService): Injected agent service dependency.

Returns: AgentsResponse: Public agents.

query Parameters
sparse
boolean (Sparse)
Default: false

Whether to return a sparse representation (minimal fields).

includeInstructions
boolean (Includeinstructions)
Default: true

Whether to include instructions in the response.

includeTools
boolean (Includetools)
Default: true

Whether to include tools in the response.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

List Agent tags

Retrieve the distinct tags in use across the agents available to you.

Responses

Response samples

Content type
application/json
[
  • "string"
]

Get an Agent

Retrieve an agent by its unique identifier. The returned agent will include associated instructions and tools as well as any tags the agent has.

path Parameters
agent_id
required
string <uuid> (Agent Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "modelId": "anthropic.sonnet",
  • "modelVersion": "bedrock-2023-05-31",
  • "maxTokens": 8192,
  • "temperature": 0.7,
  • "topP": 1,
  • "topK": 50,
  • "acceptType": "application/json",
  • "contentType": "application/json",
  • "mutable": true,
  • "useCache": true,
  • "unsupportedClientTypes": [ ],
  • "visible": "internal",
  • "agentInstructions": [
    ],
  • "tools": [
    ],
  • "tags": [
    ],
  • "enhancedReasoning": true
}

Update an Agent

Update an existing agent. Update fields that are not specified in the request body are excluded from the agent updated.

path Parameters
agent_id
required
string <uuid> (Agent Id)
Request Body schema: application/json
required
Enhancedreasoning (boolean) or Enhancedreasoning (null) (Enhancedreasoning)
Displayname (string) or Displayname (null) (Displayname)
Description (string) or Description (null) (Description)
Modelid (string) or Modelid (null) (Modelid)
Modelversion (string) or Modelversion (null) (Modelversion)
Maxtokens (integer) or Maxtokens (null) (Maxtokens)
Temperature (number) or Temperature (null) (Temperature)
Topp (number) or Topp (null) (Topp)
Topk (integer) or Topk (null) (Topk)
Accepttype (string) or Accepttype (null) (Accepttype)
Contenttype (string) or Contenttype (null) (Contenttype)
Mutable (boolean) or Mutable (null) (Mutable)
Usecache (boolean) or Usecache (null) (Usecache)
Array of objects (Instructionassociations)
toolIds
Array of strings <uuid> (Toolids) [ items <uuid > ]
Default: []
Array of Tags (strings) or Tags (null) (Tags)
unsupportedClientTypes
Array of strings (Unsupportedclienttypes)
Default: []
Items Enum: "web" "desktop" "sdk" "cli" "workflow_run"

Responses

Request samples

Content type
application/json
{
  • "enhancedReasoning": true,
  • "displayName": "string",
  • "description": "string",
  • "modelId": "string",
  • "modelVersion": "string",
  • "maxTokens": 1,
  • "temperature": 2,
  • "topP": 1,
  • "topK": 1,
  • "acceptType": "string",
  • "contentType": "string",
  • "mutable": true,
  • "useCache": true,
  • "instructionAssociations": [
    ],
  • "toolIds": [ ],
  • "tags": [
    ],
  • "unsupportedClientTypes": [ ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "modelId": "anthropic.sonnet",
  • "modelVersion": "bedrock-2023-05-31",
  • "maxTokens": 8192,
  • "temperature": 0.7,
  • "topP": 1,
  • "topK": 50,
  • "acceptType": "application/json",
  • "contentType": "application/json",
  • "mutable": true,
  • "useCache": true,
  • "unsupportedClientTypes": [ ],
  • "visible": "internal",
  • "agentInstructions": [
    ],
  • "tools": [
    ],
  • "tags": [
    ],
  • "enhancedReasoning": true
}

Get an Agent version

Retrieves versions of an given agent identified by its name. The retrieved agent can conditionally include associated tools and instructions that are associated with the agent. The versions query parameter supports list notation and supports both integer version numbers and the latest field:

Example:

Get all versions with tools and instructions:

  • GET /api/core/agents/MyAgent/versions?includeTools

Get the latest version and v3:

  • GET /api/core/agents/MyAgent/versions?version=latest&version=3

Get a version without tools and instructions:

  • GET /api/core/agents/MyAgent/versions?version=2&includeTools=False&includeInstructions=False
path Parameters
name
required
string (Name)
query Parameters
sparse
boolean (Sparse)
Default: true

Whether to return a sparse representation (minimal fields).

includeInstructions
boolean (Includeinstructions)
Default: true

Whether to include instructions in the response.

includeTools
boolean (Includetools)
Default: true

Whether to include tools in the response.

Array of "latest" (string) or integers (Version)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create an Agent Version

Create a new agent version using a specified agent and version as the base to branch from. Note that creating a new version always creates a version number one greater than the latest, regardless of which version you branched from.

path Parameters
name
required
string (Name)
Request Body schema: application/json
required
Enhancedreasoning (boolean) or Enhancedreasoning (null) (Enhancedreasoning)
Displayname (string) or Displayname (null) (Displayname)
Description (string) or Description (null) (Description)
Modelid (string) or Modelid (null) (Modelid)
Modelversion (string) or Modelversion (null) (Modelversion)
Maxtokens (integer) or Maxtokens (null) (Maxtokens)
Temperature (number) or Temperature (null) (Temperature)
Topp (number) or Topp (null) (Topp)
Topk (integer) or Topk (null) (Topk)
Accepttype (string) or Accepttype (null) (Accepttype)
Contenttype (string) or Contenttype (null) (Contenttype)
Mutable (boolean) or Mutable (null) (Mutable)
Usecache (boolean) or Usecache (null) (Usecache)
Array of objects (Instructionassociations)
toolIds
Array of strings <uuid> (Toolids) [ items <uuid > ]
Default: []
Array of Tags (strings) or Tags (null) (Tags)
unsupportedClientTypes
Array of strings (Unsupportedclienttypes)
Default: []
Items Enum: "web" "desktop" "sdk" "cli" "workflow_run"
Fromversion (integer) or Fromversion (null) (Fromversion)

Responses

Request samples

Content type
application/json
{
  • "enhancedReasoning": true,
  • "displayName": "string",
  • "description": "string",
  • "modelId": "string",
  • "modelVersion": "string",
  • "maxTokens": 1,
  • "temperature": 2,
  • "topP": 1,
  • "topK": 1,
  • "acceptType": "string",
  • "contentType": "string",
  • "mutable": true,
  • "useCache": true,
  • "instructionAssociations": [
    ],
  • "toolIds": [ ],
  • "tags": [
    ],
  • "unsupportedClientTypes": [ ],
  • "fromVersion": 0
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "displayName": "string",
  • "description": "string",
  • "version": 0,
  • "isLatestVersion": true,
  • "modelId": "anthropic.sonnet",
  • "modelVersion": "bedrock-2023-05-31",
  • "maxTokens": 8192,
  • "temperature": 0.7,
  • "topP": 1,
  • "topK": 50,
  • "acceptType": "application/json",
  • "contentType": "application/json",
  • "mutable": true,
  • "useCache": true,
  • "unsupportedClientTypes": [ ],
  • "visible": "internal",
  • "agentInstructions": [
    ],
  • "tools": [
    ],
  • "tags": [
    ],
  • "enhancedReasoning": true
}

List Agents

Returns lists of all available agents to you, grouped by relationship.

Responses

Response samples

Content type
application/json
{
  • "owned": [
    ],
  • "shared": [
    ],
  • "organization": [
    ],
  • "system": [ ]
}

Delete an Agent

Deletes an agent. Permanently removes the agent and its associated taggings. If the agent does not exist, returns a success response indicating there is nothing to do.

query Parameters
name
required
string (Name)

The name of the agent.

version
integer (Version)

Specific version number to delete.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Lock an Agent

Lock future updates to an agent. A locked agent cannot be modified so any future changes require a new agent version.

path Parameters
agent_id
required
string <uuid> (Agent Id)

Responses

Response samples

Content type
application/json
null

Unlock an Agent

Unlock an agent. Allows an agent to be edited again.

path Parameters
agent_id
required
string <uuid> (Agent Id)

Responses

Response samples

Content type
application/json
null

Create Agent

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share an Agent

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare an Agent

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke an Agent Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of an Agent

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Publish Agent

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Agent Publication

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unpublish Agent

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Apps

List Clove App File Resources

Lists all file resources of a Clove app.

path Parameters
app_id
required
string <uuid> (App Id)

Responses

Response samples

Content type
application/json
null

Create a Clove App File Resource

Adds a file resource to a Clove app. The file must already exist in S3.

path Parameters
app_id
required
string <uuid> (App Id)
Request Body schema: application/json
required
alias
required
string (Alias)
path
required
string (Path)
Sheet (string) or Sheet (null) (Sheet)
kind
required
string (Kind)
s3Key
required
string (S3Key)

Responses

Request samples

Content type
application/json
{
  • "alias": "string",
  • "path": "string",
  • "sheet": "string",
  • "kind": "string",
  • "s3Key": "string"
}

Response samples

Content type
application/json
null

Get a Clove App File Resource

Gets one file resource of a Clove app. The response has a presigned download URL for the file.

path Parameters
id
required
string <uuid> (Id)
resource_id
required
string <uuid> (Resource Id)

Responses

Response samples

Content type
application/json
null

Delete a Clove App File Resource

Deletes a file resource of a Clove app and its file in S3.

path Parameters
id
required
string <uuid> (Id)
resource_id
required
string <uuid> (Resource Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

List Cloveapp

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Cloveapp

Request Body schema: application/json
required
name
required
string (Name)
description
required
string (Description)
required
Lastconversationid (string) or Lastconversationid (null) (Lastconversationid)
Array of objects (Resources)
Default: []

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "lastConversationId": "48724e5a-8b61-4965-aa9e-6e6dedf6b344",
  • "resources": [ ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "description": "string",
  • "lastConversationId": "48724e5a-8b61-4965-aa9e-6e6dedf6b344",
  • "resources": [ ]
}

Get Cloveapp

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "description": "string",
  • "lastConversationId": "48724e5a-8b61-4965-aa9e-6e6dedf6b344",
  • "resources": [ ]
}

Update Cloveapp

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)
Description (string) or Description (null) (Description)
Lastconversationid (string) or Lastconversationid (null) (Lastconversationid)
Array of objects (Resources)

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "lastConversationId": "48724e5a-8b61-4965-aa9e-6e6dedf6b344",
  • "resources": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "description": "string",
  • "lastConversationId": "48724e5a-8b61-4965-aa9e-6e6dedf6b344",
  • "resources": [ ]
}

Delete Cloveapp

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Create Clove_app

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share a Clove_app

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare a Clove_app

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke a Clove_app Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of a Clove_app

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Chat

Talk to Clove

Send a one-off message to Clove and get a response streamed back to you.

Request Body schema: application/json
required
stream
boolean (Stream)
Default: true

Whether to stream the response or send it back as JSON.

required
Content (string) or ToolResultContentBlock (object) or (Array of Content (ToolUseContentBlock (object) or ToolResultContentBlock (object))) (Content)

The user input for this turn. A string is a normal text prompt. A list of blocks resumes a turn after a client-executed tool use, and carries each tool use with the result that answers it. A bare tool result block is the single-result form of that list.

Conversationid (string) or Conversationid (null) (Conversationid)

An optional conversation id to associate the request with.

AgentType (string) or Agenttype (string) or Agenttype (string) or Agenttype (null) (Agenttype)

The agent type or ID to use for generation.

InlineAgentConfig (object) or null

Optional inline agent configuration overrides for testing purposes.

Responses

Request samples

Content type
application/json
{
  • "stream": true,
  • "content": "string",
  • "conversationId": "string",
  • "agentType": "core",
  • "agentConfig": {
    }
}

Response samples

Content type
{
  • "content": "string",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "metadata": {
    }
}

Converse with Clove

Carry on a conversation with Clove with responses streamed back to you. The conversation API gives Clove access to things like Agents, Collections, long form conversation context, and other information that will improve reponses.

path Parameters
conversation_id
required
string <uuid> (Conversation Id)
Request Body schema: application/json
required
stream
boolean (Stream)
Default: true

Whether to stream the response or send it back as JSON.

required
Content (string) or ToolResultContentBlock (object) or (Array of Content (ToolUseContentBlock (object) or ToolResultContentBlock (object))) (Content)

The user input for this turn. A string is a normal text prompt. A list of blocks resumes a turn after a client-executed tool use, and carries each tool use with the result that answers it. A bare tool result block is the single-result form of that list.

required
Conversationid (string) or Conversationid (string) (Conversationid)

The conversation id to associate the request with.

(Array of Attachments (AttachmentData (object) or ImageAttachmentData (object))) or Attachments (null) (Attachments)

Optional file attachments.

CollectionsSourceSelection (object) or null

Optional collection source selection.

object (StreamingChatOptions)

Per-request generation options (agent type, intelligent context, web search).

Responses

Request samples

Content type
application/json
{
  • "stream": true,
  • "content": "string",
  • "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a",
  • "attachments": [
    ],
  • "collectionsSources": {
    },
  • "streamingChatOptions": {
    }
}

Response samples

Content type
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a",
  • "messages": [ ],
  • "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2",
  • "collectionsContext": [ ],
  • "projectContext": {
    },
  • "metadata": {
    }
}

Create a tool result.

Posts one or more tool results from the caller. This is useful for when you need to close the chain of custom tools that have been routed to your software or UI.

path Parameters
conversation_id
required
string <uuid> (Conversation Id)
Request Body schema: application/json
required
required
Array of objects (Toolpairs) non-empty

The tool use and result pairs to store, in call order.

conversationId
required
string (Conversationid)

The conversation the tool uses belong to.

Responses

Request samples

Content type
application/json
{
  • "toolPairs": [
    ],
  • "conversationId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Get a Conversation

Get a conversation by its unique id.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "title": "string",
  • "summary": "string",
  • "messageCount": 0,
  • "userMessageCount": 0,
  • "isPinned": false,
  • "source": "web",
  • "messages": [ ],
  • "messageAttachments": [ ],
  • "summaries": [ ],
  • "project": {
    }
}

Delete a Conversation

Delete a conversation.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Delete many conversations

Delete a batch of your conversations at the same time.

Request Body schema: application/json
required
conversationIds
required
Array of strings (Conversationids) [ 1 .. 200 ] items

IDs of conversations to soft-delete. Must contain at least one id; capped at 200 per request.

Responses

Request samples

Content type
application/json
{
  • "conversationIds": [
    ]
}

Response samples

Content type
application/json
{
  • "detail": "string"
}

List my Conversations

List all of your conversations.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Get Recent Conversations

List your twenty most recent conversations.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create a Conversation

Creates a new conversation with Clove.

Request Body schema: application/json
required
conversationId
required
string (Conversationid)

A UUID to identify the new conversation.

Projectid (string) or Projectid (null) (Projectid)

Optional project ID to associate the conversation with.

title
required
string (Title)

The title of the conversation.

Userid (string) or Userid (null) (Userid)

The user who is requesting the new conversation. Parsed from authorization headers when not supplied.

Responses

Request samples

Content type
application/json
{
  • "conversationId": "string",
  • "projectId": "string",
  • "title": "string",
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "title": "string",
  • "summary": "string",
  • "messageCount": 0,
  • "userMessageCount": 0,
  • "isPinned": false,
  • "source": "web",
  • "messages": [ ],
  • "messageAttachments": [ ],
  • "summaries": [ ],
  • "project": {
    }
}

Update the Conversation Title

Updates the title of an existing conversation.

path Parameters
conversation_id
required
string (Conversation Id)
Request Body schema: application/json
required
conversationId
required
string (Conversationid)

The id of the conversation to rename.

updatedTitle
required
string (Updatedtitle)

The new title to apply.

Userid (string) or Userid (null) (Userid)

The owning user's id; parsed from the authorization headers when not supplied.

Responses

Request samples

Content type
application/json
{
  • "conversationId": "string",
  • "updatedTitle": "string",
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Pin a Conversation

Marks a conversation as pinned so it always appears at the top of your conversation list.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Unpin a Conversation

Unpins your pinned conversation, removing it from the top of the list.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Update a Conversation's Project

Assigns a conversation to a project, or clears the assignment when the project id is empty.

path Parameters
conversation_id
required
string (Conversation Id)
Request Body schema: application/json
required
conversationId
required
string (Conversationid)

The id of the conversation to move.

Projectid (string) or Projectid (null) (Projectid)

The target project id, or None to detach the conversation from any project.

Responses

Request samples

Content type
application/json
{
  • "conversationId": "string",
  • "projectId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Fork a Conversation

Forks a conversation into two continuing parts by duplicating the underlying conversation. This is useful for when you want to continue a conversation down two paths.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
{
  • "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a"
}

Create Conversation

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share a Conversation

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare a Conversation

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke a Conversation Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of a Conversation

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Publish Conversation

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Conversation Publication

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unpublish Conversation

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Conversation Collections Sources

Get per-document collection sources for a conversation.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
Example
{
  • "items": [ ],
  • "totalCount": 0,
  • "conversationId": "string"
}

Update Conversation Collections Sources

Create or update per-document collection sources for a conversation.

path Parameters
conversation_id
required
string (Conversation Id)
Request Body schema: application/json
required
collectionIds
Array of strings (Collectionids)
documentIds
Array of strings (Documentids)

Responses

Request samples

Content type
application/json
{
  • "collectionIds": [
    ],
  • "documentIds": [
    ]
}

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0,
  • "conversationId": "string"
}

Delete Conversation Collections Sources

Delete all collection sources for a conversation.

path Parameters
conversation_id
required
string (Conversation Id)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

File

Get Attachment Token Count

Retrieves the token count for an attachment or list of attachments.

Request Body schema: application/json
required
Array
Content (string) or Content (null) (Content)

The context content.

contextType
string (Contexttype)
Default: "attachment"
Id (string) or Id (string) or Id (null) (Id)

Unique context item identifier.

Title (string) or Title (null) (Title)

Optional context item title.

Explanation (string) or Explanation (null) (Explanation)

Optional explanation or notes.

fileSize
required
integer (Filesize)
fileType
required
string (Filetype)
Origin (string) or Origin (null) (Origin)
Default: "user_upload"
Contenthash (string) or Contenthash (null) (Contenthash)
Tokencount (integer) or Tokencount (null) (Tokencount)
Uniquekey (string) or Uniquekey (null) (Uniquekey)
Parentmessageid (string) or Parentmessageid (null) (Parentmessageid)
Parentconversationid (string) or Parentconversationid (null) (Parentconversationid)
Uploaderid (string) or Uploaderid (null) (Uploaderid)
PageExtractionStats (object) or null

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "tokenCount": 0,
  • "allowed": true,
  • "message": "string",
  • "content": "string"
}

Get Presigned Url

Get a presigned url to upload a file via STP.

query Parameters
uploadType
required
string (UserFileUploadType)
Enum: "problem_report" "chat_file" "ocr_upload" "template" "tool_file" "clove_app_resource"

The type of file upload.

Filename (string) or Filename (null) (Filename)

The filename for the upload.

Uniquekey (string) or Uniquekey (null) (Uniquekey)

A unique identifier for the file.

Contenttype (string) or Contenttype (null) (Contenttype)

The MIME type of the content.

urlMethod
string (Urlmethod)
Default: "PUT"
Enum: "GET" "PUT"

HTTP method for the presigned URL (GET or PUT).

Expiration (integer) or Expiration (null) (Expiration)
Checksum (string) or Checksum (null) (Checksum)
Groupkey (string) or Groupkey (null) (Groupkey)

Group identifier for file organization.

Responses

Response samples

Content type
application/json
{
  • "presignedUrl": "string",
  • "method": "string",
  • "uniqueKey": "string",
  • "key": "string",
  • "bucket": "string",
  • "url": "string"
}

Notify Chat File Uploaded

Notify the server that you have uploaded a chat attachment to kick off server-side processing.

Request Body schema: application/json
required
uniqueKey
required
string (Uniquekey)

The UUID returned by the presigned-URL endpoint. The server uses it as the primary key of the eventual MessageAttachment row.

filename
required
string (Filename)

The filename of the uploaded file.

fileType
required
string (Filetype)

The MIME type of the file.

Conversationid (string) or Conversationid (null) (Conversationid)

Optional conversation ID to tie the attachment to. When absent the attachment stays orphaned until the user sends their first message.

Responses

Request samples

Content type
application/json
{
  • "uniqueKey": "string",
  • "filename": "string",
  • "fileType": "string",
  • "conversationId": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Inference

Invoke Clove

Sends a standard request to Clove and receives a response. Note that unlike talking to Clove, responses are not streamed back to you.

Request Body schema: application/json
required
content
required
string (Content)

Responses

Request samples

Content type
application/json
{
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "content": "string"
}

Summarize Content

Use Clove to summarize the provided content.

Request Body schema: application/json
required
content
required
string (Content)
Additionalinstructions (string) or Additionalinstructions (null) (Additionalinstructions)

Responses

Request samples

Content type
application/json
{
  • "content": "string",
  • "additionalInstructions": "string"
}

Response samples

Content type
application/json
{
  • "content": "string"
}

Generate Title

Generates a title for a conversation based on the user's message content.

Request Body schema: application/json
required
content
required
string (Content)
conversationId
required
string (Conversationid)

The conversation ID.

Responses

Request samples

Content type
application/json
{
  • "content": "string",
  • "conversationId": "string"
}

Response samples

Content type
application/json
{
  • "content": "string"
}

Generate Workflow Title

Generates a title for a workflow from its content via the LLM.

Request Body schema: application/json
required
content
required
string (Content)

Responses

Request samples

Content type
application/json
{
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "content": "string"
}

Generate Workflow

Use Clove to help generate a Workflow.

Request Body schema: application/json
required
content
required
string (Content)

Responses

Request samples

Content type
application/json
{
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "stepNodes": [ ],
  • "decisionNodes": [ ],
  • "edges": [ ]
}

Refine Workflow

Use Clove to refine an existing workflow graph based on feedback you provide.

Request Body schema: application/json
required
required
object (WorkflowData-Input)

The current workflow (graph plus metadata) to refine.

feedback
required
string (Feedback)

The user's requested changes.

Responses

Request samples

Content type
application/json
{
  • "workflow": {
    },
  • "feedback": "string"
}

Response samples

Content type
application/json
{
  • "stepNodes": [ ],
  • "decisionNodes": [ ],
  • "edges": [ ]
}

Generate Tool Reference

Use Clove to generate an OpenAI-style JSON tool reference from your custom uploaded tool.

Request Body schema: application/json
required
Usertoolid (string) or Usertoolid (null) (Usertoolid)
Groupkey (string) or Groupkey (null) (Groupkey)

Responses

Request samples

Content type
application/json
{
  • "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
  • "groupKey": "636f8cd1-808d-4e74-afd2-9e1265ec0a0a"
}

Response samples

Content type
application/json
{
  • "toolReference": { },
  • "description": ""
}

Project

Pin a Project

Marks a project as pinned so it always appears at the top of your projects list.

path Parameters
project_id
required
string <uuid> (Project Id)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Unpin a Project

Unpins a project so that it no longer appears at the top of your list.

path Parameters
project_id
required
string <uuid> (Project Id)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

List Project

query Parameters
Includeuploaded (boolean) or Includeuploaded (null) (Includeuploaded)
Default: true
Includeshared (boolean) or Includeshared (null) (Includeshared)
Default: true
limit
integer (Limit) [ 1 .. 1000 ]
Default: 100
offset
integer (Offset) >= 0
Default: 0

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Project

Request Body schema: application/json
required
name
required
string (Name) [ 1 .. 255 ] characters

Project name.

Description (string) or Description (null) (Description)

Project description.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "isPinned": false,
  • "description": "string",
  • "userGeneratedContext": "string",
  • "aiGeneratedContext": "string",
  • "collectionsSources": {
    },
  • "agentId": "string"
}

Get Project

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "isPinned": false,
  • "description": "string",
  • "userGeneratedContext": "string",
  • "aiGeneratedContext": "string",
  • "collectionsSources": {
    },
  • "agentId": "string"
}

Update Project

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)

Project name.

Description (string) or Description (null) (Description)

Project description.

Usergeneratedcontext (string) or Usergeneratedcontext (null) (Usergeneratedcontext)

User-provided context for the project.

Aigeneratedcontext (string) or Aigeneratedcontext (null) (Aigeneratedcontext)

AI-generated context for the project.

ProjectCollectionsSources (object) or null

Default collection sources for the project.

Agentid (string) or Agentid (null) (Agentid)

The agent ID associated with the project.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "userGeneratedContext": "string",
  • "aiGeneratedContext": "string",
  • "collectionsSources": {
    },
  • "agentId": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "isPinned": false,
  • "description": "string",
  • "userGeneratedContext": "string",
  • "aiGeneratedContext": "string",
  • "collectionsSources": {
    },
  • "agentId": "string"
}

Delete Project

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Create Project

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share a Project

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare a Project

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke a Project Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of a Project

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Publish Project

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Project Publication

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unpublish Project

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Resource Approvals

List Resource Approvals Admin

Retrieve all resource approval records for your organization.

query Parameters
resourceType
required
string (ResourceType)
Enum: "document" "collection" "conversation" "workflow" "agent" "tool" "instruction" "project" "group" "template" "ext_provider" "clove_app" "storage" "tokens" "sandbox_endpoints"

The resource type to filter by.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Approve a Resource Request Admin

Approve a pending resource approval.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "updatedApproval": {
    }
}

Reject a Resource Request Admin

Reject a pending resource approval.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "updatedApproval": {
    }
}

Revoke an Approved Resource Request Admin

Revoke a previously approved resource approval.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "updatedApproval": {
    }
}

Service Actions

Get Service Actions

Return the IAM action names served by this application.

Actions are resolved from the application's route table with the same resolution used by policy enforcement, so the reported vocabulary always matches what the policy checker enforces.

Returns: APIListModel[str]: Sorted action names for this service.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Template

Create a Template

Creates a new template with the provided name, description, type, and data.

Request Body schema: application/json
required
required
Id (string) or Id (string) (Id)

Unique identifier for the template.

name
required
string (Name)

Unique name for the template.

description
required
string (Description)

Human-readable description of the template.

s3Key
required
string (S3Key)

S3 key where the template file is stored.

templateType
required
string (TemplateType)
Enum: "docx" "pptx"

Category/type of the template (DOCX or PPTX).

Array of Layouts (objects) or Layouts (null) (Layouts)

Template layouts if applicable.

Responses

Request samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "description": "string",
  • "s3Key": "string",
  • "templateType": "docx",
  • "layouts": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "s3Key": "string",
  • "description": "string",
  • "templateType": "docx",
  • "layouts": [
    ]
}

List Templates

List your available templates.

query Parameters
TemplateType (string) or Templatetype (null) (Templatetype)

Filter by template type.

limit
integer (Limit) [ 1 .. 1000 ]
Default: 100

Maximum number of items to return.

offset
integer (Offset) >= 0
Default: 0

Number of items to skip for pagination.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Get a Template

Retrieve a template by ID.

path Parameters
id
required
string (Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "s3Key": "string",
  • "description": "string",
  • "templateType": "docx",
  • "layouts": [
    ]
}

Update a Template

Updates a template. Only fields included in the request body are updated; omitted fields remain unchanged.

path Parameters
id
required
string (Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)

New name for the template.

Description (string) or Description (null) (Description)

New description for the template.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "s3Key": "string",
  • "description": "string",
  • "templateType": "docx",
  • "layouts": [
    ]
}

Delete a Template

Delete a previously uploaded template.

path Parameters
id
required
string (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Create Template

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share a Template

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare a Template

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke a Template Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of a Template

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Workflow Schedules

List Workflow Schedules

List the workflow schedules of the caller, the oldest first.

query Parameters
Deviceid (string) or Deviceid (null) (Deviceid)
Workflowid (string) or Workflowid (null) (Workflowid)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Save a Workflow Schedule

Create a workflow schedule, or change the fields the body sets on an existing one.

path Parameters
schedule_id
required
string <uuid> (Schedule Id)
Request Body schema: application/json
required
Workflowid (string) or Workflowid (null) (Workflowid)

The workflow the schedule runs.

Deviceid (string) or Deviceid (null) (Deviceid)

The desktop installation that runs the schedule.

Cron (string) or Cron (null) (Cron)

A five field cron expression.

Timezone (string) or Timezone (null) (Timezone)

The IANA time zone the cron expression reads in.

Enabled (boolean) or Enabled (null) (Enabled)

False when the schedule is paused.

Catchup (boolean) or Catchup (null) (Catchup)

True to run once after a missed time.

Questionanswers (object) or Questionanswers (null) (Questionanswers)

The answers to the step questions, keyed by node id.

Intelligentcontext (boolean) or Intelligentcontext (null) (Intelligentcontext)

The intelligent context toggle of each run.

Workspaceroot (string) or Workspaceroot (null) (Workspaceroot)

The workspace folder of each run on the device.

Responses

Request samples

Content type
application/json
{
  • "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
  • "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
  • "cron": "string",
  • "timeZone": "string",
  • "enabled": true,
  • "catchUp": true,
  • "questionAnswers": { },
  • "intelligentContext": true,
  • "workspaceRoot": "string"
}

Response samples

Content type
application/json
{
  • "lastRunAt": "2019-08-24T14:15:22Z",
  • "lastRunId": "729b3d52-1129-42f2-a449-e698e495bcd0",
  • "lastStatus": "running",
  • "lastMessage": "string",
  • "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
  • "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
  • "cron": "string",
  • "timeZone": "string",
  • "enabled": true,
  • "catchUp": true,
  • "questionAnswers": { },
  • "intelligentContext": false,
  • "workspaceRoot": "string",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "ownerId": "string",
  • "workflowName": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Delete a Workflow Schedule

Delete a workflow schedule of the caller.

path Parameters
schedule_id
required
string <uuid> (Schedule Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Report the Last Run of a Workflow Schedule

Store the outcome of the last due time of a schedule.

path Parameters
schedule_id
required
string <uuid> (Schedule Id)
Request Body schema: application/json
required
Lastrunat (string) or Lastrunat (null) (Lastrunat)

The last due time the host acted on.

Lastrunid (string) or Lastrunid (null) (Lastrunid)

The last run the host started.

WorkflowScheduleStatus (string) or null

The outcome of the last due time.

Lastmessage (string) or Lastmessage (null) (Lastmessage)

Why the last due time did not start or was skipped.

Responses

Request samples

Content type
application/json
{
  • "lastRunAt": "2019-08-24T14:15:22Z",
  • "lastRunId": "729b3d52-1129-42f2-a449-e698e495bcd0",
  • "lastStatus": "running",
  • "lastMessage": "string"
}

Response samples

Content type
application/json
{
  • "detail": "string"
}

Workflows

List Workflows

List workflows grouped by whether they are owned, shared, public to the organization, or included as part of the system.

Responses

Response samples

Content type
application/json
{
  • "owned": [
    ],
  • "shared": [
    ],
  • "organization": [
    ],
  • "system": [ ]
}

Get a Workflow

Retrieve a single workflow with its node/edge graph.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "description": "string",
  • "graph": {
    },
  • "variant": "web"
}

Create or Replace a Workflow

Create or fully replace a workflow (metadata plus graph) in one transaction.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)
Request Body schema: application/json
required
Id (string) or Id (null) (Id)

Unique identifier for the resource.

name
required
string (Name)

Name of the workflow.

Ownerid (string) or Ownerid (null) (Ownerid)

ID of the user who owns the resource.

Organizationid (string) or Organizationid (null) (Organizationid)

The organization tied to the resource

resourceType
string (ResourceType)
Default: "workflow"
Enum: "document" "collection" "conversation" "workflow" "agent" "tool" "instruction" "project" "group" "template" "ext_provider" "clove_app" "storage" "tokens" "sandbox_endpoints"

Identifies the type of resource being shared.

Each member's value is the wire-format string. The database stores the member name, which is the polymorphic discriminator for shares and for resource approvals. STORAGE, TOKENS and SANDBOX_ENDPOINTS identify approval requests only. They are never shared.

The label property returns a human-readable form suitable for user-facing notification text.

Example: >>> ResourceType.WORKFLOW.label 'workflow' >>> ResourceType.COLLECTION.label 'collection'

Createdat (string) or Createdat (null) (Createdat)

Timestamp when the resource was created.

Updatedat (string) or Updatedat (null) (Updatedat)

Timestamp when the resource was last updated.

Array of objects (Grants)
Default: []
PermissionLevel (string) or null

The caller's share permission level, populated only on reads for a workflow shared with them; None for owned, organization, and system workflows.

Sharedbyuserid (string) or Sharedbyuserid (null) (Sharedbyuserid)

The id of the user who shared the workflow with the caller, populated alongside permission_level.

Publishedtoorg (boolean) or Publishedtoorg (null) (Publishedtoorg)

Whether the resource is published to the caller's organization. None means the read did not determine it, so a client treats it as not published.

Description (string) or Description (null) (Description)

Optional description of the workflow.

WorkflowGraphData (object) or null

The node/edge graph definition. Populated on single-workflow reads and required on the write path.

WorkflowVariant (string) or null

Where the workflow runs. None means a web workflow.

Responses

Request samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "description": "string",
  • "graph": {
    },
  • "variant": "web"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "description": "string",
  • "graph": {
    },
  • "variant": "web"
}

Update a Workflow's metadata

Update any of the name, description, visibility, and desktop settings of a workflow.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)

New workflow name, or None to leave the name unchanged.

Description (string) or Description (null) (Description)

New workflow description, or None to leave it unchanged.

WorkflowVariant (string) or null

New workflow variant, or None to leave it unchanged.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "variant": "web"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "description": "string",
  • "graph": {
    },
  • "variant": "web"
}

Delete a Workflow

Delete a workflow. Deleting a workflow will automatically delete any shares associated with the workflow.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

List Workflow Runs

List a workflow's past runs ordered by newest first.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get an Active Workflow Run

Return the active run of a workflow that you triggered, if it is running.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)

Responses

Response samples

Content type
application/json
Example
{
  • "runId": "78c33d18-170c-44d3-a227-b3194f134f73",
  • "currentStepIndex": 0,
  • "currentNodeId": 0,
  • "isStepThrough": false,
  • "reviewSources": false,
  • "isExecuting": false,
  • "pendingDecisionNodeId": 0,
  • "decisionOptions": [ ],
  • "reuploadNodeIds": [ ],
  • "steps": [
    ]
}

Get Workflow Run Details

Retrieve a past run of a workflow, broken down step by step.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)
run_id
required
string <uuid> (Run Id)

Responses

Response samples

Content type
application/json
{
  • "runId": "78c33d18-170c-44d3-a227-b3194f134f73",
  • "executedAt": "2019-08-24T14:15:22Z",
  • "durationMs": 0,
  • "steps": [
    ]
}

Run a Workflow

Start a detached workflow run. This workflow will run until completion without interruption.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)
run_id
required
string <uuid> (Run Id)
Request Body schema: application/json
required
intelligentContext
boolean (Intelligentcontext)
Default: false

Whether to enable intelligent context.

object (Answers)
Default: {}

User answers keyed by step-node id, positionally matched to that node's questions.

Workspaceroot (string) or Workspaceroot (null) (Workspaceroot)

The workspace folder of a desktop run. Required for a desktop workflow.

Runnerinstanceid (string) or Runnerinstanceid (null) (Runnerinstanceid)

The id of the desktop app instance that runs local tools. Required for a desktop workflow.

Responses

Request samples

Content type
application/json
{
  • "intelligentContext": false,
  • "answers": { },
  • "workspaceRoot": "string",
  • "runnerInstanceId": "string"
}

Response samples

Content type
application/json
{
  • "runId": "78c33d18-170c-44d3-a227-b3194f134f73"
}

Cancel a Workflow Run

Cancel a workflow that is actively running, if and only if it is running.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)
run_id
required
string <uuid> (Run Id)

Responses

Response samples

Content type
application/json
null

Submit a Desktop Tool Result

Post a desktop tool result

Args: request (Request): FastAPI request, for the originating request id. workflow_id (UUID): The workflow the run belongs to. run_id (UUID): The run's conversation id. body (WorkflowToolResultsRequest): The results, with the run context echoed from the tool signal. run_service (WorkflowRunService): The workflow run service dependency.

Raises: NotFoundException: If the run has no open step that waits for exactly these calls.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)
run_id
required
string <uuid> (Run Id)
Request Body schema: application/json
required
required
Array of objects (Results) non-empty

One result per desktop tool call of the turn.

runnerInstanceId
required
string (Runnerinstanceid) <= 128 characters

The desktop app instance that ran the tools.

workspaceRoot
required
string (Workspaceroot) <= 4096 characters

The workspace folder of the run, echoed from the tool signal.

object (Answers)
Default: {}

The answers of a full run, echoed from the tool signal.

iteration
integer (Iteration) >= 0
Default: 0

The refeed iteration of the step, echoed from the tool signal.

Responses

Request samples

Content type
application/json
{
  • "results": [
    ],
  • "runnerInstanceId": "string",
  • "workspaceRoot": "string",
  • "answers": { },
  • "iteration": 0
}

Response samples

Content type
application/json
null

Execute a Workflow Step

Execute one step of a workflow run, scheduled off the request.

path Parameters
workflow_id
required
string <uuid> (Workflow Id)
run_id
required
string <uuid> (Run Id)
Request Body schema: application/json
required
intelligentContext
boolean (Intelligentcontext)
Default: false

Whether to enable intelligent context.

object (Answers)
Default: {}

User answers keyed by step-node id, positionally matched to that node's questions.

Workspaceroot (string) or Workspaceroot (null) (Workspaceroot)

The workspace folder of a desktop run. Required for a desktop workflow.

Runnerinstanceid (string) or Runnerinstanceid (null) (Runnerinstanceid)

The id of the desktop app instance that runs local tools. Required for a desktop workflow.

targetNodeId
required
integer (Targetnodeid)

The id of the step node to execute.

Userfeedback (string) or Userfeedback (null) (Userfeedback)

Optional feedback when redoing a step.

Array of Selectedchunkids (strings) or Selectedchunkids (null) (Selectedchunkids)

Pre-selected chunk IDs from a Step Through RAG preview.

isStepThrough
boolean (Isstepthrough)
Default: false

Whether this run is client-paced (pauses after each step's output for review, or to review sources).

reviewSources
boolean (Reviewsources)
Default: false

Whether this run pauses to review retrieved sources before a collection step.

Responses

Request samples

Content type
application/json
{
  • "intelligentContext": false,
  • "answers": { },
  • "workspaceRoot": "string",
  • "runnerInstanceId": "string",
  • "targetNodeId": 0,
  • "userFeedback": "string",
  • "selectedChunkIds": [
    ],
  • "isStepThrough": false,
  • "reviewSources": false
}

Response samples

Content type
application/json
null

Create Workflow

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share a Workflow

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare a Workflow

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke a Workflow Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of a Workflow

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Publish Workflow

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Workflow Publication

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unpublish Workflow

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Collections

List Collections

Return a list of collections, grouped into owned, shared, and organization collections.

query Parameters
q
string (Q) non-empty

Case-insensitive substring match on collection and document names.

asTree
boolean (Astree)
Default: true

Whether to structure the returned collections as a tree

grouped
boolean (Grouped)
Default: true

Whether to group collections and documents into shared, owned, and org groups or to return a flat list of items.

includeDocuments
boolean (Includedocuments)
Default: false

Whether to load nested documents.

root
boolean (Root)
Default: false

If true, drop child_collections so only top-level nodes are returned.

Array of Fields (strings) or Fields (null) (Fields)

Return only these top-level fields, e.g. ?fields=name&fields=summary. Omit for the full entity. See CollectionAllowedSearchFields for allowed parameters.

Array of Collectionid (strings) or Collectionid (null) (Collectionid)

Collection ids to downselect. If this parameter is left blank, collection ids are not used as a filter.

Array of Documentid (strings) or Documentid (null) (Documentid)

An optional list of document ids to downselect. Leaving this parameter empty will result in not downselecting documents.Used in conjuction with includeDocuments.

limit
integer (Limit) >= 1

Maximum number of items to return. When omitted, all items are returned.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0,
  • "collections": [ ],
  • "orgCollections": [ ],
  • "sharedCollections": [ ]
}

Create a Collection

Create a new collection.

Request Body schema: application/json
required
name
required
string (Name)

Name for the new collection.

Parentcollectionid (string) or Parentcollectionid (null) (Parentcollectionid)

Parent collection ID, or None to create the collection at root level.

Externalfileproviderid (string) or Externalfileproviderid (null) (Externalfileproviderid)

The provider whose folder this collection mirrors, if any.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
  • "externalFileProviderId": "005bbb25-7a86-4270-b6b0-2269ded0f832"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "depth": 0,
  • "documentCount": 0,
  • "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
  • "locked": false,
  • "summary": "string",
  • "documents": [ ],
  • "childCollections": [ ],
  • "path": "string"
}

Move Collections and Documents

Move multiple collections and/or documents to a target collection.

Request Body schema: application/json
required
required
Array of objects (Items) non-empty

Items to move

required
Targetcollectionid (string) or Targetcollectionid (null) (Targetcollectionid)

Target collection ID. None moves to root level.

Responses

Request samples

Content type
application/json
{
  • "items": [
    ],
  • "targetCollectionId": "b99d26a3-f4b8-4a16-a141-95fd9b1025d3"
}

Response samples

Content type
application/json
{
  • "detail": "string"
}

Get a Collection

Retrieve a specific collection and all its nested child collections.

path Parameters
collection_id
required
string <uuid> (Collection Id)
query Parameters
includeNested
boolean (Includenested)
Default: true
asTree
boolean (Astree)
Default: true

Responses

Response samples

Content type
application/json
Example
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "depth": 0,
  • "documentCount": 0,
  • "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
  • "locked": false,
  • "summary": "string",
  • "documents": [ ],
  • "childCollections": [ ],
  • "path": "string"
}

Update a Collection

Update a collection. Fields that are not set are excluded from the update.

path Parameters
collection_id
required
string <uuid> (Collection Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)

New name for the collection

reparent
boolean (Reparent)
Default: false

Whether to change the collection's parent. When true, parent_collection_id is the new parent (None moves to root). When false (default), parent_collection_id is ignored.

Parentcollectionid (string) or Parentcollectionid (null) (Parentcollectionid)

New parent collection ID when reparent is true; None moves to root.

Ownerid (string) or Ownerid (null) (Ownerid)

New owner ID for sharing/reassignment

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "reparent": false,
  • "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
  • "ownerId": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "permissionLevel": "read",
  • "sharedByUserId": "string",
  • "publishedToOrg": true,
  • "depth": 0,
  • "documentCount": 0,
  • "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
  • "locked": false,
  • "summary": "string",
  • "documents": [ ],
  • "childCollections": [ ],
  • "path": "string"
}

Delete a Collection

Delete an existing collection.

path Parameters
collection_id
required
string <uuid> (Collection Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Create Collection

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Share a Collection

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Array
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

permissionLevel
required
string (PermissionLevel)
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Expires (string) or Expires (null) (Expires)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unshare a Collection

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
sharedWithId
required
string (Sharedwithid)
sharedWithType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The kind of principal an identity or policy references.

The enum values are also the type prefixes in the assume-role header, for example user:1234 or role:5678.

Responses

Request samples

Content type
application/json
{
  • "sharedWithId": "string",
  • "sharedWithType": "user"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Revoke a Collection Share

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Change Ownership of a Collection

Delegate ownership of a resource you own to a new principal.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
null

Publish Collection

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Collection Publication

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Unpublish Collection

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Document

Get a Presigned Url

Step 1 of 2: get a presigned URL for uploading a file. No document is created by this call.

Uploading a document is a two-part process:

  1. Call this endpoint to get a presigned URL and upload key, then upload the file to the presigned URL.
  2. Call POST /document/confirm-upload with the upload key to create the document. The file is not available as a document, and is not processed, until this second call succeeds.
query Parameters
collectionId
required
string <uuid> (Collectionid)

The collection ID where the document will be stored.

filename
required
string (Filename)

The name of the file being uploaded.

contentType
required
string (Contenttype)

The MIME type of the file.

fileSizeBytes
required
integer (Filesizebytes)

The size of the file in bytes.

checksumSha256
string (Checksumsha256)

The SHA-256 hash of the file content for verification.

Externalfileproviderid (string) or Externalfileproviderid (null) (Externalfileproviderid)

The provider this upload comes from. Content from a provider the caller owns is not charged storage, so the quota check is skipped and the signed URL carries the provider as an object tag. A provider the caller cannot use is refused.

Responses

Response samples

Content type
application/json
{
  • "presignedUrl": "string",
  • "uploadKey": "string",
  • "tagging": "string"
}

Confirm an Upload

Step 2 of 2: confirm a presigned upload to create the document and start processing.

Uploading a document is a two-part process. First call GET /document/presigned-url and upload the file to the URL it returns, then call this endpoint with the resulting upload key. Calling this endpoint is what creates the document; a file that was uploaded but never confirmed does not become a document.

Request Body schema: application/json
required
Uploadkey (string) or Uploadkey (null) (Uploadkey)

Optional S3 upload key from presigned URL request.

collectionId
required
string <uuid> (Collectionid)

The target collection ID.

name
required
string (Name)

The document name.

contentType
required
string (Contenttype)

The MIME type of the document.

fileSizeBytes
required
integer (Filesizebytes)

The document size in bytes.

contentHash
required
string (Contenthash)

The SHA-256 hash of the document content.

Topic (string) or Topic (null) (Topic)

Optional topic classification.

Externalfileproviderid (string) or Externalfileproviderid (null) (Externalfileproviderid)

The provider this file came from, which marks the document's origin.

Responses

Request samples

Content type
application/json
{
  • "uploadKey": "string",
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
  • "name": "string",
  • "contentType": "string",
  • "fileSizeBytes": 0,
  • "contentHash": "string",
  • "topic": "string",
  • "externalFileProviderId": "005bbb25-7a86-4270-b6b0-2269ded0f832"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
  • "contentType": "string",
  • "fileSizeBytes": 0,
  • "filepath": "string",
  • "chunkCount": 0
}

Create a Document

Create a document from inline text content and trigger processing.

Request Body schema: application/json
required
collectionId
required
string <uuid> (Collectionid)

The target collection ID.

name
required
string (Name)

The document name.

required
Content (string) or Content (string) (Content)

The document content.

contentType
string (Contenttype)
Default: "text/plain"

The MIME type.

Topic (string) or Topic (null) (Topic)

Optional topic classification.

Responses

Request samples

Content type
application/json
{
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
  • "name": "string",
  • "content": "string",
  • "contentType": "text/plain",
  • "topic": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
  • "contentType": "string",
  • "fileSizeBytes": 0,
  • "filepath": "string",
  • "chunkCount": 0
}

List Documents

List the uploaded documents.

query Parameters
deleted
boolean (Deleted)
Default: false

If true, return soft-deleted documents within the 14-day recovery window.

Array of Contenthash (strings) or Contenthash (null) (Contenthash)

A hash id to search for

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Get Document

Retrieve the raw content of a document via either the text or a presigned url to the file.

path Parameters
document_id
required
string <uuid> (Document Id)
query Parameters
responseFormat
string (Responseformat)
Default: "url"
Enum: "url" "text"

Response format: 'url' for presigned URL or 'text' for content directly.

Responses

Response samples

Content type
application/json
Example
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "archived": false,
  • "summary": "string",
  • "revisions": [ ],
  • "content": "string",
  • "format": "text"
}

Update a Document

Update a document's metadata and/or move it to a different collection.

path Parameters
document_id
required
string <uuid> (Document Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)

Optional new document name.

Ispublic (boolean) or Ispublic (null) (Ispublic)

Optional new public visibility status.

Collectionid (string) or Collectionid (null) (Collectionid)

Optional new collection ID.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "isPublic": true,
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "filepath": "string",
  • "contentType": "string",
  • "contentHash": "string",
  • "fileSizeBytes": 0,
  • "author": "string",
  • "summary": "string",
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
  • "topic": "string",
  • "revision": 0,
  • "chunkCount": 0,
  • "path": "string",
  • "hasStoredFile": true
}

Delete a Document

Delete a document.

path Parameters
document_id
required
string <uuid> (Document Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Create Document Revision

Create a new content revision for a document, keeping its id stable.

Supply content inline (text only), or upload via GET /document/presigned-url first — using the document's current name as the filename — and supply upload_key, content_hash, and file_size_bytes. The presigned source takes any content type: the object is already stored, and processing reads its type from the document name, exactly as confirm-upload does.

Multiple subsequent calls to this method are safe. 2xx responses guarantee that the document revision is up to date.

Args: document_id (UUID): The ID of the document to revise. body (CreateDocumentRevisionRequest): The new content, from exactly one of the inline or presigned-upload sources. document_service (DocumentService): Injected document service dependency.

Returns: DocumentRevisionData: The active revision holding the submitted content.

Raises: NotImplementedException: If the content type is not text/plain. ServiceUnavailableException: If the quota service is unreachable. PayloadTooLargeException: If the user's storage quota is exceeded. ConflictException: Carrying a code field naming the conflict: duplicate_content when the content already backs another document in the collection (not retryable; documentId and contentHash identify the collision), or revision_conflict when a concurrent revision write won the race (safe to retry). ForbiddenException: If the user lacks write access to the document or its collection is locked. NotFoundException: If the document is not found.

path Parameters
document_id
required
string <uuid> (Document Id)
Request Body schema: application/json
required
Content (string) or Content (null) (Content)

Optional inline document content.

contentType
string (Contenttype)
Default: "text/plain"

The MIME type.

Uploadkey (string) or Uploadkey (null) (Uploadkey)

Optional S3 upload key from presigned URL request.

Contenthash (string) or Contenthash (null) (Contenthash)

Optional content hash for presigned upload.

Filesizebytes (integer) or Filesizebytes (null) (Filesizebytes)

Optional file size for presigned upload.

Responses

Request samples

Content type
application/json
{
  • "content": "string",
  • "contentType": "text/plain",
  • "uploadKey": "20e4d01a-dc63-4623-a6e1-9f290b938d21",
  • "contentHash": "string",
  • "fileSizeBytes": 0
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "content_hash": "string",
  • "content_type": "string",
  • "file_size_bytes": 0,
  • "revision": 0,
  • "is_active": true,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "deleted_at": "2019-08-24T14:15:22Z",
  • "archived": false,
  • "content": {
    }
}

Recover a Deleted Document

Recover a document that was previously deleted. All documents have a 14-day recovery window. During this window, the document can be restored to your collections.

path Parameters
document_id
required
string <uuid> (Document Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "filepath": "string",
  • "contentType": "string",
  • "contentHash": "string",
  • "fileSizeBytes": 0,
  • "author": "string",
  • "summary": "string",
  • "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
  • "topic": "string",
  • "revision": 0,
  • "chunkCount": 0,
  • "path": "string",
  • "hasStoredFile": true
}

File Providers

List Ext_provider

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Ext_provider

Request Body schema: application/json
required
rootIdentifier
required
string (Rootidentifier)

The core identifying information for the integration.

integrationType
string (Integrationtype)
Default: "desktop"
Value: "desktop"
machineName
required
string (Machinename)

The machine's name. Not a column. The service uses it to build the label.

authenticationType
string (StorageAuthenticationType)
Default: "none"
Enum: "none" "oauth2" "kerberos" "iam_role"

The credential scheme used to authenticate against a provider.

Attributes: NONE: No credentials are needed, as with the desktop client reading the filesystem it already runs on. OAUTH2: An OAuth2 token pair held on the user's behalf, used by Google Drive. KERBEROS: Kerberos tickets, used by domain joined SMB shares. IAM_ROLE: An assumed AWS role, used by S3 buckets.

Example: >>> StorageAuthenticationType.IAM_ROLE.value 'iam_role'

Responses

Request samples

Content type
application/json
Example
{
  • "rootIdentifier": "string",
  • "integrationType": "desktop",
  • "machineName": "string",
  • "authenticationType": "none"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "displayName": "string",
  • "description": "string",
  • "integrationType": "desktop",
  • "rootIdentifier": "string",
  • "authenticationType": "none",
  • "enabled": true
}

Get Ext_provider

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "displayName": "string",
  • "description": "string",
  • "integrationType": "desktop",
  • "rootIdentifier": "string",
  • "authenticationType": "none",
  • "enabled": true
}

Update Ext_provider

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Displayname (string) or Displayname (null) (Displayname)
Any of
string (Displayname)

Responses

Request samples

Content type
application/json
{
  • "displayName": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "ownerId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "resourceType": "document",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "grants": [ ],
  • "displayName": "string",
  • "description": "string",
  • "integrationType": "desktop",
  • "rootIdentifier": "string",
  • "authenticationType": "none",
  • "enabled": true
}

Delete Ext_provider

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Resource Approvals

List Resource Approvals Admin

Retrieve all resource approval records.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Approve a Resource Request Admin

Approve a pending resource approval.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Reject a resource request Admin

Reject a pending resource request.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Revoke a resource approval Admin

Revoke a previously approved resource approval.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Retrieval

Get related chunks

Retrieve relevant document chunks for RAG (Retrieval Augmented Generation). Performs semantic search to find document chunks most relevant to the query.

query Parameters
expandContext
boolean (Expandcontext)
Default: true

Whether to expand results with neighboring chunks.

expansionThreshold
number (Expansionthreshold) [ 0 .. 1 ]
Default: 0.4

Similarity threshold for including neighbors during context expansion.

expansionMaxDepth
integer (Expansionmaxdepth) >= 0
Default: 3

Maximum distance from seed chunks when expanding context.

expansionSimilarityMetric
string (SimilarityMetric)
Default: "cosine"
Enum: "cosine" "l2" "inner_product"

Similarity metric for context expansion neighbors.

query
string (Query)

Text query to embed and search.

topK
integer (Topk) >= 1
Default: 10

Maximum number of top matches to return before context expansion.

minimumThreshold
number (Minimumthreshold) [ 0 .. 1 ]
Default: 0.15

Minimum similarity score (0-1) required for results.

similarityMetric
string (SimilarityMetric)
Default: "cosine"
Enum: "cosine" "l2" "inner_product"

Similarity metric for initial search (cosine, l2, or inner_product).

collectionId
Array of strings <uuid> (Collectionid) [ items <uuid > ]

Collection IDs to restrict search to. Omit to search all.

documentId
Array of strings <uuid> (Documentid) [ items <uuid > ]

Document IDs to restrict search to. Omit to search all.

chunkId
Array of strings <uuid> (Chunkid) [ items <uuid > ]

List of chunk IDs to retrieve.

limit
integer (Limit) >= 1
Default: 30

Hard cap on total chunks returned (seed + context).

offset
integer (Offset) >= 0
Default: 0

Number of chunks to skip

Responses

Response samples

Content type
application/json
{
  • "property1": {
    },
  • "property2": {
    }
}

Service Actions

Get Service Actions

Return the IAM action names served by this application.

Actions are resolved from the application's route table with the same resolution used by policy enforcement, so the reported vocabulary always matches what the policy checker enforces.

Returns: APIListModel[str]: Sorted action names for this service.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Analytics

Get User Token Consumption

Returns information about your token consumption.

Responses

Response samples

Content type
application/json
{
  • "tokensUsed": 0,
  • "tokensLimit": 0,
  • "shortPeriodStartTime": 0,
  • "shortPeriodEndTime": 0,
  • "orgSurplusRemaining": 0,
  • "userAllowanceUsedPercent": 0,
  • "orgAllowanceUsedPercent": 0,
  • "allowanceResetsAt": "2019-08-24T14:15:22Z",
  • "utilization": 0,
  • "utilizationString": "string"
}

Get Token Usage

Returns your distance from consuming your current period token limits.

Responses

Response samples

Content type
application/json
{
  • "nearingUsageLimits": true,
  • "orgTokensExhausted": true,
  • "shortPeriodStartTime": 0,
  • "shortPeriodEndTime": 0
}

Configuration

Get User Metrics Configuration

Get a user's metrics configuration.

path Parameters
user_id
required
string (User Id)

Responses

Response samples

Content type
application/json
{
  • "userId": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "shortPeriodScaledTokenLimit": 0,
  • "userStorageLimit": 0,
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Organization Metrics Configuration

Get an organization's metrics configuration.

path Parameters
organization_id
required
string <uuid> (Organization Id)

Responses

Response samples

Content type
application/json
{
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "longPeriodScaledTokenLimit": 0,
  • "orgStorageLimit": 0,
  • "defaultUserShortPeriodScaledLimit": 0,
  • "defaultUserStorageLimit": 0,
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Update Organization Metrics Configuration

Update an organization's metrics configuration. Only provided fields will be updated.

path Parameters
organization_id
required
string <uuid> (Organization Id)
Request Body schema: application/json
required
Longperiodscaledtokenlimit (integer) or Longperiodscaledtokenlimit (null) (Longperiodscaledtokenlimit)

Scaled token limit for the long period (1 week)

Orgstoragelimit (integer) or Orgstoragelimit (null) (Orgstoragelimit)

Storage limit in bytes for the organization

Defaultusershortperiodscaledlimit (integer) or Defaultusershortperiodscaledlimit (null) (Defaultusershortperiodscaledlimit)

Default short period scaled token limit for new users

Defaultuserstoragelimit (integer) or Defaultuserstoragelimit (null) (Defaultuserstoragelimit)

Default storage limit in bytes for new users

Responses

Request samples

Content type
application/json
{
  • "longPeriodScaledTokenLimit": 100000000000,
  • "orgStorageLimit": 10995116277760,
  • "defaultUserShortPeriodScaledLimit": 50000000,
  • "defaultUserStorageLimit": 1099511627776
}

Response samples

Content type
application/json
{
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "longPeriodScaledTokenLimit": 0,
  • "orgStorageLimit": 0,
  • "defaultUserShortPeriodScaledLimit": 0,
  • "defaultUserStorageLimit": 0,
  • "updatedAt": "2019-08-24T14:15:22Z"
}

List Users Metric's Configurations

Get user metrics configurations for an organization.

query Parameters
organizationId
required
string <uuid> (Organizationid)

The organization ID.

offset
integer (Offset) >= 0
Default: 0

Number of records to skip

limit
integer (Limit) [ 1 .. 100 ]
Default: 50

Maximum number of records to return

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0,
  • "offset": 0,
  • "limit": 1
}

Bulk Update User Metrics Configurations

Bulk update user metrics configurations.

Updates multiple user configurations in a single request.

Request Body schema: application/json
required
Array of Userids (strings) or Userids (null) (Userids)

List of user IDs to update. Omit to update all users.

Shortperiodscaledtokenlimit (integer) or Shortperiodscaledtokenlimit (null) (Shortperiodscaledtokenlimit)

Scaled token limit for the short period (4 hours)

Userstoragelimit (integer) or Userstoragelimit (null) (Userstoragelimit)

Storage limit in bytes for the user

Responses

Request samples

Content type
application/json
{
  • "userIds": [
    ],
  • "shortPeriodScaledTokenLimit": 50000000,
  • "userStorageLimit": 1099511627776
}

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0,
  • "successCount": 0,
  • "failureCount": 0
}

Events

Query Surplus Events

Query surplus collection events for a specified timerange.

query Parameters
MetricResourceType (string) or Resourcetype (null) (Resourcetype)

Optional resource type to filter by.

Startdate (string) or Startdate (null) (Startdate)

Optional start date for the query range.

Enddate (string) or Enddate (null) (Enddate)

Optional end date for the query range.

Pageindex (integer) or Pageindex (null) (Pageindex)
Default: 0

Zero-based page index.

Limit (integer) or Limit (null) (Limit)
Default: 25

Number of results per page.

Orderby (string) or Orderby (null) (Orderby)

Field to sort by.

SortDirection (string) or Orderdirection (null) (Orderdirection)

Sort direction (ascending or descending).

Array of Organizationids (strings) or Organizationids (null) (Organizationids)

Optional list of organization IDs to filter by.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

List Consumption Events

Query metric consumption events over a given period.

query Parameters
MetricResourceType (string) or Resourcetype (null) (Resourcetype)

Optional resource type to filter by.

Startdate (string) or Startdate (null) (Startdate)

Optional start date for the query range.

Enddate (string) or Enddate (null) (Enddate)

Optional end date for the query range.

Pageindex (integer) or Pageindex (null) (Pageindex)
Default: 0

Zero-based page index.

Limit (integer) or Limit (null) (Limit)
Default: 25

Number of results per page.

Orderby (string) or Orderby (null) (Orderby)

Field to sort by.

SortDirection (string) or Orderdirection (null) (Orderdirection)

Sort direction (ascending or descending).

MetricPoolCategory (string) or Poolcategory (null) (Poolcategory)

Optional pool category to filter by.

MetricIOType (string) or Iotype (null) (Iotype)

Optional IO type to filter by.

MetricCacheStatus (string) or Cachestatus (null) (Cachestatus)

Optional cache status to filter by.

Array of Userids (strings) or Userids (null) (Userids)

Optional list of user IDs to filter by.

Modelid (string) or Modelid (null) (Modelid)

Optional model ID to filter by.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Get a Consumption Timeline

Get scaled token consumption data in timeline format. This data is useful for plotting or viewing usage trends.

query Parameters
MetricResourceType (string) or Resourcetype (null) (Resourcetype)

Optional resource type to filter by.

startDate
required
string <date-time> (Startdate)

Start date for the query range.

endDate
required
string <date-time> (Enddate)

End date for the query range.

Array of Userids (strings) or Userids (null) (Userids)

Optional list of user IDs to filter by.

granularity
string (Granularity)
Default: "hour"
Enum: "hour" "day" "week"

Time granularity for the timeline (hour, day, week, etc.).

Responses

Response samples

Content type
application/json
{
  • "points": [
    ],
  • "axisMetadata": {
    }
}

List top users

Rank users by token consumption over a date range.

query Parameters
MetricResourceType (string) or Resourcetype (null) (Resourcetype)

Optional resource type to filter by.

Startdate (string) or Startdate (null) (Startdate)

Optional start date for the query range.

Enddate (string) or Enddate (null) (Enddate)

Optional end date for the query range.

limit
integer (Limit) [ 1 .. 50 ]
Default: 10

Maximum number of results to return.

Array of Organizationids (strings) or Organizationids (null) (Organizationids)

Optional list of organization IDs. Omit to rank across every organization.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0,
  • "totalTokens": 0
}

Resource Approvals

Request a Storage Limit Change Admin

Submit a storage limit change for a user.

Request Body schema: application/json
required
Note (string) or Note (null) (Note)
userStorageLimit
required
integer (Userstoragelimit) > 0
userId
required
string <uuid> (Userid)

The user whose limit changes.

Responses

Request samples

Content type
application/json
{
  • "note": "string",
  • "userStorageLimit": 0,
  • "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Request a Token Limit Change Admin

Submit a short period token limit change for a user.

Request Body schema: application/json
required
Note (string) or Note (null) (Note)
shortPeriodScaledTokenLimit
required
integer (Shortperiodscaledtokenlimit) > 0
userId
required
string <uuid> (Userid)

The user whose limit changes.

Responses

Request samples

Content type
application/json
{
  • "note": "string",
  • "shortPeriodScaledTokenLimit": 0,
  • "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

List Resource Approvals Admin

List the storage or token approvals of the caller organization.

query Parameters
resourceType
required
string (ResourceType)
Enum: "document" "collection" "conversation" "workflow" "agent" "tool" "instruction" "project" "group" "template" "ext_provider" "clove_app" "storage" "tokens" "sandbox_endpoints"

The resource type to filter by: storage or tokens.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Approve a Resource Request Admin

Approve a pending request and apply the new limit.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Reject a Resource Request Admin

Reject a pending request. The limit does not change.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Revoke a Resource Approval Admin

Revoke an approved request and restore the previous limit.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "note": "string",
  • "submissionNote": "string",
  • "resourceType": "document",
  • "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
  • "extraApprovalData": {
    },
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "submittedByUserId": "string",
  • "status": "pending",
  • "approverId": "string",
  • "approverNote": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Service Actions

Get Service Actions

Return the IAM action names served by this application.

Actions are resolved from the application's route table with the same resolution used by policy enforcement, so the reported vocabulary always matches what the policy checker enforces.

Returns: APIListModel[str]: Sorted action names for this service.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Storage

Get Organization Storage Usage Admin

Get current storage usage and limits.

query Parameters
Userid (string) or Userid (null) (Userid)

Filter by user ID.

Responses

Response samples

Content type
application/json
{
  • "usedBytes": 0,
  • "limitBytes": 0,
  • "availableBytes": 0,
  • "usagePercent": 0
}

Token Statistics

Get Token Statistics

Get aggregated token statistics for your organization.

Responses

Response samples

Content type
application/json
{
  • "currentBalance": 0,
  • "balanceDeltaPercent": 0,
  • "balanceHistory": [
    ],
  • "allowanceUsedPercent": 0,
  • "allowanceResetsAt": "2019-08-24T14:15:22Z",
  • "sharedPoolRemainingPercent": 0,
  • "sharedPoolNetPerPeriod": 0,
  • "sharedPoolDepletionAt": "2019-08-24T14:15:22Z",
  • "usersAtLimitCount": 0,
  • "heaviestUserId": "string",
  • "heaviestUserSharePercent": 0,
  • "tokensThisPeriod": 0,
  • "tokensThisPeriodDeltaPercent": 0
}

Api Keys

List API Keys

List your API key identifiers. Note that this will not return the private key which can only be viewed once at creation time.

query Parameters
userId
string (Userid)

Optional user ID to filter API keys for a specific user. Only administrators can view API keys for other users.

status
string (APIKeyStatus)
Enum: "active" "expired" "suspended" "compromised" "deleted"

Filter by API key Status.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create an API Key

Create a new API key for authentication. Note that you will be shown an API Secret Key. You must record this value. It is never shown again.

Request Body schema: application/json
required
name
required
string (Name)

A human readable description for the API key

required
Expiration (integer) or Expiration (string) (Expiration)

A flexible input for expiration. The input is validated so that the final result is always transformed to a point in time.

Ownerid (string) or Ownerid (null) (Ownerid)

An optional user id if you are creating the API Key on behalf of someone else.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "expiration": 0,
  • "ownerId": "string"
}

Response samples

Content type
application/json
{
  • "apiKeyId": "string",
  • "apiSecretKey": "string",
  • "name": "string",
  • "expiresAt": "2019-08-24T14:15:22Z",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "lastUsed": "2019-08-24T14:15:22Z",
  • "status": "active",
  • "metadata": { }
}

Disable an API Key Admin

Disable an API key to prevent its use for authentication. Administrators only.

path Parameters
api_key_id
required
string (Api Key Id)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Enable an API Key Admin

Re-enable a previously disabled API key. Administrators only.

path Parameters
api_key_id
required
string (Api Key Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Delete an API key

Permanently delete an API key.

Removes an API key from the system entirely. This is an irreversible operation - once deleted, the API key cannot be recovered and a new key must be created if access is needed again.

Users can delete their own API keys, and administrators can delete any user's API keys. Consider using the disable endpoint instead if temporary revocation is desired.

path Parameters
api_key_id
required
string (Api Key Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Auth

Login

Initiate the login flow to the Thirdloop platform.

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Callback

Handles the authorization callback for SSO login.

query Parameters
code
string (Code)

The authorization code.

state
string (State)

The auth flow state, used for session verification.

error
string (Error)
Default: ""

An error code if the authorization failed.

error_description
string (Error Description)
Default: ""

Human-readable error description.

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Refresh Tokens

Refresh the authentication and id token using an available refresh token.

cookie Parameters
Thirdloopsessioncookie (string) or Thirdloopsessioncookie (null) (Thirdloopsessioncookie)

Responses

Response samples

Content type
application/json
{
  • "message": "string",
  • "expiresIn": 0
}

Start a Session

Starts a user session by storing issued tokens to the session cookie.

Args: body (TokenAuthData): The request body including the refresh token. response (Response): See FastAPI response. session_service (SessionAuthService, optional): An instance of the SessionAuthService. Injected via Depends.

Returns: SimpleResponse: A simple success response back to the client.

Raises: NotAuthorizedException: If the user id is null.

Request Body schema: application/json
required
accessToken
required
string (Accesstoken)
expiresIn
required
integer (Expiresin)
Tokentype (string) or Tokentype (null) (Tokentype)
refreshToken
required
string (Refreshtoken)
idToken
required
string (Idtoken)

Responses

Request samples

Content type
application/json
{
  • "accessToken": "string",
  • "expiresIn": 0,
  • "tokenType": "string",
  • "refreshToken": "string",
  • "idToken": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Logout

Logout from the Thirdloop platform. This endpoint only logs you out from a single device.

cookie Parameters
required
Thirdloopsessioncookie (string) or Thirdloopsessioncookie (null) (Thirdloopsessioncookie)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Logout of all Devices

Logout of all sessions on all devices.

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Sdk Login

Initiates an SDK login flow by redirecting to the Cognito hosted UI.

Cognito redirects to the SDK's redirect_uri with the authorization code and the caller-supplied state. The SDK verifies the state and then calls /auth/sdk/token with the code and code_verifier.

Args: redirect_uri (str): The OAuth redirect URI where Cognito sends the authorization code, typically the SDK's local callback URL. state (str): SDK-generated OAuth state, passed through to the identity provider so the SDK can verify the echoed value. code_challenge (Optional[str]): PKCE code challenge. code_challenge_method (Optional[str]): Must be 'S256' or 'plain'. use_external_provider (Optional[bool]): When true, log in via the configured external SSO identity provider.

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Sdk Token Exchange

Exchanges an IDP authorization code for tokens.

Used by SDK/PKCE flows where the SDK receives the authorization code directly and exchanges it with the code_verifier. The redirect_uri must match the one used in the original /auth/sdk/login request.

Args: body (TokenExchangeRequest): Contains code, redirect_uri, and optional code_verifier.

Request Body schema: application/json
required
code
required
string (Code)

The code to exchange.

redirectUri
required
string (Redirecturi)

The post exchange redirect location.

codeVerifier
required
string (Codeverifier)

A signature verifier.

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "redirectUri": "string",
  • "codeVerifier": "string"
}

Response samples

Content type
application/json
{
  • "accessToken": "string",
  • "expiresIn": 0,
  • "tokenType": "string",
  • "refreshToken": "string",
  • "idToken": "string"
}

Sdk Validate Callback

Validates a caller-supplied SDK callback URL against the configured allowed callback urls.

Args: callback_url (str): The callback URL to validate.

Returns: SdkCallbackValidationResponse: The allow decision and, when allowed, the normalized URL the browser should POST tokens to.

query Parameters
callbackUrl
required
string (Callbackurl)

The callback URL the browser intends to deliver tokens to.

Responses

Response samples

Content type
application/json
{
  • "allowed": true,
  • "normalizedUrl": "string",
  • "reason": "string"
}

Sdk Refresh Tokens

Performs a refresh token operation and sends the token information directly down in the response payload.

Args: body (RefreshTokenRequest): The refresh token payload. auth_service (SdkAuthService, optional): Dependency injected auth service.

Returns: TokenAuthData: The token authorization payload.

Request Body schema: application/json
required
refreshToken
required
string (Refreshtoken)

Responses

Request samples

Content type
application/json
{
  • "refreshToken": "string"
}

Response samples

Content type
application/json
{
  • "accessToken": "string",
  • "expiresIn": 0,
  • "tokenType": "string",
  • "refreshToken": "string",
  • "idToken": "string"
}

Groups

List Group Members

List the members of a group.

path Parameters
id
required
string <uuid> (Id)
query Parameters
pageIndex
integer (Pageindex) >= 0
Default: 0
pageSize
integer (Pagesize) [ 1 .. 100 ]
Default: 25
Sortby (string) or Sortby (null) (Sortby)
Sortdirection (string) or Sortdirection (null) (Sortdirection)
includeUsers
boolean (Includeusers)
Default: true
includeServiceAccounts
boolean (Includeserviceaccounts)
Default: true

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Add Member To Group

Adds a member to an existing group.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

permissionLevel
string (PermissionLevel)
Default: "read"
Enum: "read" "write" "admin" "owner"

The access level that a share grant carries.

Example: >>> PermissionLevel.WRITE.value 'write'

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user",
  • "permissionLevel": "read"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
  • "members": [ ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "users": [ ],
  • "serviceAccounts": [ ]
}

Remove Member From Group

Removes a from an existing group.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
id
required
string (Id)

The id of the principal

principalType
required
string (PrincipalType)
Enum: "user" "service_account" "role" "organization" "system"

The type of the principal

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "principalType": "user"
}

Response samples

Content type
application/json
{
  • "detail": "string"
}

Send Message To Group

Sends a message to the members of a group.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
textContent
required
string (Textcontent)

Responses

Request samples

Content type
application/json
{
  • "textContent": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

List Group

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Group

Request Body schema: application/json
required
name
required
string (Name)
description
required
string (Description)
organizationId
required
string <uuid> (Organizationid)
Parentgroup (string) or Parentgroup (null) (Parentgroup)
Array of objects (Members)
Default: []

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
  • "members": [ ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
  • "members": [ ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "users": [ ],
  • "serviceAccounts": [ ]
}

Get Group

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
  • "members": [ ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "users": [ ],
  • "serviceAccounts": [ ]
}

Update Group

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)
Description (string) or Description (null) (Description)
Organizationid (string) or Organizationid (null) (Organizationid)
Parentgroup (string) or Parentgroup (null) (Parentgroup)
Array of objects (Members)

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
  • "members": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
  • "members": [ ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "users": [ ],
  • "serviceAccounts": [ ]
}

Delete Group

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Mcp Servers

List Mcpserver

query Parameters
required
object (McpServerQueryParams)

The filters of the MCP server list.

Only the enabled servers are open to every member. Any other value needs the list permission of an administrator. The model dump gives the exact arguments of the repository lookup.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Mcpserver

Request Body schema: application/json
required
description
string (Description) <= 500 characters
Default: ""

One line that tells the model what the server offers. Example: Policy search for the company. Default: empty.

url
required
string (Url) <= 2048 characters

The address of the MCP endpoint. It must start with https://. Example: https://maps.example.com/mcp.

authType
string (McpAuthType)
Default: "None"
Enum: "None" "Bearer" "CognitoIdTokenBearerAndCookie"

How the desktop app signs in to the server. None: no credentials. Bearer: the token goes in the place that auth_field names. CognitoIdTokenBearerAndCookie: the app sends the Bearer header and the token in the place that auth_field names, with the same token. Default: None.

Loginurl (string) or Loginurl (null) (Loginurl)

The page that starts the sign in. Its host must be the host of url or be in allowed_hosts. Example: https://login.example.com/start. Default: empty, which uses url.

Cookiename (string) or Cookiename (null) (Cookiename)

The cookie that the sign in window reads the token from after the user logs in. Set it when the login site names its cookie differently. It only affects the login step. It does not change what the app sends. Example: session_token. Letters, digits, underscore and dash. Default: empty. The window then reads the cookie of auth_field when that is a cookie, and id_token otherwise.

Authfield (string) or Authfield (null) (Authfield)

Where the desktop app puts the token in each request. Pick a header or a cookie, written as Header:Name or Cookie:Name. The kind is not case sensitive. The app sets some headers itself (Cookie, Host, Content-Type, Accept and similar), so Header:Name cannot use those. A cookie can use any name. Examples: Header:x-access-token, Header:Authorization, Cookie:session. Header:Authorization sends Bearer . Any other header sends the token as it is. A cookie sends Name=. Default: empty. That means Header:Authorization, or Cookie:id_token when auth_type is CognitoIdTokenBearerAndCookie.

allowedHosts
Array of strings (Allowedhosts) unique
Default: []

Extra hosts the sign in window may visit and read cookies from. The host of url is always allowed. Hosts are lower case. Example: login.example.com. Default: none.

timeoutSeconds
integer (Timeoutseconds) [ 1 .. 120 ]
Default: 30

The time limit for one request. From 1 to 120 seconds. Default: 30.

enabled
boolean (Enabled)
Default: true

False turns the server off for the organization. Default: true.

name
required
string (Name)

The short name the model uses. Lower case letters, digits and underscore.

Responses

Request samples

Content type
application/json
{
  • "description": "",
  • "url": "string",
  • "authType": "None",
  • "loginUrl": "string",
  • "cookieName": "string",
  • "authField": "string",
  • "allowedHosts": [ ],
  • "timeoutSeconds": 30,
  • "enabled": true,
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "description": "",
  • "url": "string",
  • "authType": "None",
  • "loginUrl": "string",
  • "cookieName": "string",
  • "authField": "string",
  • "allowedHosts": [
    ],
  • "timeoutSeconds": 30,
  • "enabled": true,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get Mcpserver

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "description": "",
  • "url": "string",
  • "authType": "None",
  • "loginUrl": "string",
  • "cookieName": "string",
  • "authField": "string",
  • "allowedHosts": [
    ],
  • "timeoutSeconds": 30,
  • "enabled": true,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Update Mcpserver

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
description
string (Description) <= 500 characters
Default: ""

One line that tells the model what the server offers. Example: Policy search for the company. Default: empty.

url
required
string (Url) <= 2048 characters

The address of the MCP endpoint. It must start with https://. Example: https://maps.example.com/mcp.

authType
string (McpAuthType)
Default: "None"
Enum: "None" "Bearer" "CognitoIdTokenBearerAndCookie"

How the desktop app signs in to the server. None: no credentials. Bearer: the token goes in the place that auth_field names. CognitoIdTokenBearerAndCookie: the app sends the Bearer header and the token in the place that auth_field names, with the same token. Default: None.

Loginurl (string) or Loginurl (null) (Loginurl)

The page that starts the sign in. Its host must be the host of url or be in allowed_hosts. Example: https://login.example.com/start. Default: empty, which uses url.

Cookiename (string) or Cookiename (null) (Cookiename)

The cookie that the sign in window reads the token from after the user logs in. Set it when the login site names its cookie differently. It only affects the login step. It does not change what the app sends. Example: session_token. Letters, digits, underscore and dash. Default: empty. The window then reads the cookie of auth_field when that is a cookie, and id_token otherwise.

Authfield (string) or Authfield (null) (Authfield)

Where the desktop app puts the token in each request. Pick a header or a cookie, written as Header:Name or Cookie:Name. The kind is not case sensitive. The app sets some headers itself (Cookie, Host, Content-Type, Accept and similar), so Header:Name cannot use those. A cookie can use any name. Examples: Header:x-access-token, Header:Authorization, Cookie:session. Header:Authorization sends Bearer . Any other header sends the token as it is. A cookie sends Name=. Default: empty. That means Header:Authorization, or Cookie:id_token when auth_type is CognitoIdTokenBearerAndCookie.

allowedHosts
Array of strings (Allowedhosts) unique
Default: []

Extra hosts the sign in window may visit and read cookies from. The host of url is always allowed. Hosts are lower case. Example: login.example.com. Default: none.

timeoutSeconds
integer (Timeoutseconds) [ 1 .. 120 ]
Default: 30

The time limit for one request. From 1 to 120 seconds. Default: 30.

enabled
boolean (Enabled)
Default: true

False turns the server off for the organization. Default: true.

Responses

Request samples

Content type
application/json
{
  • "description": "",
  • "url": "string",
  • "authType": "None",
  • "loginUrl": "string",
  • "cookieName": "string",
  • "authField": "string",
  • "allowedHosts": [ ],
  • "timeoutSeconds": 30,
  • "enabled": true
}

Response samples

Content type
application/json
{
  • "description": "",
  • "url": "string",
  • "authType": "None",
  • "loginUrl": "string",
  • "cookieName": "string",
  • "authField": "string",
  • "allowedHosts": [
    ],
  • "timeoutSeconds": 30,
  • "enabled": true,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Delete Mcpserver

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Notifications

Notify Yourself

Create a notification that is send to yourself.

Request Body schema: application/json
required
title
required
string (Title) [ 1 .. 100 ] characters

A short, human-readable notification title (max 100 chars).

notificationType
required
string (NotificationEventType)
Enum: "message_notification" "internal_redirect_notification" "chat_attachment_processed" "chat_attachment_processing_failed" "collection_document_processed" "collection_document_processing_failed" "collection_document_upload_skipped" "collection_document_upload_failed" "token_usage_updated" "workflow_step_completed" "workflow_run_finished" "workflow_local_tool_requested" "workflow_schedules_changed"

A NotificationEventType enum value.

Body (object) or Body (null) (Body)

Optional structured body content (dict).

Visibleuntil (string) or Visibleuntil (null) (Visibleuntil)

Optional ISO 8601 timestamp after which the notification should no longer be displayed. When omitted the notification persists.

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "notificationType": "message_notification",
  • "body": { },
  • "visibleUntil": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Notify Users in your Organization Admin

Broadcasts a notification to all users in your organization. Administrators only.

Request Body schema: application/json
required
title
required
string (Title) [ 1 .. 100 ] characters

A short, human-readable notification title (max 100 chars).

notificationType
required
string (NotificationEventType)
Enum: "message_notification" "internal_redirect_notification" "chat_attachment_processed" "chat_attachment_processing_failed" "collection_document_processed" "collection_document_processing_failed" "collection_document_upload_skipped" "collection_document_upload_failed" "token_usage_updated" "workflow_step_completed" "workflow_run_finished" "workflow_local_tool_requested" "workflow_schedules_changed"

A NotificationEventType enum value.

Body (object) or Body (null) (Body)

Optional structured body content (dict).

Organizationid (string) or Organizationid (null) (Organizationid)

Optional target organization. When omitted the authenticated admin's own organization is used.

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "notificationType": "message_notification",
  • "body": { },
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Organizations

List My Organization Members

Retrieves active members of your organization.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0,
  • "organizationName": "string"
}

Get My Organization Configuration

Retrieves the configuration for your organization.

Responses

Response samples

Content type
application/json
{
  • "sandboxConfiguration": {
    },
  • "instructions": {
    }
}

Update My Organization Configuration Admin

Updates the organization configuration for your organization. Administrator only. Fields you do not send keep their saved values. Each instructions field has a limit of 4000 characters.

Request Body schema: application/json
required
OrganizationSandboxConfiguration (object) or null

See OrganizationSandboxConfiguration. An update without it keeps the saved value.

object (OrganizationInstructions)

See OrganizationInstructions. An update changes only the fields it sends.

Responses

Request samples

Content type
application/json
{
  • "sandboxConfiguration": {
    },
  • "instructions": {
    }
}

Response samples

Content type
application/json
{
  • "sandboxConfiguration": {
    },
  • "instructions": {
    }
}

Get My Organization

Retrieves your organization data.

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "configuration": {
    }
}

Policies

List Policy Actions

Return all available IAM actions grouped by service.

Responses

Response samples

Content type
application/json
{
  • "property1": [
    ],
  • "property2": [
    ]
}

List Policy Services

Return all service names that can be targeted in a policy statement.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create a Policy Statement

Create and attach a new statement to a policy.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
required
object (PolicyStatement)

The policy statement to create.

Id (string) or Id (null) (Id)
sid
required
string (Sid)
effect
required
string (PolicyEffect)
Enum: "allow" "deny"

Allow/deny outcome for a policy statement.

service
required
string (PolicyService)
Enum: "core" "user" "embedding" "metrics"

Target service namespace for a policy statement.

actions
required
Array of strings (Actions)
resources
required
Array of strings (Resources)

Responses

Request samples

Content type
application/json
{
  • "statement": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Attach a Policy Statement

Attach an existing statement to a policy.

path Parameters
id
required
string <uuid> (Id)
statement_id
required
string <uuid> (Statement Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Remove a Policy Statement

Remove an attached statement from a policy.

path Parameters
id
required
string <uuid> (Id)
statement_id
required
string <uuid> (Statement Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Simulate an Action

Simulate an action to determine if the principal is authorized to perform said action. If the action is being simulated on behalf of a different principal, the method verifies that the caller can access the policies of the specified principal.

Request Body schema: application/json
required
Principalid (string) or Principalid (string) or Principalid (null) (Principalid)

The principal id. Can be the id of a role, service account, or user account.

required
Array of Items (objects) or ActionResourcePair (object) (Items)

A list of action resource pairings to evaluate. Typical usage would pass a single pairing.

principalType
string (PrincipalType)
Default: "user"
Enum: "user" "service_account" "role" "organization" "system"

The principal type. Can be a user, service account, or role. See PrincipalType

Responses

Request samples

Content type
application/json
{
  • "principalId": "0a52818d-1e0c-4e64-848e-4d04f9e914e5",
  • "items": [
    ],
  • "principalType": "user"
}

Response samples

Content type
application/json
{
  • "outcomes": [
    ],
  • "passed": 0,
  • "failed": 0,
  • "allPassed": true
}

List Policy

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Policy

Request Body schema: application/json
required
Description (string) or Description (null) (Description)

Optional policy description.

Array of objects (Statements)
Default: []

List of policy statements.

name
required
string (Name)

The policy name.

Responses

Request samples

Content type
application/json
{
  • "description": "string",
  • "statements": [ ],
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Get Policy

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Update Policy

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Description (string) or Description (null) (Description)

Optional policy description.

Array of objects (Statements)
Default: []

List of policy statements.

Responses

Request samples

Content type
application/json
{
  • "description": "string",
  • "statements": [ ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Delete Policy

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Resource Approvals

List Resource Requests Admin

List all pending resource requests. Administrators only.

query Parameters
resourceType
required
string (ResourceType)
Enum: "document" "collection" "conversation" "workflow" "agent" "tool" "instruction" "project" "group" "template" "ext_provider" "clove_app" "storage" "tokens" "sandbox_endpoints"

The resource type to filter approvals by.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Approve a Resource Request

Approve a pending resource request.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "updatedApproval": {
    }
}

Reject a Resource Request

Reject a pending resource request.

path Parameters
approval_id
required
string <uuid> (Approval Id)
Request Body schema: application/json
Any of
Note (string) or Note (null) (Note)
Any of
<= 2000 characters
string (Note) <= 2000 characters

Responses

Request samples

Content type
application/json
Example
{
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "updatedApproval": {
    }
}

Roles

Add an Inline Policy

Add an inline policy to a role.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Description (string) or Description (null) (Description)

Optional policy description.

Array of objects (Statements)
Default: []

List of policy statements.

name
required
string (Name)

The policy name.

Responses

Request samples

Content type
application/json
{
  • "description": "string",
  • "statements": [ ],
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Remove an Inline Policy

Removes an inline policy from a role.

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Update an Inline Policy

Update an inline role policy.

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Description (string) or Description (null) (Description)

Optional policy description.

Array of objects (Statements)
Default: []

List of policy statements.

Responses

Request samples

Content type
application/json
{
  • "description": "string",
  • "statements": [ ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "name": "string",
  • "isInline": false,
  • "isOrganizationScoped": true,
  • "description": "string",
  • "statements": [ ]
}

Add a Policy to a Role

Add a Policy to a role. The policy must already exist.

path Parameters
id
required
string <uuid> (Id)
policy_id
required
string <uuid> (Policy Id)

Responses

Response samples

Content type
application/json
{
  • "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",
  • "policyId": "2f5573e6-5ba4-48f2-a75d-df99c936463b",
  • "assignedAt": "2019-08-24T14:15:22Z",
  • "assignedBy": "string"
}

Remove a Policy from a Role

Remove a policy from a role.

path Parameters
id
required
string <uuid> (Id)
policy_id
required
string <uuid> (Policy Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

List Role

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Role

Request Body schema: application/json
required
name
required
string (Name)

The role name.

description
required
string (Description) <= 500 characters

The role description.

isActive
required
boolean (Isactive)

Whether the role is active.

rank
required
integer (Rank)

The role rank.

Organizationid (string) or Organizationid (null) (Organizationid)

Optional organization ID.

Array of objects (Policies)
Default: []

Associated policies.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "isActive": true,
  • "rank": 0,
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "policies": [ ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "rank": 0,
  • "description": "",
  • "isActive": true,
  • "isOrganizationScoped": true,
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "policies": [ ]
}

Get Role

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "rank": 0,
  • "description": "",
  • "isActive": true,
  • "isOrganizationScoped": true,
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "policies": [ ]
}

Update Role

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
object (UpdateRole)

Update the details of an existing Role.

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "rank": 0,
  • "description": "",
  • "isActive": true,
  • "isOrganizationScoped": true,
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "policies": [ ]
}

Delete Role

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Service Accounts

Add Role To Service Account

Adds an existing role to a service account.

path Parameters
id
required
string <uuid> (Id)
role_id
required
string <uuid> (Role Id)

Responses

Response samples

Content type
application/json
{
  • "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
  • "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",
  • "assignedBy": "string",
  • "assignedAt": "2019-08-24T14:15:22Z",
  • "isActive": true
}

Remove Role From Service Account

Removes a role from a service account.

path Parameters
id
required
string <uuid> (Id)
role_id
required
string <uuid> (Role Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Get Service Account Secret Admin

Admin-scoped retrieval of a service account client secret by id.

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "clientSecret": "string"
}

Rotate Service Account Secret Admin

Admin-scoped rotation of a service account client secret by id.

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "clientSecret": "string"
}

List Serviceaccount

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Create Serviceaccount

Request Body schema: application/json
required
name
required
string (Name)

The service account name.

scope
required
string (ResourceServerAccountScope)
Enum: "read" "write" "admin"

Access scope for the service account.

Clientid (string) or Clientid (null) (Clientid)

Optional pre-allocated custom client ID.

accessTokenExpiration
integer (Accesstokenexpiration)
Default: 60

Access token lifetime value.

accessTokenExpirationUnit
string (TimeUnit)
Default: "minutes"
Enum: "milliseconds" "seconds" "minutes" "hours" "days" "weeks" "years"

Unit of time for access token expiration.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "scope": "read",
  • "clientId": "string",
  • "accessTokenExpiration": 60,
  • "accessTokenExpirationUnit": "milliseconds"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "scope": "read",
  • "clientId": "string",
  • "accessTokenExpiration": 60,
  • "accessTokenExpirationUnit": "milliseconds",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "clientSecret": "string",
  • "createdBy": "string",
  • "revokedBy": "string",
  • "lastAccessed": "2019-08-24T14:15:22Z",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "roles": [ ],
  • "organization": {
    }
}

Get Serviceaccount

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "scope": "read",
  • "clientId": "string",
  • "accessTokenExpiration": 60,
  • "accessTokenExpirationUnit": "milliseconds",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "clientSecret": "string",
  • "createdBy": "string",
  • "revokedBy": "string",
  • "lastAccessed": "2019-08-24T14:15:22Z",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "roles": [ ],
  • "organization": {
    }
}

Update Serviceaccount

path Parameters
id
required
string <uuid> (Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)

Optional new service account name.

ResourceServerAccountScope (string) or null

Optional new access scope.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "scope": "read"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "scope": "read",
  • "clientId": "string",
  • "accessTokenExpiration": 60,
  • "accessTokenExpirationUnit": "milliseconds",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  • "clientSecret": "string",
  • "createdBy": "string",
  • "revokedBy": "string",
  • "lastAccessed": "2019-08-24T14:15:22Z",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "roles": [ ],
  • "organization": {
    }
}

Delete Serviceaccount

path Parameters
id
required
string <uuid> (Id)

Responses

Response samples

Content type
application/json
{
  • "detail": "string"
}

Service Account Login

Request Body schema: application/json
required
clientSecret
required
string (Clientsecret)

The client secret.

id
required
string <uuid> (Id)

The service account ID.

Responses

Request samples

Content type
application/json
{
  • "clientSecret": "string",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Response samples

Content type
application/json
{
  • "accessToken": "string",
  • "expiresIn": 0,
  • "tokenType": "string"
}

Get Rotated Secret

Request Body schema: application/json
required
clientSecret
required
string (Clientsecret)

The client secret.

id
required
string <uuid> (Id)

The service account ID.

Responses

Request samples

Content type
application/json
{
  • "clientSecret": "string",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Response samples

Content type
application/json
{
  • "clientSecret": "string"
}

Sso

Get Providers

Responses

Response samples

Content type
application/json
null

Get Service Provider Configuration Admin

Get Service Provider configuration for IdP setup.

Returns the Entity ID and ACS URL needed to configure the third-party Identity Provider (Azure AD, Okta, etc).

Responses

Response samples

Content type
application/json
{
  • "entityId": "string",
  • "acsUrl": "string",
  • "logoutUrl": "string"
}

Get Signing Certificate Admin

Get the authentication integration signing certificate.

Responses

Response samples

Content type
application/json
{
  • "certificate": "string"
}

Get Encryption Certificate Admin

Get the encryption certificate for a specific SAML provider.

path Parameters
provider_name
required
string (Provider Name)

Responses

Response samples

Content type
application/json
{
  • "certificate": "string"
}

Get Identity Provider Status Admin

Get the configuration status for a registered single sign on provider.

path Parameters
provider_id
required
string <uuid> (Provider Id)

Responses

Response samples

Content type
application/json
{
  • "providerId": "4834bcdc-4a64-444d-966b-1a6fe381da24",
  • "ssoEnabled": false,
  • "providerName": "string",
  • "metadataUrl": "string",
  • "metadataFile": {
    },
  • "attributeMapping": {
    },
  • "providerDetails": {
    }
}

Disable an Identity Provider Admin

Disable an existing Identity provider.

path Parameters
provider_id
required
string <uuid> (Provider Id)

Responses

Response samples

Content type
application/json
{
  • "ssoEnabled": true,
  • "message": "string"
}

Validate SAML Metadata Url Admin

Validate SAML metadata from a URL before configuration.

Request Body schema: application/json
required
metadataUrl
required
string (Metadataurl)

The SAML metadata URL to validate.

Responses

Request samples

Content type
application/json
{
  • "metadataUrl": "string"
}

Response samples

Content type
application/json
{
  • "valid": false,
  • "idpEntityId": "string",
  • "ssoUrl": "string",
  • "certificateExpiry": "string",
  • "warnings": [
    ],
  • "errors": [
    ]
}

Validate SAML Metadata File Admin

Validate SAML metadata XML content before configuration.

Request Body schema: application/json
required
metadataContent
required
string (Metadatacontent)

The SAML metadata XML content to validate.

Responses

Request samples

Content type
application/json
{
  • "metadataContent": "string"
}

Response samples

Content type
application/json
{
  • "valid": false,
  • "idpEntityId": "string",
  • "ssoUrl": "string",
  • "certificateExpiry": "string",
  • "warnings": [
    ],
  • "errors": [
    ]
}

Update SAML Provider Configuration Admin

Update the configuration for a registered SAML identity provider.

Provide either metadata_url OR metadata_file to update metadata, not both.

Request Body schema: application/json
required
Metadataurl (string) or Metadataurl (null) (Metadataurl)

SAML metadata URL.

MetadataFile (object) or null

SAML metadata file.

AttributeMapping (object) or null

SAML attribute mappings.

Enableidpinit (boolean) or Enableidpinit (null) (Enableidpinit)

Enable IdP-initiated SSO.

Requireencryptedresponses (boolean) or Requireencryptedresponses (null) (Requireencryptedresponses)

Require SAML assertions to be encrypted.

Signsamlrequests (boolean) or Signsamlrequests (null) (Signsamlrequests)

Sign SAML requests.

Enableidpsignout (boolean) or Enableidpsignout (null) (Enableidpsignout)

Enable IdP-initiated signout.

Responses

Request samples

Content type
application/json
{
  • "metadataUrl": "string",
  • "metadataFile": {
    },
  • "attributeMapping": {
    },
  • "enableIdpInit": true,
  • "requireEncryptedResponses": true,
  • "signSamlRequests": true,
  • "enableIdpSignout": true
}

Response samples

Content type
application/json
{
  • "ssoEnabled": true,
  • "message": "string",
  • "providerName": "string"
}

Configure Saml Provider Admin

Configure a SAML identity provider.

Request Body schema: application/json
required
Metadataurl (string) or Metadataurl (null) (Metadataurl)

SAML metadata URL.

MetadataFile (object) or null

SAML metadata file.

AttributeMapping (object) or null

SAML attribute mappings.

enableIdpInit
boolean (Enableidpinit)
Default: false

Enable IdP-initiated SSO.

requireEncryptedResponses
boolean (Requireencryptedresponses)
Default: false

Require SAML assertions to be encrypted.

signSamlRequests
boolean (Signsamlrequests)
Default: false

Sign SAML requests.

enableIdpSignout
boolean (Enableidpsignout)
Default: false

Enable IdP-initiated signout.

Responses

Request samples

Content type
application/json
{
  • "metadataUrl": "string",
  • "metadataFile": {
    },
  • "attributeMapping": {
    },
  • "enableIdpInit": false,
  • "requireEncryptedResponses": false,
  • "signSamlRequests": false,
  • "enableIdpSignout": false
}

Response samples

Content type
application/json
{
  • "ssoEnabled": true,
  • "message": "string",
  • "providerName": "string"
}

Get SAML Attribute Configuration Admin

Get an identity provider attribute configuration attribute configuration.

Returns the list of required and optional attributes along with their default claim URLs. This is the single source of truth for attribute configuration.

Responses

Response samples

Content type
application/json
{
  • "requiredAttributes": [
    ],
  • "optionalAttributes": [
    ],
  • "defaultUrls": {
    },
  • "displayNames": {
    }
}

Validate OIDC Issuer Admin

Validate an OIDC issuer's discovery document before configuration.

Request Body schema: application/json
required
Issuer (string) or Issuer (null) (Issuer)

The OIDC issuer URL to validate.

Domain (string) or Domain (null) (Domain)

A customer domain to derive the issuer from, when the issuer is unknown.

Responses

Request samples

Content type
application/json
{
  • "issuer": "string",
  • "domain": "string"
}

Response samples

Content type
application/json
{
  • "valid": false,
  • "issuer": "string",
  • "authorizationEndpoint": "string",
  • "tokenEndpoint": "string",
  • "userinfoEndpoint": "string",
  • "jwksUri": "string",
  • "endSessionEndpoint": "string",
  • "scopesSupported": [
    ],
  • "claimsSupported": [
    ],
  • "warnings": [
    ],
  • "errors": [
    ]
}

Configure OIDC Provider Admin

Configure an OIDC identity provider.

query Parameters
provider_type
required
string (Provider Type)
Enum: "oidc_entra" "oidc_google" "oidc_okta"

The OIDC identity provider to configure.

Request Body schema: application/json
required
clientId
required
string (Clientid)

The client (application) ID registered with the identity provider.

clientSecret
required
string (Clientsecret)

The client secret registered with the identity provider.

Issuer (string) or Issuer (null) (Issuer)

The OIDC issuer URL.

authorizeScopes
Array of strings (Authorizescopes)

The scopes requested from the identity provider.

attributesRequestMethod
string (Attributesrequestmethod)
Default: "GET"
Enum: "GET" "POST"

The HTTP method used to call the userinfo endpoint.

AttributeMapping (object) or null

OIDC claim mappings.

Authorizeurl (string) or Authorizeurl (null) (Authorizeurl)

Optional authorization endpoint override, when discovery is unavailable.

Tokenurl (string) or Tokenurl (null) (Tokenurl)

Optional token endpoint override, when discovery is unavailable.

Attributesurl (string) or Attributesurl (null) (Attributesurl)

Optional userinfo endpoint override, when discovery is unavailable.

Jwksuri (string) or Jwksuri (null) (Jwksuri)

Optional JWKS endpoint override, when discovery is unavailable.

identifiers
Array of strings (Identifiers)

Email domains routed to this identity provider.

Responses

Request samples

Content type
application/json
{
  • "clientId": "string",
  • "clientSecret": "string",
  • "issuer": "string",
  • "authorizeScopes": [
    ],
  • "attributesRequestMethod": "GET",
  • "attributeMapping": {
    },
  • "authorizeUrl": "string",
  • "tokenUrl": "string",
  • "attributesUrl": "string",
  • "jwksUri": "string",
  • "identifiers": [
    ]
}

Response samples

Content type
application/json
{
  • "ssoEnabled": true,
  • "message": "string",
  • "providerName": "string"
}

Update OIDC Provider Configuration Admin

Update the configuration for a registered OIDC identity provider.

Only the supplied fields are changed, all others are preserved.

Request Body schema: application/json
required
Clientid (string) or Clientid (null) (Clientid)

The client (application) ID registered with the identity provider.

Clientsecret (string) or Clientsecret (null) (Clientsecret)

The client secret registered with the identity provider.

Issuer (string) or Issuer (null) (Issuer)

The OIDC issuer URL.

Array of Authorizescopes (strings) or Authorizescopes (null) (Authorizescopes)

The scopes requested from the identity provider.

Attributesrequestmethod (string) or Attributesrequestmethod (null) (Attributesrequestmethod)

The HTTP method used to call the userinfo endpoint.

AttributeMapping (object) or null

OIDC claim mappings.

Authorizeurl (string) or Authorizeurl (null) (Authorizeurl)

Optional authorization endpoint override, when discovery is unavailable.

Tokenurl (string) or Tokenurl (null) (Tokenurl)

Optional token endpoint override, when discovery is unavailable.

Attributesurl (string) or Attributesurl (null) (Attributesurl)

Optional userinfo endpoint override, when discovery is unavailable.

Jwksuri (string) or Jwksuri (null) (Jwksuri)

Optional JWKS endpoint override, when discovery is unavailable.

Responses

Request samples

Content type
application/json
{
  • "clientId": "string",
  • "clientSecret": "string",
  • "issuer": "string",
  • "authorizeScopes": [
    ],
  • "attributesRequestMethod": "GET",
  • "attributeMapping": {
    },
  • "authorizeUrl": "string",
  • "tokenUrl": "string",
  • "attributesUrl": "string",
  • "jwksUri": "string"
}

Response samples

Content type
application/json
{
  • "ssoEnabled": true,
  • "message": "string",
  • "providerName": "string"
}

Rotate OIDC Client Secret Admin

Rotate the client secret of a registered OIDC identity provider.

Only the client secret is changed, all other configuration is preserved.

Request Body schema: application/json
required
clientSecret
required
string (Clientsecret) non-empty

The new client secret registered with the identity provider.

Responses

Request samples

Content type
application/json
{
  • "clientSecret": "string"
}

Response samples

Content type
application/json
{
  • "ssoEnabled": true,
  • "message": "string",
  • "providerName": "string"
}

Connect Managed Microsoft Entra Provider Admin

Start the managed Microsoft Entra admin consent flow.

Redirects the admin to Microsoft to grant consent to the Third Loop app registration for their tenant. Unavailable for government tenants.

query Parameters
identifiers
Array of strings (Identifiers)
Default: ""

Email domains routed to the identity provider.

Responses

Response samples

Content type
application/json
null

Get OIDC Attribute Configuration Admin

Get an identity provider OIDC claim configuration.

Returns the list of required and optional attributes along with their default OIDC claim names. This is the single source of truth for attribute configuration.

Responses

Response samples

Content type
application/json
{
  • "requiredAttributes": [
    ],
  • "optionalAttributes": [
    ],
  • "defaultUrls": {
    },
  • "displayNames": {
    }
}

Users

Update User Configuration

Update the configuration for a given user.

Request Body schema: application/json
required
Theme (string) or Theme (null) (Theme)

UI theme preference.

Language (string) or Language (null) (Language)

Language preference.

Timezone (string) or Timezone (null) (Timezone)

Timezone setting.

Userinstructions (string) or Userinstructions (null) (Userinstructions)

User's custom system instructions.

ResponseLength (string) or null

Preferred response length.

Messagefontsize (string) or Messagefontsize (null) (Messagefontsize)

Font size for messages.

Autoscroll (boolean) or Autoscroll (null) (Autoscroll)

Auto-scroll on new messages.

Showtimestamps (boolean) or Showtimestamps (null) (Showtimestamps)

Show message timestamps.

Copyonselection (boolean) or Copyonselection (null) (Copyonselection)

Copy text on selection.

Lastversionseen (string) or Lastversionseen (null) (Lastversionseen)

Last seen application version.

Intelligentcontext (boolean) or Intelligentcontext (null) (Intelligentcontext)

Enable intelligent context.

Responses

Request samples

Content type
application/json
{
  • "theme": "string",
  • "language": "string",
  • "timezone": "string",
  • "userInstructions": "string",
  • "responseLength": "short",
  • "messageFontSize": "string",
  • "autoScroll": true,
  • "showTimestamps": true,
  • "copyOnSelection": true,
  • "lastVersionSeen": "string",
  • "intelligentContext": true
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "message": "string"
}

Update User Configurations Admin

Applies configuration options to every active user in the caller's organization. Administrators only.

Request Body schema: application/json
required
Intelligentcontext (boolean) or Intelligentcontext (null) (Intelligentcontext)

When set, overwrites each user's Intelligent Context preference.

Any of
boolean (Intelligentcontext)

When set, overwrites each user's Intelligent Context preference.

Responses

Request samples

Content type
application/json
{
  • "intelligentContext": true
}

Response samples

Content type
application/json
{
  • "successCount": 0,
  • "failureCount": 0
}

Get My Configuration

Retrieves your configuration settings.

Responses

Response samples

Content type
application/json
{
  • "userId": "string",
  • "theme": "auto",
  • "language": "en",
  • "timezone": "UTC",
  • "userInstructions": "string",
  • "responseLength": "short",
  • "messageFontSize": "medium",
  • "autoScroll": true,
  • "showTimestamps": true,
  • "copyOnSelection": true,
  • "lastVersionSeen": "string",
  • "intelligentContext": true
}

Get User Roles

Returns your active roles with nested policies and statements.

path Parameters
id
required
string (Id)

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Add Role To User Admin

Add a single role to another user. Administrators only.

Request Body schema: application/json
required
userId
required
string (Userid)

The user's ID.

roleId
required
string <uuid> (Roleid)

The role ID.

Responses

Request samples

Content type
application/json
{
  • "userId": "string",
  • "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Remove a Role from a User Admin

Remove a single role from another user. Administrators only.

Request Body schema: application/json
required
userId
required
string (Userid)

The user's ID.

roleId
required
string <uuid> (Roleid)

The role ID.

Responses

Request samples

Content type
application/json
{
  • "userId": "string",
  • "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Get My Profile

Retrieves your user profile information.

Responses

Response samples

Content type
application/json
{
  • "authenticated": true,
  • "userInformation": {
    }
}

List Users Admin

List all non-deleted users. Administrators only.

Returns: APIListModel[OrganizationMemberData]: All users and total count.

Responses

Response samples

Content type
application/json
{
  • "items": [ ],
  • "totalCount": 0
}

Enroll a New User Admin

Triggers signup process for a new user.

Request Body schema: application/json
required
email
required
string <email> (Email)

The user's email address.

firstName
required
string (Firstname)

The user's first name.

lastName
required
string (Lastname)

The user's last name.

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "firstName": "string",
  • "lastName": "string"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "message": "string"
}

Delete a User Admin

Delete a user account. Administrators only.

Request Body schema: application/json
required
userId
required
string (Userid)

The user's ID.

Responses

Request samples

Content type
application/json
{
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Deactivate a User Admin

Deactivates a user account. Administrators only.

Request Body schema: application/json
required
userId
required
string (Userid)

The user's ID.

Responses

Request samples

Content type
application/json
{
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Activate a User Admin

Activates a user account. Administrators only.

Request Body schema: application/json
required
userId
required
string (Userid)

The user's ID.

Responses

Request samples

Content type
application/json
{
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Reset a User Password Admin

Reset a user's password. Administrators only. Note that this method will trigger a global signout.

Request Body schema: application/json
required
userId
required
string (Userid)

The user's ID.

Responses

Request samples

Content type
application/json
{
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Update a User Profile Admin

Updates a user's profile fields. Administrators only.

path Parameters
user_id
required
string (User Id)
Request Body schema: application/json
required
Firstname (string) or Firstname (null) (Firstname)

The user's first name (optional, admin only).

Lastname (string) or Lastname (null) (Lastname)

The user's last name (optional, admin only).

Preferredname (string) or Preferredname (null) (Preferredname)

The user's preferred display name (optional).

Email (string) or Email (null) (Email)

The user's email address (optional, admin only).

Responses

Request samples

Content type
application/json
{
  • "firstName": "string",
  • "lastName": "string",
  • "preferredName": "string",
  • "email": "user@example.com"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Get a User

Get a user by ID.

path Parameters
user_id
required
string (User Id)

Responses

Response samples

Content type
application/json
{
  • "user": {
    },
  • "canModifyRoles": false
}

Update Preferred Name

Updates your preferred name.

Request Body schema: application/json
required
preferredName
required
string (Preferredname) <= 100 characters

The user's preferred display name.

Responses

Request samples

Content type
application/json
{
  • "preferredName": "string"
}

Response samples

Content type
application/json
{
  • "userId": "string",
  • "status": "updated",
  • "message": "string"
}

Resend a User Invitation Admin

Resend an invite email to a user that is pending activation. This should be used when the user has not responded to an invitation within the initial seven days since receiving an invite.

path Parameters
user_id
required
string (User Id)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}