Download OpenAPI specification:Download
The API definition for the entire Third Loop platform.
Retrieve all publicly visible tools.
Used by the Discover page to list tools available to all users.
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 |
{- "items": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}Retrieve a single tool by its unique identifier.
| tool_id required | string <uuid> (Tool Id) |
{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "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) | |
ToolHandler (string) or null | |
UserToolCreate (object) or null | |
AgentVisibility (string) 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": { },
- "handler": "client",
- "codeTool": {
- "enableNetwork": false,
- "networkEndpoints": [
- "string"
], - "groupKey": "636f8cd1-808d-4e74-afd2-9e1265ec0a0a",
- "entrypoint": "string",
- "files": [
- {
- "relativePath": "string",
- "contentType": "string",
- "sizeBytes": 0
}
]
}, - "visible": "internal",
- "mutable": true,
- "ownerId": "string",
- "conditions": [
- {
- "text": "string",
- "key": 0
}
], - "tags": [
- "string"
]
}{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "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 |
{- "items": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}Returns all the tools that are available for to use with Agents. These tools are grouped by whether they are owned, shared, or published to your organization.
{- "owned": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "shared": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "organization": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "system": [ ]
}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"
]
}{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create a new Tool.
| name required | string (Name) [ 1 .. 255 ] characters |
Displayname (string) or Displayname (null) (Displayname) | |
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) | |
ToolHandler (string) or null | |
| isCode | boolean (Iscode) Default: false |
| visible | string (AgentVisibility) Default: "private" Enum: "internal" "system" "private" "public" Enumeration defining categories for visibility of Agents, Instructions, Tools, etc. Attributes: INTERNAL: Open to only the system. Written internally and not able to be viewed. Used to protect privacy of core system instructions from the users. SYSTEM: System-owned agent visible to all users for selection in the chat modal. Immutable. Cannot be modified by end users. PRIVATE: Open to only the owner. PUBLIC: Open to all users, all users can view and reference. |
| mutable | boolean (Mutable) Default: true |
Ownerid (string) or Ownerid (null) (Ownerid) | |
Array of objects (Conditions) | |
| tags | Array of strings (Tags) |
UserToolCreate (object) or null |
{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "ownerId": "string",
- "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
}
]
}
}{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}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) |
| version | integer (Version) |
{- "success": true,
- "message": "string"
}Toggle the visibility of a Tool to be public to your entire organization or private to only you.
| tool_id required | string <uuid> (Tool Id) |
Enumeration defining categories for visibility of Agents, Instructions, Tools, etc.
Attributes: INTERNAL: Open to only the system. Written internally and not able to be viewed. Used to protect privacy of core system instructions from the users. SYSTEM: System-owned agent visible to all users for selection in the chat modal. Immutable. Cannot be modified by end users. PRIVATE: Open to only the owner. PUBLIC: Open to all users, all users can view and reference.
"internal"{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Retrieve all publicly visible instructions.
Used by the Discover page to list instructions available to all users.
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 |
{- "items": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}Retrieve a single instruction by its unique identifier.
| instruction_id required | string <uuid> (Instruction Id) |
{- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}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 | |
AgentVisibility (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",
- "visible": "internal",
- "mutable": true,
- "ownerId": "string",
- "guidelines": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW"
}
], - "tags": [
- "string"
]
}{- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}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, or published to your organization.
{- "owned": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "shared": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "organization": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "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.
| name required | string (Name) [ 1 .. 255 ] characters |
| displayName | string (Displayname) [ 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. |
| visible | string (AgentVisibility) Default: "private" Enum: "internal" "system" "private" "public" Enumeration defining categories for visibility of Agents, Instructions, Tools, etc. Attributes: INTERNAL: Open to only the system. Written internally and not able to be viewed. Used to protect privacy of core system instructions from the users. SYSTEM: System-owned agent visible to all users for selection in the chat modal. Immutable. Cannot be modified by end users. PRIVATE: Open to only the owner. PUBLIC: Open to all users, all users can view and reference. |
| mutable | boolean (Mutable) Default: true |
Ownerid (string) or Ownerid (null) (Ownerid) | |
Array of objects (Guidelines) | |
| tags | Array of strings (Tags) |
{- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "ownerId": "string",
- "guidelines": [
- {
- "name": "string",
- "text": "string",
- "priority": "LOW"
}
], - "tags": [
- "string"
]
}{- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Toggle the visibility of an Instruction to be public to your entire organization or private to only you.
| instruction_id required | string <uuid> (Instruction Id) |
Enumeration defining categories for visibility of Agents, Instructions, Tools, etc.
Attributes: INTERNAL: Open to only the system. Written internally and not able to be viewed. Used to protect privacy of core system instructions from the users. SYSTEM: System-owned agent visible to all users for selection in the chat modal. Immutable. Cannot be modified by end users. PRIVATE: Open to only the owner. PUBLIC: Open to all users, all users can view and reference.
"internal"{- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "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.
| name required | string (Name) [ 1 .. 255 ] characters |
| displayName | string (Displayname) [ 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.haiku" |
| 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" |
| visible | string (AgentVisibility) Default: "private" Enum: "internal" "system" "private" "public" Enumeration defining categories for visibility of Agents, Instructions, Tools, etc. Attributes: INTERNAL: Open to only the system. Written internally and not able to be viewed. Used to protect privacy of core system instructions from the users. SYSTEM: System-owned agent visible to all users for selection in the chat modal. Immutable. Cannot be modified by end users. PRIVATE: Open to only the owner. PUBLIC: Open to all users, all users can view and reference. |
| mutable | boolean (Mutable) Default: true |
| enhancedReasoning | boolean (Enhancedreasoning) Default: false |
Ownerid (string) or Ownerid (null) (Ownerid) | |
Array of objects (Instructionassociations) | |
| toolIds | Array of strings <uuid> (Toolids) [ items <uuid > ] |
| tags | Array of strings (Tags) |
{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "enhancedReasoning": false,
- "ownerId": "string",
- "instructionAssociations": [
- {
- "instructionId": "string",
- "excludedGuidelines": { }
}
], - "toolIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "tags": [
- "string"
]
}{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "useCache": false,
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "agentInstructions": [
- {
- "instruction": {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "enhancedReasoning": true
}Retrieve all system agents available for user selection.
Returns agents with AgentVisibility.SYSTEM that are visible
to all authenticated users for selection in the chat modal.
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 |
{- "items": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "useCache": false,
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "agentInstructions": [
- {
- "instruction": {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "enhancedReasoning": true
}
], - "totalCount": 0
}Retrieve all publicly visible agents.
Used by the Discover page to list agents available to all users.
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 |
| includeInstructions | boolean (Includeinstructions) Default: true |
| includeTools | boolean (Includetools) Default: true |
{- "items": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "useCache": false,
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "agentInstructions": [
- {
- "instruction": {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "enhancedReasoning": true
}
], - "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) |
{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "useCache": false,
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "agentInstructions": [
- {
- "instruction": {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "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) | |
AgentVisibility (string) or null | |
Mutable (boolean) or Mutable (null) (Mutable) | |
Array of objects (Instructionassociations) | |
Array of Toolids (strings) or Toolids (null) (Toolids) | |
Array of Tags (strings) or Tags (null) (Tags) |
{- "enhancedReasoning": true,
- "displayName": "string",
- "description": "string",
- "modelId": "string",
- "modelVersion": "string",
- "maxTokens": 1,
- "temperature": 2,
- "topP": 1,
- "topK": 1,
- "acceptType": "string",
- "contentType": "string",
- "visible": "internal",
- "mutable": true,
- "instructionAssociations": [
- {
- "instructionId": "string",
- "excludedGuidelines": { }
}
], - "toolIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "tags": [
- "string"
]
}{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "useCache": false,
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "agentInstructions": [
- {
- "instruction": {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "enhancedReasoning": true
}Retrieves all the version of a given agent identified by its name. The retrieved agent can conditionally include associated tools and instructions that are associated with the agent.
| name required | string (Name) |
| sparse | boolean (Sparse) Default: true |
| includeInstructions | boolean (Includeinstructions) Default: true |
| includeTools | boolean (Includetools) Default: true |
{- "items": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "useCache": false,
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "agentInstructions": [
- {
- "instruction": {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "enhancedReasoning": true
}
], - "totalCount": 0
}{- "owned": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "shared": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "organization": [
- {
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "visible": "internal"
}
], - "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) |
| version | integer (Version) |
{- "success": true,
- "message": "string"
}Sets the visibility of an Agent to be either PUBLIC or private to your organization.
| agent_id required | string <uuid> (Agent Id) |
Enumeration defining categories for visibility of Agents, Instructions, Tools, etc.
Attributes: INTERNAL: Open to only the system. Written internally and not able to be viewed. Used to protect privacy of core system instructions from the users. SYSTEM: System-owned agent visible to all users for selection in the chat modal. Immutable. Cannot be modified by end users. PRIVATE: Open to only the owner. PUBLIC: Open to all users, all users can view and reference.
"internal"{- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "modelId": "anthropic.haiku",
- "modelVersion": "bedrock-2023-05-31",
- "maxTokens": 8192,
- "temperature": 0.7,
- "topP": 1,
- "topK": 50,
- "acceptType": "application/json",
- "contentType": "application/json",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "useCache": false,
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "agentInstructions": [
- {
- "instruction": {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "priority": "LOW",
- "instructionType": "core",
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "excludedGuidelines": [
- "string"
]
}
], - "tools": [
- {
- "name": "string",
- "displayName": "string",
- "description": "string",
- "version": 0,
- "isLatestVersion": true,
- "purpose": "string",
- "text": "string",
- "schema": { },
- "outputSchema": { },
- "handler": "client",
- "isCode": false,
- "visible": "internal",
- "mutable": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "userToolId": "c89f637d-f8d1-48c6-a3e5-c0b30c72bd28",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "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"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "tags": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "enhancedReasoning": true
}Send a one-off message to Clove and get a response streamed back to you.
| content required | string (Content) |
Conversationid (string) or Conversationid (null) (Conversationid) | |
AgentType (string) or Agenttype (string) or Agenttype (string) or Agenttype (null) (Agenttype) | |
InlineAgentConfig (object) or null |
{- "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"
]
}
}{- "detail": "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.
required | Content (string) or ToolResultContentBlock (object) (Content) |
| conversationId required | string (Conversationid) |
(Array of Attachments (AttachmentData (object) or ImageAttachmentData (object))) or Attachments (null) (Attachments) | |
CollectionsSourceSelection (object) or null | |
object (StreamingChatOptions) Per-request generation options for an SSE chat stream. Groups the flags that tune how a single turn is generated so the chat request stays flat as new options are added. All fields have defaults, so an omitted streaming_chat_options object yields the default posture (CORE agent, intelligent context on, web search on). Attributes: agent_type (Optional[AgentType | UUID | str]): The agent type or ID to use for generation. When None, the handler falls back to CORE. intelligent_context (bool): Whether intelligent context assembly is enabled for this turn. Defaults to True. web_search (bool): Whether the web search tool is permitted for this turn. Defaults to True. When False, the web search tool is dropped from the tool list sent to the model regardless of the agent's configured tools. review_sources (bool): Whether the user reviews retrieved passages before the model consumes them. Defaults to False. When True, a QueryCollections call runs server-side as usual but its result is streamed to the client for approval instead of being fed back to the model; the turn resumes once the client posts the approved chunk ids as the tool result. is_desktop (bool): Whether the request originates in the Third Loop desktop app. Defaults to False. When False, desktop-only tools (those that execute on the user's local machine) are dropped from the tool list, so a cloud/web session is never offered a tool it cannot run. The desktop client sets this to True. |
{- "content": "string",
- "conversationId": "string",
- "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,
- "isDesktop": false
}
}{- "detail": "string"
}Posts a tool result 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.
required | object (ToolResultContentBlock) A tool result content block in a user message. Contains the output from a tool invocation, sent back to the model so it can incorporate the result into its response. Args: tool_use_id: The id of the tool_use block this is a response to. content: The tool output, either a plain string or a list of content blocks (e.g. text, images). is_error: Whether the tool invocation resulted in an error. |
| conversationId required | string (Conversationid) |
{- "toolResult": {
- "type": "tool_result",
- "toolUseId": "string",
- "content": "string",
- "isError": true
}, - "conversationId": "string"
}{- "success": true,
- "message": "string"
}Get a conversation by its unique id.
| chat_id required | string (Chat Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "summary": "string",
- "userId": "string",
- "messageCount": 0,
- "userMessageCount": 0,
- "isPinned": false,
- "source": "cli",
- "messages": [ ],
- "messageAttachments": [ ],
- "summaries": [ ],
- "project": {
- "id": "string",
- "name": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Delete a batch of your conversations at the same time.
| conversationIds required | Array of strings (Conversationids) [ 1 .. 200 ] items |
{- "conversationIds": [
- "string"
]
}{- "detail": "string"
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "summary": "string",
- "userId": "string",
- "messageCount": 0,
- "userMessageCount": 0,
- "isPinned": false,
- "source": "cli",
- "messages": [ ],
- "messageAttachments": [ ],
- "summaries": [ ],
- "project": {
- "id": "string",
- "name": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "summary": "string",
- "userId": "string",
- "messageCount": 0,
- "userMessageCount": 0,
- "isPinned": false,
- "source": "cli",
- "messages": [ ],
- "messageAttachments": [ ],
- "summaries": [ ],
- "project": {
- "id": "string",
- "name": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}Creates a new conversation with Clove.
| conversationId required | string (Conversationid) |
Projectid (string) or Projectid (null) (Projectid) | |
| title required | string (Title) |
Userid (string) or Userid (null) (Userid) | |
ConversationSource (string) or null |
{- "conversationId": "string",
- "projectId": "string",
- "title": "string",
- "userId": "string",
- "source": "cli"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "summary": "string",
- "userId": "string",
- "messageCount": 0,
- "userMessageCount": 0,
- "isPinned": false,
- "source": "cli",
- "messages": [ ],
- "messageAttachments": [ ],
- "summaries": [ ],
- "project": {
- "id": "string",
- "name": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Updates the title of an existing conversation.
| conversationId required | string (Conversationid) |
| updatedTitle required | string (Updatedtitle) |
Userid (string) or Userid (null) (Userid) |
{- "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.
| conversationId required | string (Conversationid) |
Projectid (string) or Projectid (null) (Projectid) |
{- "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.
| conversationId required | string (Conversationid) |
{- "conversationId": "string"
}{- "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a"
}{- "scaledTokensUsed": 0,
- "scaledTokensLimit": 0,
- "shortPeriodStartTime": 0,
- "shortPeriodEndTime": 0,
- "orgSurplusRemaining": 0,
- "utilization": 0,
- "utilizationString": "string"
}Get per-document collection sources for a conversation.
| conversation_id required | string (Conversation Id) |
{- "items": [
- {
- "documentId": "string",
- "collectionId": "string"
}
], - "totalCount": 0,
- "conversationId": "string"
}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": [
- {
- "documentId": "string",
- "collectionId": "string"
}
], - "totalCount": 0,
- "conversationId": "string"
}Retrieves the token count for an attachment or list of attachments.
Content (string) or Content (null) (Content) | |
| contextType | string (Contexttype) Default: "attachment" |
Id (string) or Id (string) or Id (null) (Id) | |
Title (string) or Title (null) (Title) | |
Explanation (string) or Explanation (null) (Explanation) | |
| 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" |
Filename (string) or Filename (null) (Filename) | |
Uniquekey (string) or Uniquekey (null) (Uniquekey) | |
Contenttype (string) or Contenttype (null) (Contenttype) | |
| urlMethod | string (Urlmethod) Default: "PUT" Enum: "GET" "PUT" |
Expiration (integer) or Expiration (null) (Expiration) | |
Checksum (string) or Checksum (null) (Checksum) | |
Groupkey (string) or Groupkey (null) (Groupkey) |
{- "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) |
| filename required | string (Filename) |
| fileType required | string (Filetype) |
Conversationid (string) or Conversationid (null) (Conversationid) |
{- "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) |
{- "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) Pydantic model representing a workflow resource. A workflow is metadata plus a node/edge graph. The graph is the canonical definition; it is loaded on single-workflow reads and attached by the service layer, and required on the write (PUT) path. Attributes: id: Unique identifier for the workflow. name: Name of the workflow. description: Optional description of the workflow. owner_id: ID of the user who owns the workflow. graph: The node/edge graph definition. Populated on single-workflow reads and required on the write (PUT) path. visible: Visibility level of the workflow. permission_level: The caller's share permission level, populated only on reads for a workflow shared with them; None for owned, organization, and system workflows. Ignored on the write path. shared_by_user_id: The id of the user who shared the workflow with the caller, populated alongside permission_level. is_running: Whether the caller has a run of this workflow currently executing (in the foreground or detached in the background); drives the list card's "Running" badge. Stamped on the grouped-list read. is_paused: Whether the caller has a step-through run of this workflow paused and resumable (left mid-run); drives the list card's "Paused" badge. Stamped on the grouped-list read. created_at: Timestamp when the workflow was created. updated_at: Timestamp when the workflow was last updated. |
| feedback required | string (Feedback) |
{- "workflow": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "graph": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "visible": "internal",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "isRunning": false,
- "isPaused": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "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": ""
}Query surplus collection events for a specified timerange.
| pagination | boolean (Pagination) Default: true |
MetricResourceType (string) or Resourcetype (null) (Resourcetype) | |
Startdate (string) or Startdate (null) (Startdate) | |
Enddate (string) or Enddate (null) (Enddate) | |
Pageindex (integer) or Pageindex (null) (Pageindex) Default: 0 | |
Limit (integer) or Limit (null) (Limit) Default: 25 | |
Orderby (string) or Orderby (null) (Orderby) | |
SortDirection (string) or Orderdirection (null) (Orderdirection) | |
Array of Organizationids (strings) or Organizationids (null) (Organizationids) |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "scaledAmount": 0,
- "resourceType": "string",
- "eventSource": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "periodStart": "2019-08-24T14:15:22Z",
- "periodEnd": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}Get surplus timeline data for plotting.
| pagination | boolean (Pagination) Default: false |
MetricResourceType (string) or Resourcetype (null) (Resourcetype) | |
Startdate (string) or Startdate (null) (Startdate) | |
Enddate (string) or Enddate (null) (Enddate) | |
Array of Organizationids (strings) or Organizationids (null) (Organizationids) |
{- "label": "string",
- "points": [
- {
- "index": 0,
- "startTimeMs": 0,
- "endTimeMs": 0,
- "value": 0,
- "eventCount": 0
}
], - "axisMetadata": {
- "xDomainMin": 0,
- "xDomainMax": 0,
- "yDomainMin": 0,
- "yDomainMax": 0,
- "hasLiveBucket": true
}
}Query metric consumption events over a given period.
| pagination | boolean (Pagination) Default: true |
MetricResourceType (string) or Resourcetype (null) (Resourcetype) | |
Startdate (string) or Startdate (null) (Startdate) | |
Enddate (string) or Enddate (null) (Enddate) | |
Pageindex (integer) or Pageindex (null) (Pageindex) Default: 0 | |
Limit (integer) or Limit (null) (Limit) Default: 25 | |
Orderby (string) or Orderby (null) (Orderby) | |
SortDirection (string) or Orderdirection (null) (Orderdirection) | |
MetricPoolCategory (string) or Poolcategory (null) (Poolcategory) | |
MetricIOType (string) or Iotype (null) (Iotype) | |
MetricCacheStatus (string) or Cachestatus (null) (Cachestatus) | |
Array of Userids (strings) or Userids (null) (Userids) | |
Modelid (string) or Modelid (null) (Modelid) | |
Minrawamount (integer) or Minrawamount (null) (Minrawamount) | |
Maxrawamount (integer) or Maxrawamount (null) (Maxrawamount) |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "rawAmount": 0,
- "resourceType": "string",
- "userId": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "poolCategory": "string",
- "ioType": "string",
- "cacheStatus": "string",
- "modelId": "string",
- "scaledAmount": 0,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "endpoint": "string"
}
], - "totalCount": 0
}Get per-model consumption data in timeline format. This data is useful for plotting or viewing usage trends.
| pagination | boolean (Pagination) Default: false |
MetricResourceType (string) or Resourcetype (null) (Resourcetype) | |
| startDate required | string <date-time> (Startdate) |
| endDate required | string <date-time> (Enddate) |
Array of Userids (strings) or Userids (null) (Userids) | |
| granularity | string (Granularity) Default: "hour" Enum: "hour" "day" "week" |
MetricIOType (string) or Iotype (null) (Iotype) |
{- "items": [
- {
- "label": "string",
- "points": [
- {
- "index": 0,
- "startTimeMs": 0,
- "endTimeMs": 0,
- "value": 0,
- "eventCount": 0,
- "inputValue": 0,
- "outputValue": 0,
- "cacheReadValue": 0,
- "cacheWriteValue": 0
}
], - "axisMetadata": {
- "xDomainMin": 0,
- "xDomainMax": 0,
- "yDomainMin": 0,
- "yDomainMax": 0,
- "hasLiveBucket": true
}
}
], - "totalCount": 0
}Rank users by token consumption over a date range.
| pagination | boolean (Pagination) Default: false |
MetricResourceType (string) or Resourcetype (null) (Resourcetype) | |
Startdate (string) or Startdate (null) (Startdate) | |
Enddate (string) or Enddate (null) (Enddate) | |
| limit | integer (Limit) [ 1 .. 50 ] Default: 10 |
Array of Organizationids (strings) or Organizationids (null) (Organizationids) |
{- "items": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "scaledTokens": 0
}
], - "totalCount": 0,
- "totalScaledTokens": 0
}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) |
| 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": [
- {
- "userId": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "shortPeriodScaledTokenLimit": 0,
- "userStorageLimit": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "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": [
- {
- "userId": "string",
- "success": true,
- "configuration": {
- "userId": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "shortPeriodScaledTokenLimit": 0,
- "userStorageLimit": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "error": "string"
}
], - "totalCount": 0,
- "successCount": 0,
- "failureCount": 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,
- "tokensToday": 0,
- "tokensTodayDeltaPercent": 0,
- "tokenMix": {
- "input": 0,
- "output": 0,
- "cacheRead": 0,
- "cacheWrite": 0
}
}Get a list of your projects.
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": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "isPinned": false,
- "name": "string",
- "description": "string",
- "userGeneratedContext": "string",
- "aiGeneratedContext": "string",
- "collectionsSources": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}Create a new project.
| name required | string (Name) [ 1 .. 255 ] characters |
Description (string) or Description (null) (Description) |
{- "name": "string",
- "description": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "isPinned": false,
- "name": "string",
- "description": "string",
- "userGeneratedContext": "string",
- "aiGeneratedContext": "string",
- "collectionsSources": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Get a project by its unique ID.
| project_id required | string (Project Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "isPinned": false,
- "name": "string",
- "description": "string",
- "userGeneratedContext": "string",
- "aiGeneratedContext": "string",
- "collectionsSources": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update an existing project. Only populated fields will be applied to the existing project.
| project_id required | string (Project Id) |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) | |
Usergeneratedcontext (string) or Usergeneratedcontext (null) (Usergeneratedcontext) | |
Aigeneratedcontext (string) or Aigeneratedcontext (null) (Aigeneratedcontext) | |
ProjectCollectionsSources (object) or null | |
Agentid (string) or Agentid (null) (Agentid) |
{- "name": "string",
- "description": "string",
- "userGeneratedContext": "string",
- "aiGeneratedContext": "string",
- "collectionsSources": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "ownerId": "string",
- "isPinned": false,
- "name": "string",
- "description": "string",
- "userGeneratedContext": "string",
- "aiGeneratedContext": "string",
- "collectionsSources": {
- "collectionIds": [
- "string"
], - "documentIds": [
- "string"
]
}, - "agentId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Retrieve all resource approval records for your organization.
| resource_type required | string (ApprovalResourceType) Enum: "collection" "workflow" "agent" "tool" "instruction" "storage" "tokens" "sandbox_endpoints" Enum of resource types that can be submitted for approval. Values: COLLECTION: A document collection. WORKFLOW: A workflow definition. AGENT: An agent configuration. TOOL: A tool component attached to agents. INSTRUCTION: An instruction component attached to agents. Example: >>> approval = ResourceApproval( ... resource_type=ApprovalResourceType.COLLECTION, ... ) |
{- "items": [
- {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "resourceName": "string"
}
], - "totalCount": 0
}Submit a request to approve a resource request.
Note (string) or Note (null) (Note) | |
Submissionnote (string) or Submissionnote (null) (Submissionnote) | |
| resourceType required | string (ApprovalResourceType) Enum: "collection" "workflow" "agent" "tool" "instruction" "storage" "tokens" "sandbox_endpoints" Enum of resource types that can be submitted for approval. Values: COLLECTION: A document collection. WORKFLOW: A workflow definition. AGENT: An agent configuration. TOOL: A tool component attached to agents. INSTRUCTION: An instruction component attached to agents. Example: >>> approval = ResourceApproval( ... resource_type=ApprovalResourceType.COLLECTION, ... ) |
| resourceId required | string <uuid> (Resourceid) |
TokenIncreaseRequest (object) or StorageIncreaseRequest (object) or Extraapprovaldata (object) or Extraapprovaldata (null) (Extraapprovaldata) |
{- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Resubmit a resource request that was previously rejected or revoked.
| 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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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": [
- "string"
], - "totalCount": 0
}Creates a new template with the provided name, description, type, and data.
required | Id (string) or Id (string) (Id) |
| name required | string (Name) |
| description required | string (Description) |
| s3Key required | string (S3Key) |
| templateType required | string (TemplateType) Enum: "docx" "pptx" |
Array of Layouts (objects) or Layouts (null) (Layouts) |
{- "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",
- "s3Key": "string",
- "description": "string",
- "templateType": "docx",
- "ownerId": "string",
- "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 templates by type (docx or pptx) | |
Ownerid (string) or Ownerid (null) (Ownerid) Filter templates by owner ID | |
Limit (integer) or Limit (null) (Limit) |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "s3Key": "string",
- "description": "string",
- "templateType": "docx",
- "ownerId": "string",
- "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"
}
]
}
], - "totalCount": 0
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "s3Key": "string",
- "description": "string",
- "templateType": "docx",
- "ownerId": "string",
- "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) | |
Description (string) or Description (null) (Description) |
{- "name": "string",
- "description": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "s3Key": "string",
- "description": "string",
- "templateType": "docx",
- "ownerId": "string",
- "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"
}
]
}Retrieve a single workflow with its node/edge graph.
| workflow_id required | string <uuid> (Workflow Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "graph": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "visible": "internal",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "isRunning": false,
- "isPaused": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create or fully replace a workflow (metadata plus graph) in one transaction.
| workflow_id required | string <uuid> (Workflow Id) |
| id required | string <uuid> (Id) |
| name required | string (Name) |
Description (string) or Description (null) (Description) | |
Ownerid (string) or Ownerid (null) (Ownerid) | |
WorkflowGraphData (object) or null | |
| visible required | string (WorkflowVisibility) Enum: "internal" "system" "private" "public" Enumeration defining categories for visibility of Workflows. Attributes: INTERNAL: Open to only the system. Written internally and not able to be viewed. Used to protect privacy of core system workflows from the users. SYSTEM: System-owned workflow visible to all users for selection. Immutable. Cannot be modified by end users. PRIVATE: Open to only the owner. PUBLIC: Open to all users, all users can view and reference. |
PermissionLevel (string) or null | |
Sharedbyuserid (string) or Sharedbyuserid (null) (Sharedbyuserid) | |
| isRunning | boolean (Isrunning) Default: false |
| isPaused | boolean (Ispaused) Default: false |
| createdAt | string <date-time> (Createdat) |
| updatedAt | string <date-time> (Updatedat) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "graph": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "visible": "internal",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "isRunning": false,
- "isPaused": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "graph": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "visible": "internal",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "isRunning": false,
- "isPaused": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update any of the name, description, and visibility of a workflow.
| workflow_id required | string <uuid> (Workflow Id) |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) | |
WorkflowVisibility (string) or null |
{- "name": "string",
- "description": "string",
- "visible": "internal"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "ownerId": "string",
- "graph": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "visible": "internal",
- "permissionLevel": "read",
- "sharedByUserId": "string",
- "isRunning": false,
- "isPaused": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}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,
- "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",
- "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",
- "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) |
required | object (WorkflowGraphData-Input) The full node/edge graph for a workflow, split by node kind. |
| intelligentContext | boolean (Intelligentcontext) Default: false |
Answers (object) or Answers (null) (Answers) |
{- "graph": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "intelligentContext": false,
- "answers": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}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) |
required | object (WorkflowGraphData-Input) The full node/edge graph for a workflow, split by node kind. |
| targetNodeId required | integer (Targetnodeid) |
Userfeedback (string) or Userfeedback (null) (Userfeedback) | |
Array of Selectedchunkids (strings) or Selectedchunkids (null) (Selectedchunkids) | |
Answers (object) or Answers (null) (Answers) | |
| isStepThrough | boolean (Isstepthrough) Default: false |
| reviewSources | boolean (Reviewsources) Default: false |
{- "graph": {
- "stepNodes": [ ],
- "decisionNodes": [ ],
- "edges": [ ]
}, - "targetNodeId": 0,
- "userFeedback": "string",
- "selectedChunkIds": [
- "string"
], - "answers": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "isStepThrough": false,
- "reviewSources": false
}nullReturn a list of collections, grouped into owned, shared, and organization collections.
| as_tree | boolean (As Tree) Default: true Whether to structure the returned collections as a tree |
| 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 Collection Ids (strings) or Collection Ids (null) (Collection Ids) Collection ids to downselect. If this parameter is left blank, collection ids are not used as a filter. | |
| limit | integer (Limit) >= 1 |
{- "collections": [ ],
- "orgCollections": [ ],
- "sharedCollections": [ ]
}Create a new collection.
| name required | string (Name) |
Parentcollectionid (string) or Parentcollectionid (null) (Parentcollectionid) |
{- "name": "string",
- "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "depth": 0,
- "documentCount": 0,
- "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
- "public": false,
- "locked": false,
- "ownerId": "string",
- "summary": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "documents": [ ],
- "childCollections": [ ]
}Search through collections and documents.
| q required | string (Q) non-empty Case-insensitive substring match on collection and document names. |
| limit | integer (Limit) [ 1 .. 100 ] Default: 20 |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "type": "collection",
- "path": "string",
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50"
}
], - "totalCount": 0,
- "query": "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"
}Take a collection back out of organization-wide sharing.
| collection_id required | string <uuid> (Collection Id) |
{- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}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",
- "depth": 0,
- "documentCount": 0,
- "parentCollectionId": "5f3b5c4b-dc4d-4834-8f2d-47134d76f776",
- "public": false,
- "locked": false,
- "ownerId": "string",
- "summary": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "documents": [ ],
- "childCollections": [ ]
}Retrieve all the documents within a collection.
| collection_id required | string <uuid> (Collection Id) |
| tree | boolean (Tree) Default: false If true, return the full collection subtree (admin only). Otherwise return the flat list of documents directly in the collection. |
{- "documents": [ ],
- "collections": [ ]
}Get presigned URL for upload WITHOUT creating a database record.
| collectionId required | string <uuid> (Collectionid) |
| filename required | string (Filename) |
| contentType required | string (Contenttype) |
| fileSizeBytes required | integer (Filesizebytes) |
| checksumSha256 | string (Checksumsha256) |
{- "presignedUrl": "string",
- "uploadKey": "string"
}Confirm a presigned upload, create document record, and trigger processing.
Uploadkey (string) or Uploadkey (null) (Uploadkey) | |
| collectionId required | string <uuid> (Collectionid) |
| name required | string (Name) |
| contentType required | string (Contenttype) |
| fileSizeBytes required | integer (Filesizebytes) |
| contentHash required | string (Contenthash) |
Topic (string) or Topic (null) (Topic) |
{- "uploadKey": "string",
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
- "name": "string",
- "contentType": "string",
- "fileSizeBytes": 0,
- "contentHash": "string",
- "topic": "string"
}{- "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) |
| name required | string (Name) |
required | Content (string) or Content (string) (Content) |
| contentType | string (Contenttype) Default: "text/plain" |
Topic (string) or Topic (null) (Topic) |
{- "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 Content Hash (strings) or Content Hash (null) (Content Hash) A hash id to search for |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "ownerId": "string",
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
- "isPublic": false,
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "archived": false,
- "summary": "string",
- "revisions": [ ]
}
], - "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" |
{- "content": "string"
}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) | |
Ispublic (boolean) or Ispublic (null) (Ispublic) | |
Collectionid (string) or Collectionid (null) (Collectionid) |
{- "name": "string",
- "isPublic": true,
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "filepath": "string",
- "contentType": "string",
- "contentHash": "string",
- "fileSizeBytes": 0,
- "author": "string",
- "summary": "string",
- "ownerId": "string",
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
- "isPublic": false,
- "topic": "string",
- "revision": 0,
- "chunkCount": 0
}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",
- "filepath": "string",
- "contentType": "string",
- "contentHash": "string",
- "fileSizeBytes": 0,
- "author": "string",
- "summary": "string",
- "ownerId": "string",
- "collectionId": "0ffe69e2-b7af-4b1e-835c-867376165f50",
- "isPublic": false,
- "topic": "string",
- "revision": 0,
- "chunkCount": 0
}Retrieve the encoded chunks of a document. This operation is only available to administrators.
| document_id required | string <uuid> (Document Id) |
| offset | integer (Offset) >= 0 Default: 0 Number of chunks to skip |
| limit | integer (Limit) >= 0 Default: 3 Maximum chunks to return. Pass 0 to return all chunks. |
{- "chunks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "chunkIndex": 0,
- "sectionTitle": "string",
- "pageNumber": 0
}
], - "totalCount": 0
}{- "items": [
- {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "resourceName": "string"
}
], - "totalCount": 0
}Submit a resource request for administrator approval.
Note (string) or Note (null) (Note) | |
Submissionnote (string) or Submissionnote (null) (Submissionnote) | |
| resourceType required | string (ApprovalResourceType) Enum: "collection" "workflow" "agent" "tool" "instruction" "storage" "tokens" "sandbox_endpoints" Enum of resource types that can be submitted for approval. Values: COLLECTION: A document collection. WORKFLOW: A workflow definition. AGENT: An agent configuration. TOOL: A tool component attached to agents. INSTRUCTION: An instruction component attached to agents. Example: >>> approval = ResourceApproval( ... resource_type=ApprovalResourceType.COLLECTION, ... ) |
| resourceId required | string <uuid> (Resourceid) |
TokenIncreaseRequest (object) or StorageIncreaseRequest (object) or Extraapprovaldata (object) or Extraapprovaldata (null) (Extraapprovaldata) |
{- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}
}{- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Resubmit a rejected, revoked, or retracted 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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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.
| query required | string (Query) Text query to embed and search. |
| top_k | integer (Top K) >= 1 Default: 10 |
| minimum_threshold | number (Minimum Threshold) [ 0 .. 1 ] Default: 0.15 |
| similarity_metric | string (SimilarityMetric) Default: "cosine" Enum: "cosine" "l2" "inner_product" Supported similarity metrics for vector retrieval. Each metric utilizes a corresponding HNSW index on the document_chunks table. Attributes: COSINE: Cosine similarity (1 - cosine_distance). Range: [-1, 1], typically [0, 1] for normalized vectors. Best for semantic similarity when vector magnitude should be ignored. L2: Euclidean (L2) distance converted to similarity (1 / (1 + l2_distance)). Range: [0, 1]. Considers both direction and magnitude. INNER_PRODUCT: Negative inner product distance for maximum inner product search. Range varies by embedding magnitude. Useful for embeddings trained with dot product objectives. |
| collection | Array of strings <uuid> (Collection) [ items <uuid > ] |
| document | Array of strings <uuid> (Document) [ items <uuid > ] |
| expand_context | boolean (Expand Context) Default: true |
| expansion_threshold | number (Expansion Threshold) [ 0 .. 1 ] Default: 0.4 |
| expansion_max_depth | integer (Expansion Max Depth) >= 0 Default: 3 |
| expansion_similarity_metric | string (SimilarityMetric) Default: "cosine" Enum: "cosine" "l2" "inner_product" Supported similarity metrics for vector retrieval. Each metric utilizes a corresponding HNSW index on the document_chunks table. Attributes: COSINE: Cosine similarity (1 - cosine_distance). Range: [-1, 1], typically [0, 1] for normalized vectors. Best for semantic similarity when vector magnitude should be ignored. L2: Euclidean (L2) distance converted to similarity (1 / (1 + l2_distance)). Range: [0, 1]. Considers both direction and magnitude. INNER_PRODUCT: Negative inner product distance for maximum inner product search. Range varies by embedding magnitude. Useful for embeddings trained with dot product objectives. |
| max_total_chunks | integer (Max Total Chunks) >= 1 Default: 30 |
{- "property1": {
- "documentName": "string",
- "documentAuthor": "string",
- "documentTopic": "string",
- "documentCollectionId": "1742d54d-9a35-4764-92b7-0916650bd731",
- "documentOrganizationId": "4f1cffd9-21df-4ef5-82bb-fcb8ac0ad1fc",
- "documentIsPublic": true,
- "documentSummary": "string",
- "relevanceScore": 0,
- "sections": [ ],
- "chunks": [ ]
}, - "property2": {
- "documentName": "string",
- "documentAuthor": "string",
- "documentTopic": "string",
- "documentCollectionId": "1742d54d-9a35-4764-92b7-0916650bd731",
- "documentOrganizationId": "4f1cffd9-21df-4ef5-82bb-fcb8ac0ad1fc",
- "documentIsPublic": true,
- "documentSummary": "string",
- "relevanceScore": 0,
- "sections": [ ],
- "chunks": [ ]
}
}List document chunks. Note that chunks must be filtered by their unique IDs.
| chunk required | Array of strings <uuid> (Chunk) non-empty [ items <uuid > ] |
{- "property1": {
- "documentName": "string",
- "documentAuthor": "string",
- "documentTopic": "string",
- "documentCollectionId": "1742d54d-9a35-4764-92b7-0916650bd731",
- "documentOrganizationId": "4f1cffd9-21df-4ef5-82bb-fcb8ac0ad1fc",
- "documentIsPublic": true,
- "documentSummary": "string",
- "relevanceScore": 0,
- "sections": [ ],
- "chunks": [ ]
}, - "property2": {
- "documentName": "string",
- "documentAuthor": "string",
- "documentTopic": "string",
- "documentCollectionId": "1742d54d-9a35-4764-92b7-0916650bd731",
- "documentOrganizationId": "4f1cffd9-21df-4ef5-82bb-fcb8ac0ad1fc",
- "documentIsPublic": true,
- "documentSummary": "string",
- "relevanceScore": 0,
- "sections": [ ],
- "chunks": [ ]
}
}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": [
- "string"
], - "totalCount": 0
}List your API key identifiers. Note that this will not return the private which can only be viewed once at creation time.
| user_id | string (User Id) |
| status | string (APIKeyStatus) Enum: "active" "expired" "suspended" "compromised" "deleted" The status of an API Key Options: ACTIVE: The key is active EXPIRED: The key is expired SUSPENDED: The key was revoked by an administrator. COMPROMISED: The key is suspected/confirmed to be compromised. DELETED: The key has been deleted. Note: The states of COMPROMISED, EXPIRED, and DELETED are immutable.
|
{- "items": [
- {
- "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": { }
}
], - "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) |
required | Expiration (integer) or Expiration (string) (Expiration) |
Ownerid (string) or Ownerid (null) (Ownerid) |
{- "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"
}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) |
| redirectUri required | string (Redirecturi) |
| codeVerifier required | string (Codeverifier) |
{- "code": "string",
- "redirectUri": "string",
- "codeVerifier": "string"
}{- "accessToken": "string",
- "expiresIn": 0,
- "tokenType": "string",
- "refreshToken": "string",
- "idToken": "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"
}Create a notification that is send to yourself.
| title required | string (Title) [ 1 .. 100 ] characters |
| notificationType required | string (NotificationEventType) Enum: "message_notification" "internal_redirect_notification" "chat_attachment_processed" "collection_document_processed" "collection_document_processing_failed" "collection_document_upload_skipped" "collection_document_upload_failed" "token_usage_updated" "workflow_step_completed" "workflow_run_finished" Enum of notification/event types recognised by the notification system. Values are the wire-format strings that appear in EventBridge details, DynamoDB records, and WebSocket messages. Example: >>> NotificationEventType.MESSAGE_NOTIFICATION 'message_notification' >>> NotificationEventType.CHAT_ATTACHMENT_PROCESSED == "chat_attachment_processed" True |
Body (object) or Body (null) (Body) | |
Visibleuntil (string) or Visibleuntil (null) (Visibleuntil) |
{- "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 |
| notificationType required | string (NotificationEventType) Enum: "message_notification" "internal_redirect_notification" "chat_attachment_processed" "collection_document_processed" "collection_document_processing_failed" "collection_document_upload_skipped" "collection_document_upload_failed" "token_usage_updated" "workflow_step_completed" "workflow_run_finished" Enum of notification/event types recognised by the notification system. Values are the wire-format strings that appear in EventBridge details, DynamoDB records, and WebSocket messages. Example: >>> NotificationEventType.MESSAGE_NOTIFICATION 'message_notification' >>> NotificationEventType.CHAT_ATTACHMENT_PROCESSED == "chat_attachment_processed" True |
Body (object) or Body (null) (Body) | |
Organizationid (string) or Organizationid (null) (Organizationid) |
{- "title": "string",
- "notificationType": "message_notification",
- "body": { },
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}{- "success": true,
- "message": "string"
}{- "items": [
- {
- "id": "string",
- "firstName": "string",
- "lastName": "string",
- "preferredName": "string",
- "email": "string"
}
], - "totalCount": 0,
- "organizationName": "string"
}Updates the organization configuration for your organization. Administrator only.
required | object (OrganizationSandboxConfiguration) Contains organization sandbox configuration. Attributes: ip_restriction_type (Literal[ALLOW, BLOCK]): Whether the sandbox uses a white list or black list. Defaults to a white list pattern. allow_list (list[str]): The allowed domains to access. block_list (list[str]): The blocked domains that can never be accessed. Note: Only one of allow or block list may ever be populated corresponding to the restriction type. | ||||||
| |||||||
{- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}
}{- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "configuration": {
- "sandboxConfiguration": {
- "ipRestrictionType": "ALLOW",
- "allowList": [
- "string"
], - "blockList": [
- "string"
]
}
}
}Create and attach a new statement to a policy.
| id required | string <uuid> (Id) |
required | object (PolicyStatement) Shared IAM-style policy statement shape. | ||||||||||||
| |||||||||||||
{- "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,
- "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,
- "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,
- "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.
required | Principalid (string) or Principalid (string) (Principalid) |
required | Array of Items (objects) or ActionResourcePair (object) (Items) |
| principalType | string (PrincipalType) Default: "user" Enum: "user" "service_account" "role" |
{- "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) | |
Array of objects (Statements) Default: [] | |
| name required | string (Name) |
{- "description": "string",
- "statements": [ ],
- "name": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "description": "string",
- "statements": [ ]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "description": "string",
- "statements": [ ]
}| id required | string <uuid> (Id) |
Description (string) or Description (null) (Description) | |
Array of objects (Statements) Default: [] |
{- "description": "string",
- "statements": [ ]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "description": "string",
- "statements": [ ]
}List all pending resource requests. Administrators only.
| resource_type required | string (ApprovalResourceType) Enum: "collection" "workflow" "agent" "tool" "instruction" "storage" "tokens" "sandbox_endpoints" Enum of resource types that can be submitted for approval. Values: COLLECTION: A document collection. WORKFLOW: A workflow definition. AGENT: An agent configuration. TOOL: A tool component attached to agents. INSTRUCTION: An instruction component attached to agents. Example: >>> approval = ResourceApproval( ... resource_type=ApprovalResourceType.COLLECTION, ... ) |
{- "items": [
- {
- "note": "string",
- "submissionNote": "string",
- "resourceType": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "resourceName": "string"
}
], - "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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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": "collection",
- "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "extraApprovalData": {
- "shortPeriodScaledTokenLimit": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedByUserId": "string",
- "status": "pending",
- "approverId": "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) | |
Array of objects (Statements) Default: [] | |
| name required | string (Name) |
{- "description": "string",
- "statements": [ ],
- "name": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "description": "string",
- "statements": [ ]
}Update an inline role policy.
| id required | string <uuid> (Id) |
Description (string) or Description (null) (Description) | |
Array of objects (Statements) Default: [] |
{- "description": "string",
- "statements": [ ]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "isInline": false,
- "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"
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "rank": 0,
- "description": "",
- "isActive": true,
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "policies": [ ]
}
], - "totalCount": 0
}| name required | string (Name) |
| description required | string (Description) <= 500 characters |
| isActive required | boolean (Isactive) |
| rank required | integer (Rank) |
Organizationid (string) or Organizationid (null) (Organizationid) | |
Array of objects (Policies) Default: [] |
{- "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,
- "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,
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "policies": [ ]
}| id required | string <uuid> (Id) |
{ }{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "rank": 0,
- "description": "",
- "isActive": 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) |
{- "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",
- "assignedBy": "string",
- "assignedAt": "2019-08-24T14:15:22Z",
- "isActive": true
}{- "items": [
- {
- "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"
]
}
}
}
}
], - "totalCount": 0
}| name required | string (Name) |
| scope required | string (ResourceServerAccountScope) Enum: "read" "write" "admin" |
Clientid (string) or Clientid (null) (Clientid) | |
| accessTokenExpiration | integer (Accesstokenexpiration) Default: 60 |
| accessTokenExpirationUnit | string (TimeUnit) Default: "minutes" Enum: "milliseconds" "seconds" "minutes" "hours" "days" "weeks" "years" |
{- "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"
]
}
}
}
}{- "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"
]
}
}
}
}| id required | string <uuid> (Id) |
Name (string) or Name (null) (Name) | |
ResourceServerAccountScope (string) or null |
{- "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"
]
}
}
}
}| clientSecret required | string (Clientsecret) |
| id required | string <uuid> (Id) |
{- "clientSecret": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}{- "accessToken": "string",
- "expiresIn": 0,
- "tokenType": "string"
}| clientSecret required | string (Clientsecret) |
| id required | string <uuid> (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 SAML 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 SAML metadata from a URL before configuration.
| metadataUrl required | string (Metadataurl) |
{- "metadataUrl": "string"
}{- "valid": true,
- "idpEntityId": "string",
- "ssoUrl": "string",
- "certificateExpiry": "string",
- "warnings": [
- "string"
], - "errors": [
- "string"
]
}Validate SAML metadata XML content before configuration.
| metadataContent required | string (Metadatacontent) |
{- "metadataContent": "string"
}{- "valid": true,
- "idpEntityId": "string",
- "ssoUrl": "string",
- "certificateExpiry": "string",
- "warnings": [
- "string"
], - "errors": [
- "string"
]
}Get the configuration status for a registered single sign on provider.
{- "ssoEnabled": true,
- "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"
}
}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) | |
MetadataFile (object) or null | |
AttributeMapping (object) or null | |
Enableidpinit (boolean) or Enableidpinit (null) (Enableidpinit) | |
Requireencryptedresponses (boolean) or Requireencryptedresponses (null) (Requireencryptedresponses) | |
Signsamlrequests (boolean) or Signsamlrequests (null) (Signsamlrequests) | |
Enableidpsignout (boolean) or Enableidpsignout (null) (Enableidpsignout) |
{- "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) | |
MetadataFile (object) or null | |
AttributeMapping (object) or null | |
| enableIdpInit | boolean (Enableidpinit) Default: false |
| requireEncryptedResponses | boolean (Requireencryptedresponses) Default: false |
| signSamlRequests | boolean (Signsamlrequests) Default: false |
| enableIdpSignout | boolean (Enableidpsignout) Default: false |
{- "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"
}Update the configuration for a given user.
| userId required | string (Userid) |
| theme | string (Theme) Default: "auto" |
| language | string (Language) Default: "en" |
| timezone | string (Timezone) Default: "UTC" |
Userinstructions (string) or Userinstructions (null) (Userinstructions) | |
| responseLength | string (ResponseLength) Default: "standard" Enum: "short" "standard" "long" "verbose" Allowed values for a user's preferred chat response length. |
| messageFontSize | string (Messagefontsize) Default: "medium" |
| autoScroll | boolean (Autoscroll) Default: true |
| showTimestamps | boolean (Showtimestamps) Default: true |
| copyOnSelection | boolean (Copyonselection) Default: true |
Lastversionseen (string) or Lastversionseen (null) (Lastversionseen) | |
| intelligentContext | boolean (Intelligentcontext) Default: true |
{- "userId": "string",
- "theme": "auto",
- "language": "en",
- "timezone": "UTC",
- "userInstructions": "string",
- "responseLength": "short",
- "messageFontSize": "medium",
- "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) | |
Any of boolean (Intelligentcontext) | |
{- "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
}Returns your active roles with nested policies and statements.
| id required | string (Id) |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "rank": 0,
- "description": "",
- "isActive": true,
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "policies": [ ]
}
], - "totalCount": 0
}Add a single role to another user. Administrators only.
| userId required | string (Userid) |
| roleId required | string <uuid> (Roleid) |
{- "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) |
| roleId required | string <uuid> (Roleid) |
{- "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",
- "roles": [ ],
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "username": "string",
- "externalAuthId": "string",
- "identities": [
- { }
], - "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
}
}
}List all non-deleted users. Administrators only.
Returns: APIListModel[OrganizationMemberData]: All users and total count.
{- "items": [
- {
- "id": "string",
- "firstName": "string",
- "lastName": "string",
- "preferredName": "string",
- "email": "string"
}
], - "totalCount": 0
}Triggers signup process for a new user.
| email required | string <email> (Email) |
| firstName required | string (Firstname) |
| lastName required | string (Lastname) |
{- "email": "user@example.com",
- "firstName": "string",
- "lastName": "string"
}{- "userId": "string",
- "message": "string"
}Delete a user account. Administrators only.
| userId required | string (Userid) |
{- "userId": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}Deactivates a user account. Administrators only.
| userId required | string (Userid) |
{- "userId": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}Activates a user account. Administrators only.
| userId required | string (Userid) |
{- "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) |
{- "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) | |
Lastname (string) or Lastname (null) (Lastname) | |
Preferredname (string) or Preferredname (null) (Preferredname) | |
Email (string) or Email (null) (Email) |
{- "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",
- "roles": [ ],
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "username": "string",
- "externalAuthId": "string",
- "identities": [
- { }
], - "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 |
{- "preferredName": "string"
}{- "userId": "string",
- "status": "updated",
- "message": "string"
}