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.
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.
| sparse | boolean (Sparse) Default: false Whether to return a sparse representation (minimal fields). |
{- "items": [ ],
- "totalCount": 0
}Retrieve a single tool by its unique identifier.
| tool_id required | string <uuid> (Tool Id) |
{- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Update an existing Tool. Any fields that you do not specify will be excluded from the update.
| tool_id required | string <uuid> (Tool Id) |
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) |
{- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handlers": [
- "client"
], - "codeTool": {
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "groupKey": "636f8cd1-808d-4e74-afd2-9e1265ec0a0a",
- "entrypoint": "string",
- "files": [
- {
- "relativePath": "string",
- "contentType": "string",
- "sizeBytes": 0
}
]
}, - "mutable": true,
- "ownerId": "string",
- "conditions": [
- {
- "text": "string",
- "key": 0
}
], - "tags": [
- "string"
]
}{- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}List all the versions for a tool you have access to.
| name required | string (Name) |
| sparse | boolean (Sparse) Default: true Whether to return a sparse representation (minimal fields). |
{- "items": [ ],
- "totalCount": 0
}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.
{- "owned": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "shared": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "organization": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "system": [ ]
}Delete a tool by name (and optionally a specific version). Leaving the version empty will remove all versions of the Tool.
| name required | string (Name) The name of the tool. |
| version | integer (Version) Specific version number to delete. |
{- "success": true,
- "message": "string"
}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.
| tool_id required | string <uuid> (Tool Id) |
| enableNetwork | boolean (Enablenetwork) Default: false |
Array of Networkendpoints (strings) or Networkendpoints (null) (Networkendpoints) |
{- "enableNetwork": false,
- "networkEndpoints": [
- "string"
]
}{- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Create a new Tool.
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 |
{- "displayName": "string",
- "name": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handlers": [
- "client"
], - "isCode": false,
- "mutable": true,
- "ownerId": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "conditions": [
- {
- "text": "string",
- "key": 0
}
], - "tags": [
- "string"
], - "codeTool": {
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "groupKey": "636f8cd1-808d-4e74-afd2-9e1265ec0a0a",
- "entrypoint": "string",
- "files": [
- {
- "relativePath": "string",
- "contentType": "string",
- "sizeBytes": 0
}
]
}
}{- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}null| id required | string <uuid> (Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}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.
| sparse | boolean (Sparse) Default: false Whether to return a sparse representation (minimal fields). |
{- "items": [ ],
- "totalCount": 0
}Retrieve a single instruction by its unique identifier.
| instruction_id required | string <uuid> (Instruction Id) |
{- "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": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW",
- "id": 0,
- "instructionId": "8952c9a6-eed3-43ca-aa1c-0257398b3653",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
]
}Update an Instruction. Any fields that you do not specify will be excluded from the update.
| instruction_id required | string <uuid> (Instruction Id) |
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) |
{- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "mutable": true,
- "ownerId": "string",
- "guidelines": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW"
}
], - "tags": [
- "string"
]
}{- "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": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW",
- "id": 0,
- "instructionId": "8952c9a6-eed3-43ca-aa1c-0257398b3653",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
]
}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.
| instruction_id required | string <uuid> (Instruction Id) |
{- "detail": "string"
}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.
{- "owned": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "shared": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "organization": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "system": [ ]
}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.
| 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) |
{- "displayName": "string",
- "name": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "mutable": true,
- "ownerId": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "guidelines": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW"
}
], - "tags": [
- "string"
]
}{- "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": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW",
- "id": 0,
- "instructionId": "8952c9a6-eed3-43ca-aa1c-0257398b3653",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
]
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}null| id required | string <uuid> (Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 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.
| 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) |
{- "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": [
- {
- "instructionId": "string",
- "excludedGuidelines": { }
}
], - "toolIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "tags": [
- "string"
]
}{- "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": [
- {
- "instruction": {
- "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": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW",
- "id": 0,
- "instructionId": "8952c9a6-eed3-43ca-aa1c-0257398b3653",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
]
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "tags": [
- "string"
], - "enhancedReasoning": true
}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.
| sparse | boolean (Sparse) Default: true Whether to return a sparse representation (minimal fields). |
{- "items": [ ],
- "totalCount": 0
}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.
| 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. |
{- "items": [ ],
- "totalCount": 0
}Retrieve an agent by its unique identifier. The returned agent will include associated instructions and tools as well as any tags the agent has.
| agent_id required | string <uuid> (Agent Id) |
{- "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": [
- {
- "instruction": {
- "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": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW",
- "id": 0,
- "instructionId": "8952c9a6-eed3-43ca-aa1c-0257398b3653",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
]
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "tags": [
- "string"
], - "enhancedReasoning": true
}Update an existing agent. Update fields that are not specified in the request body are excluded from the agent updated.
| agent_id required | string <uuid> (Agent Id) |
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" |
{- "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": [
- {
- "instructionId": "string",
- "excludedGuidelines": { }
}
], - "toolIds": [ ],
- "tags": [
- "string"
], - "unsupportedClientTypes": [ ]
}{- "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": [
- {
- "instruction": {
- "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": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW",
- "id": 0,
- "instructionId": "8952c9a6-eed3-43ca-aa1c-0257398b3653",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
]
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "tags": [
- "string"
], - "enhancedReasoning": true
}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
| name required | string (Name) |
| 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) |
{- "items": [ ],
- "totalCount": 0
}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.
| name required | string (Name) |
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) |
{- "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": [
- {
- "instructionId": "string",
- "excludedGuidelines": { }
}
], - "toolIds": [ ],
- "tags": [
- "string"
], - "unsupportedClientTypes": [ ],
- "fromVersion": 0
}{- "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": [
- {
- "instruction": {
- "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": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW",
- "id": 0,
- "instructionId": "8952c9a6-eed3-43ca-aa1c-0257398b3653",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
]
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "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": [
- "client"
], - "isCode": false,
- "mutable": true,
- "visible": "internal",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "conditions": [
- {
- "text": "string",
- "key": 0,
- "id": 0,
- "toolId": "4ff05811-a7af-43b0-84ca-ea7fa7a23c07",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "codeTool": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
- "bundleS3Key": "string",
- "bundleVersionKey": "string",
- "bundleEntrypoint": "string",
- "files": [
- {
- "id": 0,
- "relativePath": "string",
- "s3Key": "string",
- "contentType": "string",
- "sizeBytes": 0,
- "isEntrypoint": false
}
], - "artifact": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "lockHash": "string",
- "runtime": "string",
- "runtimeVersion": "string",
- "platform": "string",
- "s3Key": "string",
- "sizeBytes": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "tags": [
- "string"
], - "enhancedReasoning": true
}{- "owned": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "shared": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "organization": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "system": [ ]
}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.
| name required | string (Name) The name of the agent. |
| version | integer (Version) Specific version number to delete. |
{- "success": true,
- "message": "string"
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}null| id required | string <uuid> (Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}Adds a file resource to a Clove app. The file must already exist in S3.
| app_id required | string <uuid> (App Id) |
| alias required | string (Alias) |
| path required | string (Path) |
Sheet (string) or Sheet (null) (Sheet) | |
| kind required | string (Kind) |
| s3Key required | string (S3Key) |
{- "alias": "string",
- "path": "string",
- "sheet": "string",
- "kind": "string",
- "s3Key": "string"
}null| name required | string (Name) |
| description required | string (Description) |
required | Lastconversationid (string) or Lastconversationid (null) (Lastconversationid) |
Array of objects (Resources) Default: [] |
{- "name": "string",
- "description": "string",
- "lastConversationId": "48724e5a-8b61-4965-aa9e-6e6dedf6b344",
- "resources": [ ]
}{- "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": [ ]
}{- "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": [ ]
}| id required | string <uuid> (Id) |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) | |
Lastconversationid (string) or Lastconversationid (null) (Lastconversationid) | |
Array of objects (Resources) |
{- "name": "string",
- "description": "string",
- "lastConversationId": "48724e5a-8b61-4965-aa9e-6e6dedf6b344",
- "resources": [
- {
- "alias": "string",
- "path": "string",
- "sheet": "string",
- "kind": "string",
- "s3Key": "string"
}
]
}{- "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": [ ]
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}nullSend a one-off message to Clove and get a response streamed back to you.
| 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. |
{- "stream": true,
- "content": "string",
- "conversationId": "string",
- "agentType": "core",
- "agentConfig": {
- "enhancedReasoning": true,
- "modelId": "string",
- "temperature": 2,
- "maxTokens": 0,
- "topP": 1,
- "topK": 0,
- "instructionIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "toolIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
}{- "content": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "metadata": {
- "input_tokens": 0,
- "output_tokens": 0,
- "cache_read_input_tokens": 0,
- "cache_write_input_tokens": 0,
- "total_tokens": 0,
- "latency": 0,
- "model_id": "string"
}
}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.
| conversation_id required | string <uuid> (Conversation Id) |
| 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). |
{- "stream": true,
- "content": "string",
- "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a",
- "attachments": [
- {
- "content": "string",
- "contextType": "attachment",
- "id": "string",
- "title": "string",
- "explanation": "string",
- "fileSize": 0,
- "fileType": "string",
- "origin": "user_upload",
- "contentHash": "string",
- "tokenCount": 0,
- "uniqueKey": "string",
- "parentMessageId": "string",
- "parentConversationId": "string",
- "uploaderId": "string",
- "pageStats": {
- "pageCount": 0,
- "emptyPageCount": 0
}
}
], - "collectionsSources": {
- "collectionIds": [ ],
- "documentIds": [ ],
- "documentCollectionMap": {
- "property1": "string",
- "property2": "string"
}
}, - "streamingChatOptions": {
- "agentType": "core",
- "intelligentContext": true,
- "webSearch": true,
- "reviewSources": false,
- "workspaceRoot": "string",
- "runnerInstanceId": "string",
- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "localFilePaths": [
- "string"
]
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a",
- "messages": [ ],
- "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2",
- "collectionsContext": [ ],
- "projectContext": {
- "user_generated_context": "string",
- "ai_generated_context": "string"
}, - "metadata": {
- "input_tokens": 0,
- "output_tokens": 0,
- "cache_read_input_tokens": 0,
- "cache_write_input_tokens": 0,
- "total_tokens": 0,
- "latency": 0,
- "model_id": "string"
}
}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.
| conversation_id required | string <uuid> (Conversation Id) |
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. |
{- "toolPairs": [
- {
- "toolUse": {
- "type": "tool_use",
- "id": "string",
- "name": "string",
- "input": { }
}, - "toolResult": {
- "type": "tool_result",
- "toolUseId": "string",
- "content": "string",
- "isError": true
}
}
], - "conversationId": "string"
}{- "success": true,
- "message": "string"
}Get a conversation by its unique id.
| conversation_id required | string (Conversation Id) |
{- "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": {
- "id": "string",
- "name": "string"
}
}Delete a batch of your conversations at the same time.
| 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. |
{- "conversationIds": [
- "string"
]
}{- "detail": "string"
}Creates a new conversation with Clove.
| 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. |
{- "conversationId": "string",
- "projectId": "string",
- "title": "string",
- "userId": "string"
}{- "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": {
- "id": "string",
- "name": "string"
}
}Updates the title of an existing conversation.
| conversation_id required | string (Conversation Id) |
| 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. |
{- "conversationId": "string",
- "updatedTitle": "string",
- "userId": "string"
}{- "success": true,
- "message": "string"
}Assigns a conversation to a project, or clears the assignment when the project id is empty.
| conversation_id required | string (Conversation Id) |
| 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. |
{- "conversationId": "string",
- "projectId": "string"
}{- "success": true,
- "message": "string"
}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.
| conversation_id required | string (Conversation Id) |
{- "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a"
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}null| id required | string <uuid> (Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 or update per-document collection sources for a conversation.
| conversation_id required | string (Conversation Id) |
| collectionIds | Array of strings (Collectionids) |
| documentIds | Array of strings (Documentids) |
{- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}{- "items": [ ],
- "totalCount": 0,
- "conversationId": "string"
}Retrieves the token count for an attachment or list of attachments.
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 |
[- {
- "content": "string",
- "contextType": "attachment",
- "id": "string",
- "title": "string",
- "explanation": "string",
- "fileSize": 0,
- "fileType": "string",
- "origin": "user_upload",
- "contentHash": "string",
- "tokenCount": 0,
- "uniqueKey": "string",
- "parentMessageId": "string",
- "parentConversationId": "string",
- "uploaderId": "string",
- "pageStats": {
- "pageCount": 0,
- "emptyPageCount": 0
}
}
]{- "tokenCount": 0,
- "allowed": true,
- "message": "string",
- "content": "string"
}Get a presigned url to upload a file via STP.
| 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. |
{- "presignedUrl": "string",
- "method": "string",
- "uniqueKey": "string",
- "key": "string",
- "bucket": "string",
- "url": "string"
}Notify the server that you have uploaded a chat attachment to kick off server-side processing.
| 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. |
{- "uniqueKey": "string",
- "filename": "string",
- "fileType": "string",
- "conversationId": "string"
}{- "success": true,
- "message": "string"
}Sends a standard request to Clove and receives a response. Note that unlike talking to Clove, responses are not streamed back to you.
| content required | string (Content) |
{- "content": "string"
}{- "content": "string"
}Use Clove to summarize the provided content.
| content required | string (Content) |
Additionalinstructions (string) or Additionalinstructions (null) (Additionalinstructions) |
{- "content": "string",
- "additionalInstructions": "string"
}{- "content": "string"
}Generates a title for a conversation based on the user's message content.
| content required | string (Content) |
| conversationId required | string (Conversationid) The conversation ID. |
{- "content": "string",
- "conversationId": "string"
}{- "content": "string"
}Generates a title for a workflow from its content via the LLM.
| content required | string (Content) |
{- "content": "string"
}{- "content": "string"
}Use Clove to help generate a Workflow.
| content required | string (Content) |
{- "content": "string"
}{- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}Use Clove to refine an existing workflow graph based on feedback you provide.
required | object (WorkflowData-Input) The current workflow (graph plus metadata) to refine. |
| feedback required | string (Feedback) The user's requested changes. |
{- "workflow": {
- "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": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "variant": "web"
}, - "feedback": "string"
}{- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}Use Clove to generate an OpenAI-style JSON tool reference from your custom uploaded tool.
Usertoolid (string) or Usertoolid (null) (Usertoolid) | |
Groupkey (string) or Groupkey (null) (Groupkey) |
{- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "groupKey": "636f8cd1-808d-4e74-afd2-9e1265ec0a0a"
}{- "toolReference": { },
- "description": ""
}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 |
{- "items": [ ],
- "totalCount": 0
}| name required | string (Name) [ 1 .. 255 ] characters Project name. |
Description (string) or Description (null) (Description) Project description. |
{- "name": "string",
- "description": "string"
}{- "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": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string"
}{- "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": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string"
}| id required | string <uuid> (Id) |
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. |
{- "name": "string",
- "description": "string",
- "userGeneratedContext": "string",
- "aiGeneratedContext": "string",
- "collectionsSources": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string"
}{- "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": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string"
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}null| id required | string <uuid> (Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}Retrieve all resource approval records for your organization.
| 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. |
{- "items": [ ],
- "totalCount": 0
}Approve a pending resource approval.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "updatedApproval": {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 pending resource approval.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "updatedApproval": {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 previously approved resource approval.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "updatedApproval": {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}
}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.
{- "items": [ ],
- "totalCount": 0
}Creates a new template with the provided name, description, type, and data.
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. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "s3Key": "string",
- "templateType": "docx",
- "layouts": [
- {
- "id": "string",
- "name": "string",
- "placeholders": [
- {
- "idx": 0,
- "name": "string",
- "type": "string",
- "role": "string",
- "position": {
- "wIn": 0,
- "hIn": 0,
- "xIn": 0,
- "yIn": 0
}, - "textStyle": {
- "fontSize": 0,
- "bullet": { },
- "fontFace": "string"
}
}
], - "type": "string"
}
]
}{- "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": [
- {
- "id": "string",
- "name": "string",
- "placeholders": [
- {
- "idx": 0,
- "name": "string",
- "type": "string",
- "role": "string",
- "position": {
- "wIn": 0,
- "hIn": 0,
- "xIn": 0,
- "yIn": 0
}, - "textStyle": {
- "fontSize": 0,
- "bullet": { },
- "fontFace": "string"
}
}
], - "type": "string"
}
]
}List your available templates.
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. |
{- "items": [ ],
- "totalCount": 0
}{- "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": [
- {
- "id": "string",
- "name": "string",
- "placeholders": [
- {
- "idx": 0,
- "name": "string",
- "type": "string",
- "role": "string",
- "position": {
- "wIn": 0,
- "hIn": 0,
- "xIn": 0,
- "yIn": 0
}, - "textStyle": {
- "fontSize": 0,
- "bullet": { },
- "fontFace": "string"
}
}
], - "type": "string"
}
]
}Updates a template. Only fields included in the request body are updated; omitted fields remain unchanged.
| id required | string (Id) |
Name (string) or Name (null) (Name) New name for the template. | |
Description (string) or Description (null) (Description) New description for the template. |
{- "name": "string",
- "description": "string"
}{- "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": [
- {
- "id": "string",
- "name": "string",
- "placeholders": [
- {
- "idx": 0,
- "name": "string",
- "type": "string",
- "role": "string",
- "position": {
- "wIn": 0,
- "hIn": 0,
- "xIn": 0,
- "yIn": 0
}, - "textStyle": {
- "fontSize": 0,
- "bullet": { },
- "fontFace": "string"
}
}
], - "type": "string"
}
]
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}nullList the workflow schedules of the caller, the oldest first.
Deviceid (string) or Deviceid (null) (Deviceid) | |
Workflowid (string) or Workflowid (null) (Workflowid) |
[- {
- "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"
}
]Create a workflow schedule, or change the fields the body sets on an existing one.
| schedule_id required | string <uuid> (Schedule Id) |
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. |
{- "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"
}{- "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"
}Store the outcome of the last due time of a schedule.
| schedule_id required | string <uuid> (Schedule Id) |
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. |
{- "lastRunAt": "2019-08-24T14:15:22Z",
- "lastRunId": "729b3d52-1129-42f2-a449-e698e495bcd0",
- "lastStatus": "running",
- "lastMessage": "string"
}{- "detail": "string"
}List workflows grouped by whether they are owned, shared, public to the organization, or included as part of the system.
{- "owned": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "shared": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "organization": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "publishedToOrg": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal",
- "tags": [
- "string"
]
}
], - "system": [ ]
}Retrieve a single workflow with its node/edge graph.
| workflow_id required | string <uuid> (Workflow Id) |
{- "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": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "variant": "web"
}Create or fully replace a workflow (metadata plus graph) in one transaction.
| workflow_id required | string <uuid> (Workflow Id) |
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. |
{- "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": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "variant": "web"
}{- "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": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "variant": "web"
}Update any of the name, description, visibility, and desktop settings of a workflow.
| workflow_id required | string <uuid> (Workflow Id) |
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. |
{- "name": "string",
- "description": "string",
- "variant": "web"
}{- "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": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "variant": "web"
}List a workflow's past runs ordered by newest first.
| workflow_id required | string <uuid> (Workflow Id) |
[- {
- "runId": "78c33d18-170c-44d3-a227-b3194f134f73",
- "executedAt": "2019-08-24T14:15:22Z",
- "durationMs": 0
}
]Return the active run of a workflow that you triggered, if it is running.
| workflow_id required | string <uuid> (Workflow Id) |
{- "runId": "78c33d18-170c-44d3-a227-b3194f134f73",
- "currentStepIndex": 0,
- "currentNodeId": 0,
- "isStepThrough": false,
- "reviewSources": false,
- "isExecuting": false,
- "pendingDecisionNodeId": 0,
- "decisionOptions": [ ],
- "reuploadNodeIds": [ ],
- "steps": [
- {
- "stepIndex": 0,
- "nodeId": 0,
- "nextNodeId": 0,
- "name": "string",
- "prompt": "string",
- "collections": [
- "string"
], - "agent": "string",
- "tool": "string",
- "questions": [
- {
- "questionNumber": 0,
- "questionContent": "string",
- "questionAnswer": "string",
- "questionType": "text"
}
], - "files": [
- {
- "name": "string",
- "size": 0
}
], - "messages": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "toolUseId": "string",
- "messageType": "user",
- "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2",
- "contentIsJson": false,
- "clientTool": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "sources": [
- { }
], - "conversationSequence": 0,
- "tokenCount": 0
}
], - "status": "running"
}
]
}Retrieve a past run of a workflow, broken down step by step.
| workflow_id required | string <uuid> (Workflow Id) |
| run_id required | string <uuid> (Run Id) |
{- "runId": "78c33d18-170c-44d3-a227-b3194f134f73",
- "executedAt": "2019-08-24T14:15:22Z",
- "durationMs": 0,
- "steps": [
- {
- "stepIndex": 0,
- "nodeId": 0,
- "nextNodeId": 0,
- "name": "string",
- "prompt": "string",
- "collections": [
- "string"
], - "agent": "string",
- "tool": "string",
- "questions": [
- {
- "questionNumber": 0,
- "questionContent": "string",
- "questionAnswer": "string",
- "questionType": "text"
}
], - "files": [
- {
- "name": "string",
- "size": 0
}
], - "messages": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "toolUseId": "string",
- "messageType": "user",
- "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2",
- "contentIsJson": false,
- "clientTool": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "sources": [
- { }
], - "conversationSequence": 0,
- "tokenCount": 0
}
], - "status": "running"
}
]
}Start a detached workflow run. This workflow will run until completion without interruption.
| workflow_id required | string <uuid> (Workflow Id) |
| run_id required | string <uuid> (Run Id) |
| 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. |
{- "intelligentContext": false,
- "answers": { },
- "workspaceRoot": "string",
- "runnerInstanceId": "string"
}{- "runId": "78c33d18-170c-44d3-a227-b3194f134f73"
}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.
| workflow_id required | string <uuid> (Workflow Id) |
| run_id required | string <uuid> (Run Id) |
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. |
{- "results": [
- {
- "type": "tool_result",
- "toolUseId": "string",
- "content": "string",
- "isError": true
}
], - "runnerInstanceId": "string",
- "workspaceRoot": "string",
- "answers": { },
- "iteration": 0
}nullExecute one step of a workflow run, scheduled off the request.
| workflow_id required | string <uuid> (Workflow Id) |
| run_id required | string <uuid> (Run Id) |
| 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. |
{- "intelligentContext": false,
- "answers": { },
- "workspaceRoot": "string",
- "runnerInstanceId": "string",
- "targetNodeId": 0,
- "userFeedback": "string",
- "selectedChunkIds": [
- "string"
], - "isStepThrough": false,
- "reviewSources": false
}nullDelegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}null| id required | string <uuid> (Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}Return a list of collections, grouped into owned, shared, and organization collections.
| 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. |
{- "items": [ ],
- "totalCount": 0,
- "collections": [ ],
- "orgCollections": [ ],
- "sharedCollections": [ ]
}Create a new collection.
| 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. |
{- "name": "string",
- "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
- "externalFileProviderId": "005bbb25-7a86-4270-b6b0-2269ded0f832"
}{- "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 multiple collections and/or documents to a target collection.
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. |
{- "items": [
- {
- "itemId": "f11b669d-7201-4c21-88af-d85092f0c005",
- "itemType": "collection"
}
], - "targetCollectionId": "b99d26a3-f4b8-4a16-a141-95fd9b1025d3"
}{- "detail": "string"
}Retrieve a specific collection and all its nested child collections.
| collection_id required | string <uuid> (Collection Id) |
| includeNested | boolean (Includenested) Default: true |
| asTree | boolean (Astree) Default: true |
{- "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. Fields that are not set are excluded from the update.
| collection_id required | string <uuid> (Collection Id) |
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 |
{- "name": "string",
- "reparent": false,
- "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
- "ownerId": "string"
}{- "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"
}Delegate ownership of a resource you own to a new principal.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}null| id required | string <uuid> (Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}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:
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.| 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. |
{- "presignedUrl": "string",
- "uploadKey": "string",
- "tagging": "string"
}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.
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. |
{- "uploadKey": "string",
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
- "name": "string",
- "contentType": "string",
- "fileSizeBytes": 0,
- "contentHash": "string",
- "topic": "string",
- "externalFileProviderId": "005bbb25-7a86-4270-b6b0-2269ded0f832"
}{- "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 from inline text content and trigger processing.
| 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. |
{- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
- "name": "string",
- "content": "string",
- "contentType": "text/plain",
- "topic": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
- "contentType": "string",
- "fileSizeBytes": 0,
- "filepath": "string",
- "chunkCount": 0
}List the uploaded documents.
| 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 |
{- "items": [ ],
- "totalCount": 0
}Retrieve the raw content of a document via either the text or a presigned url to the file.
| document_id required | string <uuid> (Document Id) |
| responseFormat | string (Responseformat) Default: "url" Enum: "url" "text" Response format: 'url' for presigned URL or 'text' for content directly. |
{- "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's metadata and/or move it to a different collection.
| document_id required | string <uuid> (Document Id) |
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. |
{- "name": "string",
- "isPublic": true,
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50"
}{- "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
}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.
| document_id required | string <uuid> (Document Id) |
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. |
{- "content": "string",
- "contentType": "text/plain",
- "uploadKey": "20e4d01a-dc63-4623-a6e1-9f290b938d21",
- "contentHash": "string",
- "fileSizeBytes": 0
}{- "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": {
- "content_hash": "string",
- "filepath": "string",
- "topic": "string",
- "author": "string",
- "content": "string",
- "processing_metadata": {
- "content_blob_id": "string",
- "chunk_count": 0,
- "total_tokens": 0,
- "embedding_model": "string",
- "chunking_strategy": "string",
- "quality_score": 0,
- "relevance_score": 0
}, - "chunks": [ ]
}
}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.
| document_id required | string <uuid> (Document Id) |
{- "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
}| 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' |
{- "rootIdentifier": "string",
- "integrationType": "desktop",
- "machineName": "string",
- "authenticationType": "none"
}{- "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
}{- "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
}| id required | string <uuid> (Id) |
Displayname (string) or Displayname (null) (Displayname) | |
Any of string (Displayname) | |
{- "displayName": "string"
}{- "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
}Approve a pending resource approval.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 pending resource request.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 previously approved resource approval.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}Retrieve relevant document chunks for RAG (Retrieval Augmented Generation). Performs semantic search to find document chunks most relevant to the query.
| 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 |
{- "property1": {
- "documentName": "string",
- "documentAuthor": "string",
- "documentTopic": "string",
- "documentCollectionId": "1742d54d-9a35-4764-92b7-0916650bd731",
- "documentOrganizationId": "4f1cffd9-21df-4ef5-82bb-fcb8ac0ad1fc",
- "documentSummary": "string",
- "relevanceScore": 0,
- "sections": [ ],
- "chunks": [ ],
- "totalCount": 0
}, - "property2": {
- "documentName": "string",
- "documentAuthor": "string",
- "documentTopic": "string",
- "documentCollectionId": "1742d54d-9a35-4764-92b7-0916650bd731",
- "documentOrganizationId": "4f1cffd9-21df-4ef5-82bb-fcb8ac0ad1fc",
- "documentSummary": "string",
- "relevanceScore": 0,
- "sections": [ ],
- "chunks": [ ],
- "totalCount": 0
}
}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.
{- "items": [ ],
- "totalCount": 0
}{- "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 a user's metrics configuration.
| user_id required | string (User Id) |
{- "userId": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "shortPeriodScaledTokenLimit": 0,
- "userStorageLimit": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}Get an organization's metrics configuration.
| organization_id required | string <uuid> (Organization Id) |
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "longPeriodScaledTokenLimit": 0,
- "orgStorageLimit": 0,
- "defaultUserShortPeriodScaledLimit": 0,
- "defaultUserStorageLimit": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}Update an organization's metrics configuration. Only provided fields will be updated.
| organization_id required | string <uuid> (Organization Id) |
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 |
{- "longPeriodScaledTokenLimit": 100000000000,
- "orgStorageLimit": 10995116277760,
- "defaultUserShortPeriodScaledLimit": 50000000,
- "defaultUserStorageLimit": 1099511627776
}{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "longPeriodScaledTokenLimit": 0,
- "orgStorageLimit": 0,
- "defaultUserShortPeriodScaledLimit": 0,
- "defaultUserStorageLimit": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}Get user metrics configurations for an organization.
| 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 |
{- "items": [ ],
- "totalCount": 0,
- "offset": 0,
- "limit": 1
}Bulk update user metrics configurations.
Updates multiple user configurations in a single request.
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 |
{- "userIds": [
- "string"
], - "shortPeriodScaledTokenLimit": 50000000,
- "userStorageLimit": 1099511627776
}{- "items": [ ],
- "totalCount": 0,
- "successCount": 0,
- "failureCount": 0
}Query surplus collection events for a specified timerange.
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. |
{- "items": [ ],
- "totalCount": 0
}Query metric consumption events over a given period.
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. |
{- "items": [ ],
- "totalCount": 0
}Get scaled token consumption data in timeline format. This data is useful for plotting or viewing usage trends.
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.). |
{- "points": [
- {
- "index": 0,
- "startTimeMs": 0,
- "endTimeMs": 0,
- "value": 0,
- "eventCount": 0
}
], - "axisMetadata": {
- "xDomainMin": 0,
- "xDomainMax": 0,
- "yDomainMin": 0,
- "yDomainMax": 0,
- "hasLiveBucket": true
}
}Rank users by token consumption over a date range.
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. |
{- "items": [ ],
- "totalCount": 0,
- "totalTokens": 0
}Submit a storage limit change for a user.
Note (string) or Note (null) (Note) | |
| userStorageLimit required | integer (Userstoragelimit) > 0 |
| userId required | string <uuid> (Userid) The user whose limit changes. |
{- "note": "string",
- "userStorageLimit": 0,
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}Submit a short period token limit change for a user.
Note (string) or Note (null) (Note) | |
| shortPeriodScaledTokenLimit required | integer (Shortperiodscaledtokenlimit) > 0 |
| userId required | string <uuid> (Userid) The user whose limit changes. |
{- "note": "string",
- "shortPeriodScaledTokenLimit": 0,
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 the storage or token approvals of the caller organization.
| 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. |
{- "items": [ ],
- "totalCount": 0
}Approve a pending request and apply the new limit.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 pending request. The limit does not change.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 an approved request and restore the previous limit.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}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.
{- "items": [ ],
- "totalCount": 0
}{- "currentBalance": 0,
- "balanceDeltaPercent": 0,
- "balanceHistory": [
- {
- "timeMs": 0,
- "value": 0
}
], - "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
}List your API key identifiers. Note that this will not return the private key which can only be viewed once at creation time.
| 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. |
{- "items": [ ],
- "totalCount": 0
}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.
| 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. |
{- "name": "string",
- "expiration": 0,
- "ownerId": "string"
}{- "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": { }
}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.
| api_key_id required | string (Api Key Id) |
{- "detail": "string"
}Handles the authorization callback for SSO login.
| 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. |
{- "detail": "string"
}Refresh the authentication and id token using an available refresh token.
Thirdloopsessioncookie (string) or Thirdloopsessioncookie (null) (Thirdloopsessioncookie) |
{- "message": "string",
- "expiresIn": 0
}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.
| accessToken required | string (Accesstoken) |
| expiresIn required | integer (Expiresin) |
Tokentype (string) or Tokentype (null) (Tokentype) | |
| refreshToken required | string (Refreshtoken) |
| idToken required | string (Idtoken) |
{- "accessToken": "string",
- "expiresIn": 0,
- "tokenType": "string",
- "refreshToken": "string",
- "idToken": "string"
}{- "success": true,
- "message": "string"
}Logout from the Thirdloop platform. This endpoint only logs you out from a single device.
required | Thirdloopsessioncookie (string) or Thirdloopsessioncookie (null) (Thirdloopsessioncookie) |
{- "detail": "string"
}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.
{- "detail": "string"
}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.
| code required | string (Code) The code to exchange. |
| redirectUri required | string (Redirecturi) The post exchange redirect location. |
| codeVerifier required | string (Codeverifier) A signature verifier. |
{- "code": "string",
- "redirectUri": "string",
- "codeVerifier": "string"
}{- "accessToken": "string",
- "expiresIn": 0,
- "tokenType": "string",
- "refreshToken": "string",
- "idToken": "string"
}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.
| callbackUrl required | string (Callbackurl) The callback URL the browser intends to deliver tokens to. |
{- "allowed": true,
- "normalizedUrl": "string",
- "reason": "string"
}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.
| refreshToken required | string (Refreshtoken) |
{- "refreshToken": "string"
}{- "accessToken": "string",
- "expiresIn": 0,
- "tokenType": "string",
- "refreshToken": "string",
- "idToken": "string"
}List the members of a group.
| id required | string <uuid> (Id) |
| 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 |
{- "items": [ ],
- "totalCount": 0
}Adds a member to an existing group.
| id required | string <uuid> (Id) |
| 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' |
{- "id": "string",
- "principalType": "user",
- "permissionLevel": "read"
}{- "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": [ ]
}Removes a from an existing group.
| id required | string <uuid> (Id) |
| 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 |
{- "id": "string",
- "principalType": "user"
}{- "detail": "string"
}Sends a message to the members of a group.
| id required | string <uuid> (Id) |
| textContent required | string (Textcontent) |
{- "textContent": "string"
}{- "success": true,
- "message": "string"
}| name required | string (Name) |
| description required | string (Description) |
| organizationId required | string <uuid> (Organizationid) |
Parentgroup (string) or Parentgroup (null) (Parentgroup) | |
Array of objects (Members) Default: [] |
{- "name": "string",
- "description": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
- "members": [ ]
}{- "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": [ ]
}{- "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": [ ]
}| id required | string <uuid> (Id) |
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) |
{- "name": "string",
- "description": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "parentGroup": "258adf23-5b0c-4f5d-8998-e5cc7a8451dd",
- "members": [
- {
- "id": "string",
- "principalType": "user",
- "permissionLevel": "read"
}
]
}{- "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": [ ]
}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. |
{- "items": [ ],
- "totalCount": 0
}| 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 | |
| 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. |
{- "description": "",
- "url": "string",
- "authType": "None",
- "loginUrl": "string",
- "cookieName": "string",
- "authField": "string",
- "allowedHosts": [ ],
- "timeoutSeconds": 30,
- "enabled": true,
- "name": "string"
}{- "description": "",
- "url": "string",
- "authType": "None",
- "loginUrl": "string",
- "cookieName": "string",
- "authField": "string",
- "allowedHosts": [
- "string"
], - "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"
}{- "description": "",
- "url": "string",
- "authType": "None",
- "loginUrl": "string",
- "cookieName": "string",
- "authField": "string",
- "allowedHosts": [
- "string"
], - "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"
}| id required | string <uuid> (Id) |
| 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 | |
| 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. |
{- "description": "",
- "url": "string",
- "authType": "None",
- "loginUrl": "string",
- "cookieName": "string",
- "authField": "string",
- "allowedHosts": [ ],
- "timeoutSeconds": 30,
- "enabled": true
}{- "description": "",
- "url": "string",
- "authType": "None",
- "loginUrl": "string",
- "cookieName": "string",
- "authField": "string",
- "allowedHosts": [
- "string"
], - "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"
}Create a notification that is send to yourself.
| 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. |
{- "title": "string",
- "notificationType": "message_notification",
- "body": { },
- "visibleUntil": "string"
}{- "success": true,
- "message": "string"
}Broadcasts a notification to all users in your organization. Administrators only.
| 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. |
{- "title": "string",
- "notificationType": "message_notification",
- "body": { },
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}{- "success": true,
- "message": "string"
}{- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}, - "instructions": {
- "shared": "",
- "web": "",
- "desktop": ""
}
}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.
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. |
{- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}, - "instructions": {
- "shared": "",
- "web": "",
- "desktop": ""
}
}{- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}, - "instructions": {
- "shared": "",
- "web": "",
- "desktop": ""
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "configuration": {
- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}, - "instructions": {
- "shared": "",
- "web": "",
- "desktop": ""
}
}
}Create and attach a new statement to a policy.
| id required | string <uuid> (Id) |
required | object (PolicyStatement) The policy statement to create. | ||||||||||||
| |||||||||||||
{- "statement": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "sid": "string",
- "effect": "allow",
- "service": "core",
- "actions": [
- "string"
], - "resources": [
- "string"
]
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "isOrganizationScoped": true,
- "description": "string",
- "statements": [ ]
}Attach an existing statement to a policy.
| id required | string <uuid> (Id) |
| statement_id required | string <uuid> (Statement Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "isOrganizationScoped": true,
- "description": "string",
- "statements": [ ]
}Remove an attached statement from a policy.
| id required | string <uuid> (Id) |
| statement_id required | string <uuid> (Statement Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "isOrganizationScoped": true,
- "description": "string",
- "statements": [ ]
}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.
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 |
{- "principalId": "0a52818d-1e0c-4e64-848e-4d04f9e914e5",
- "items": [
- {
- "action": "string",
- "resources": "*"
}
], - "principalType": "user"
}{- "outcomes": [
- {
- "action": "string",
- "resources": "*",
- "success": true
}
], - "passed": 0,
- "failed": 0,
- "allPassed": true
}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. |
{- "description": "string",
- "statements": [ ],
- "name": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "isOrganizationScoped": true,
- "description": "string",
- "statements": [ ]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "isOrganizationScoped": true,
- "description": "string",
- "statements": [ ]
}| id required | string <uuid> (Id) |
Description (string) or Description (null) (Description) Optional policy description. | |
Array of objects (Statements) Default: [] List of policy statements. |
{- "description": "string",
- "statements": [ ]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "isOrganizationScoped": true,
- "description": "string",
- "statements": [ ]
}List all pending resource requests. Administrators only.
| 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. |
{- "items": [ ],
- "totalCount": 0
}Approve a pending resource request.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "updatedApproval": {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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 pending resource request.
| approval_id required | string <uuid> (Approval Id) |
Note (string) or Note (null) (Note) | |
Any of <= 2000 characters string (Note) <= 2000 characters | |
{- "note": "string"
}{- "updatedApproval": {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "document",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "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"
}
}Add an inline policy to a role.
| id required | string <uuid> (Id) |
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. |
{- "description": "string",
- "statements": [ ],
- "name": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "isOrganizationScoped": true,
- "description": "string",
- "statements": [ ]
}Update an inline role policy.
| id required | string <uuid> (Id) |
Description (string) or Description (null) (Description) Optional policy description. | |
Array of objects (Statements) Default: [] List of policy statements. |
{- "description": "string",
- "statements": [ ]
}{- "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. The policy must already exist.
| id required | string <uuid> (Id) |
| policy_id required | string <uuid> (Policy Id) |
{- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",
- "policyId": "2f5573e6-5ba4-48f2-a75d-df99c936463b",
- "assignedAt": "2019-08-24T14:15:22Z",
- "assignedBy": "string"
}| 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. |
{- "name": "string",
- "description": "string",
- "isActive": true,
- "rank": 0,
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "policies": [ ]
}{- "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": [ ]
}{- "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": [ ]
}| id required | string <uuid> (Id) |
Update the details of an existing Role.
{ }{- "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": [ ]
}Adds an existing role to a service account.
| id required | string <uuid> (Id) |
| role_id required | string <uuid> (Role Id) |
{- "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",
- "assignedBy": "string",
- "assignedAt": "2019-08-24T14:15:22Z",
- "isActive": true
}| 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. |
{- "name": "string",
- "scope": "read",
- "clientId": "string",
- "accessTokenExpiration": 60,
- "accessTokenExpirationUnit": "milliseconds"
}{- "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": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "configuration": {
- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}, - "instructions": {
- "shared": "",
- "web": "",
- "desktop": ""
}
}
}
}{- "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": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "configuration": {
- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}, - "instructions": {
- "shared": "",
- "web": "",
- "desktop": ""
}
}
}
}| id required | string <uuid> (Id) |
Name (string) or Name (null) (Name) Optional new service account name. | |
ResourceServerAccountScope (string) or null Optional new access scope. |
{- "name": "string",
- "scope": "read"
}{- "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": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "configuration": {
- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}, - "instructions": {
- "shared": "",
- "web": "",
- "desktop": ""
}
}
}
}| clientSecret required | string (Clientsecret) The client secret. |
| id required | string <uuid> (Id) The service account ID. |
{- "clientSecret": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}{- "accessToken": "string",
- "expiresIn": 0,
- "tokenType": "string"
}| clientSecret required | string (Clientsecret) The client secret. |
| id required | string <uuid> (Id) The service account ID. |
{- "clientSecret": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}{- "clientSecret": "string"
}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).
{- "entityId": "string",
- "acsUrl": "string",
- "logoutUrl": "string"
}Get the configuration status for a registered single sign on provider.
| provider_id required | string <uuid> (Provider Id) |
{- "providerId": "4834bcdc-4a64-444d-966b-1a6fe381da24",
- "ssoEnabled": false,
- "providerName": "string",
- "metadataUrl": "string",
- "metadataFile": {
- "name": "string",
- "content": "string"
}, - "attributeMapping": {
- "mappings": {
- "property1": "string",
- "property2": "string"
}
}, - "providerDetails": {
- "idpInitEnabled": false,
- "encryptedResponsesRequired": false,
- "idpSignoutEnabled": false,
- "signSamlRequestsEnabled": false,
- "ssoRedirectUrl": "string",
- "sloRedirectUrl": "string",
- "creationDate": "string",
- "lastModifiedDate": "string"
}
}Validate SAML metadata from a URL before configuration.
| metadataUrl required | string (Metadataurl) The SAML metadata URL to validate. |
{- "metadataUrl": "string"
}{- "valid": false,
- "idpEntityId": "string",
- "ssoUrl": "string",
- "certificateExpiry": "string",
- "warnings": [
- "string"
], - "errors": [
- "string"
]
}Validate SAML metadata XML content before configuration.
| metadataContent required | string (Metadatacontent) The SAML metadata XML content to validate. |
{- "metadataContent": "string"
}{- "valid": false,
- "idpEntityId": "string",
- "ssoUrl": "string",
- "certificateExpiry": "string",
- "warnings": [
- "string"
], - "errors": [
- "string"
]
}Update the configuration for a registered SAML identity provider.
Provide either metadata_url OR metadata_file to update metadata, not both.
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. |
{- "metadataUrl": "string",
- "metadataFile": {
- "name": "string",
- "content": "string"
}, - "attributeMapping": {
- "mappings": {
- "property1": "string",
- "property2": "string"
}
}, - "enableIdpInit": true,
- "requireEncryptedResponses": true,
- "signSamlRequests": true,
- "enableIdpSignout": true
}{- "ssoEnabled": true,
- "message": "string",
- "providerName": "string"
}Configure a SAML identity provider.
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. |
{- "metadataUrl": "string",
- "metadataFile": {
- "name": "string",
- "content": "string"
}, - "attributeMapping": {
- "mappings": {
- "property1": "string",
- "property2": "string"
}
}, - "enableIdpInit": false,
- "requireEncryptedResponses": false,
- "signSamlRequests": false,
- "enableIdpSignout": false
}{- "ssoEnabled": true,
- "message": "string",
- "providerName": "string"
}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.
{- "requiredAttributes": [
- "string"
], - "optionalAttributes": [
- "string"
], - "defaultUrls": {
- "property1": "string",
- "property2": "string"
}, - "displayNames": {
- "property1": "string",
- "property2": "string"
}
}Validate an OIDC issuer's discovery document before configuration.
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. |
{- "issuer": "string",
- "domain": "string"
}{- "valid": false,
- "issuer": "string",
- "authorizationEndpoint": "string",
- "tokenEndpoint": "string",
- "userinfoEndpoint": "string",
- "jwksUri": "string",
- "endSessionEndpoint": "string",
- "scopesSupported": [
- "string"
], - "claimsSupported": [
- "string"
], - "warnings": [
- "string"
], - "errors": [
- "string"
]
}Configure an OIDC identity provider.
| provider_type required | string (Provider Type) Enum: "oidc_entra" "oidc_google" "oidc_okta" The OIDC identity provider to configure. |
| 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. |
{- "clientId": "string",
- "clientSecret": "string",
- "issuer": "string",
- "authorizeScopes": [
- "string"
], - "attributesRequestMethod": "GET",
- "attributeMapping": {
- "mappings": {
- "property1": "string",
- "property2": "string"
}
}, - "authorizeUrl": "string",
- "tokenUrl": "string",
- "attributesUrl": "string",
- "jwksUri": "string",
- "identifiers": [
- "string"
]
}{- "ssoEnabled": true,
- "message": "string",
- "providerName": "string"
}Update the configuration for a registered OIDC identity provider.
Only the supplied fields are changed, all others are preserved.
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. |
{- "clientId": "string",
- "clientSecret": "string",
- "issuer": "string",
- "authorizeScopes": [
- "string"
], - "attributesRequestMethod": "GET",
- "attributeMapping": {
- "mappings": {
- "property1": "string",
- "property2": "string"
}
}, - "authorizeUrl": "string",
- "tokenUrl": "string",
- "attributesUrl": "string",
- "jwksUri": "string"
}{- "ssoEnabled": true,
- "message": "string",
- "providerName": "string"
}Rotate the client secret of a registered OIDC identity provider.
Only the client secret is changed, all other configuration is preserved.
| clientSecret required | string (Clientsecret) non-empty The new client secret registered with the identity provider. |
{- "clientSecret": "string"
}{- "ssoEnabled": true,
- "message": "string",
- "providerName": "string"
}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.
| identifiers | Array of strings (Identifiers) Default: "" Email domains routed to the identity provider. |
nullGet 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.
{- "requiredAttributes": [
- "string"
], - "optionalAttributes": [
- "string"
], - "defaultUrls": {
- "property1": "string",
- "property2": "string"
}, - "displayNames": {
- "property1": "string",
- "property2": "string"
}
}Update the configuration for a given user.
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. |
{- "theme": "string",
- "language": "string",
- "timezone": "string",
- "userInstructions": "string",
- "responseLength": "short",
- "messageFontSize": "string",
- "autoScroll": true,
- "showTimestamps": true,
- "copyOnSelection": true,
- "lastVersionSeen": "string",
- "intelligentContext": true
}{- "userId": "string",
- "message": "string"
}Applies configuration options to every active user in the caller's organization. Administrators only.
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. | |
{- "intelligentContext": true
}{- "successCount": 0,
- "failureCount": 0
}{- "userId": "string",
- "theme": "auto",
- "language": "en",
- "timezone": "UTC",
- "userInstructions": "string",
- "responseLength": "short",
- "messageFontSize": "medium",
- "autoScroll": true,
- "showTimestamps": true,
- "copyOnSelection": true,
- "lastVersionSeen": "string",
- "intelligentContext": true
}Add a single role to another user. Administrators only.
| userId required | string (Userid) The user's ID. |
| roleId required | string <uuid> (Roleid) The role ID. |
{- "userId": "string",
- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}Remove a single role from another user. Administrators only.
| userId required | string (Userid) The user's ID. |
| roleId required | string <uuid> (Roleid) The role ID. |
{- "userId": "string",
- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}{- "authenticated": true,
- "userInformation": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "principalType": "user",
- "roles": [ ],
- "legacyRoles": [ ],
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "username": "string",
- "externalAuthId": "string",
- "isSsoUser": false,
- "exp": 0,
- "status": "active",
- "preferredName": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "configuration": {
- "userId": "string",
- "theme": "auto",
- "language": "en",
- "timezone": "UTC",
- "userInstructions": "string",
- "responseLength": "short",
- "messageFontSize": "medium",
- "autoScroll": true,
- "showTimestamps": true,
- "copyOnSelection": true,
- "lastVersionSeen": "string",
- "intelligentContext": true
}
}
}Triggers signup process for a new user.
| 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. |
{- "email": "user@example.com",
- "firstName": "string",
- "lastName": "string"
}{- "userId": "string",
- "message": "string"
}Delete a user account. Administrators only.
| userId required | string (Userid) The user's ID. |
{- "userId": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}Deactivates a user account. Administrators only.
| userId required | string (Userid) The user's ID. |
{- "userId": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}Activates a user account. Administrators only.
| userId required | string (Userid) The user's ID. |
{- "userId": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}Reset a user's password. Administrators only. Note that this method will trigger a global signout.
| userId required | string (Userid) The user's ID. |
{- "userId": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}Updates a user's profile fields. Administrators only.
| user_id required | string (User Id) |
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). |
{- "firstName": "string",
- "lastName": "string",
- "preferredName": "string",
- "email": "user@example.com"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}{- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "principalType": "user",
- "roles": [ ],
- "legacyRoles": [ ],
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "username": "string",
- "externalAuthId": "string",
- "isSsoUser": false,
- "exp": 0,
- "status": "active",
- "preferredName": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "configuration": {
- "userId": "string",
- "theme": "auto",
- "language": "en",
- "timezone": "UTC",
- "userInstructions": "string",
- "responseLength": "short",
- "messageFontSize": "medium",
- "autoScroll": true,
- "showTimestamps": true,
- "copyOnSelection": true,
- "lastVersionSeen": "string",
- "intelligentContext": true
}
}, - "canModifyRoles": false
}Updates your preferred name.
| preferredName required | string (Preferredname) <= 100 characters The user's preferred display name. |
{- "preferredName": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}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.
| user_id required | string (User Id) |
{- "success": true,
- "message": "string"
}