One attachment stored, or found already stored under the same id with the same content.
API reference sections
Schema
ChatAttachmentResponse
Type object
Shape
| Field | Type | Description |
|---|---|---|
| attachmentrequired | ChatAttachment | The public metadata of one stored attachment. A path reference keeps its path here because the person explicitly chose to send that path to an agent. |
{
"attachment": {
"id": "00000000-0000-4000-8000-000000000000",
"message_id": "00000000-0000-4000-8000-000000000000",
"ordinal": 0,
"kind": "image",
"source": "clipboard",
"file_name": "string",
"media_type": "string",
"byte_count": 0,
"dimensions": [
{}
],
"origin": {
"workspace_id": "00000000-0000-4000-8000-000000000000",
"document_id": "00000000-0000-4000-8000-000000000000"
},
"reference_path": "string",
"created_at": 0
}
}The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.
Used by
PUT
Store a picture or file for a local agent chat's next message/v1/ai/chats/{chat}/attachments/{attachment}POST
Stage a local file or folder path for a local agent chat/v1/ai/chats/{chat}/attachments/referencePOST
Copy a granted workspace file into a local agent chat/v1/ai/chats/{chat}/attachments/from-workspacePOST
Copy a sent attachment into a fresh staged attachment for recall/v1/ai/chats/{chat}/attachments/{attachment}/restage
Generated from contract version 1. Last updated .
