Conversations
Assistant conversations, messages and streaming.
Pin a manual title and broadcast the change to workspace subscribers.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/api/conversations/string" \ -H "Content-Type: application/json" \ -d '{ "title": "string" }'{ "can_interact": false, "created_at": "string", "id": "string", "model_brand": "string", "model_canonical_id": "string", "model_config_id": "string", "model_display_name": "string", "title": "string", "user_display_name": "string", "user_has_avatar": false, "user_id": "string", "user_name": "string", "user_role": "string", "workspace_id": "string"}curl -X GET "https://example.com/api/conversations/string/artifacts"{ "artifacts": [ { "current_version": 0, "file_id": "string", "id": "string", "is_active": true, "locked_by": "string", "mime_type": "string", "opened_at": "string", "path": "string" } ]}Open or reactivate an artifact as the conversation's sole active artifact.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/conversations/string/artifacts" \ -H "Content-Type: application/json" \ -d '{ "file_id": "string" }'{ "file_id": "string", "id": "string", "is_active": true, "locked_by": "string", "opened_at": "string"}Create a pending attachment and defer its processing after upload validation.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/conversations/string/attachments" \ -H "Content-Type: application/json" \ -d '{ "upload_id": "string" }'{ "attachment_id": "string", "filename": "string", "status": "string"}Issue an upload slot for a conversation owned by the current user.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/conversations/string/attachments/presign" \ -H "Content-Type: application/json" \ -d '{ "content_type": "string", "filename": "string", "size": 0 }'{}Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/conversations/string/attachments/string"{ "created_at": "string", "error_message": "string", "filename": "string", "id": "string", "mime_type": "string", "status": "string", "transcript": "string"}Serve the raw binary content of an attachment (used for images in chat).
Returns 404 if the attachment doesn't exist, doesn't belong to the current user's conversation, or has no binary content.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/conversations/string/attachments/string/raw"nullReturn artifact file identifiers and paths after tenant-scoping the conversation.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/conversations/string/files"[ { "file_id": "string", "path": "string" }]Return tenant-scoped active messages, todos, artifacts, stream state, and choices.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/conversations/string/messages"{ "artifacts": [ { "committed_content": "string", "content": "string", "content_revision": 0, "file_id": "string", "locked_by": "string", "marker_state": { "property1": null, "property2": null }, "mime_type": "string", "path": "string", "restored_passage_ids": [ "string" ], "version": 0 } ], "has_active_stream": false, "last_seq": 0, "messages": [ { "author_display_name": "string", "author_has_avatar": false, "author_user_id": "string", "content": [ {} ], "created_at": "string", "id": "string", "model": "string", "model_brand": "string", "role": "string", "status": "string", "variant_count": 0, "variant_group_id": "string", "variant_seq": 0 } ], "pending_choice": { "property1": null, "property2": null }, "sovereign_filter_takeover": false, "todos": [ { "property1": null, "property2": null } ], "window_start_id": "string"}Return the effective and selectable work models without routing secrets.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/conversations/string/model"{ "available_models": [ { "brand": "string", "canonical_model_id": "string", "display_name": "string", "model_config_id": "string", "rank": 0 } ], "effective_model_brand": "string", "effective_model_canonical_id": "string", "effective_model_config_id": "string", "effective_model_display_name": "string", "model_brand": "string", "model_canonical_id": "string", "model_config_id": "string", "model_display_name": "string"}Select the work model for a conversation, within its workspace policy.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/api/conversations/string/model" \ -H "Content-Type: application/json" \ -d '{}'{ "available_models": [ { "brand": "string", "canonical_model_id": "string", "display_name": "string", "model_config_id": "string", "rank": 0 } ], "effective_model_brand": "string", "effective_model_canonical_id": "string", "effective_model_config_id": "string", "effective_model_display_name": "string", "model_brand": "string", "model_canonical_id": "string", "model_config_id": "string", "model_display_name": "string"}