Request
Body Parameters
Response
200 OK when attachment succeeds.
422 Unprocessable Entity if one or more documents do not belong to the session workspace.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Attach existing workspace documents to an extraction session.
POST /extractions/sessions/770e8400-e29b-41d4-a716-446655440000/documents/attach HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
Content-Type: application/json
{
"document_ids": [
"880e8400-e29b-41d4-a716-446655440000"
]
}
| Parameter | Type | Required | Description |
|---|---|---|---|
document_ids | array[uuid] | Yes | Workspace document IDs to attach |
200 OK when attachment succeeds.
{
"data": [
{
"id": "880e8400-e29b-41d4-a716-446655440000",
"workspace_id": "660e8400-e29b-41d4-a716-446655440000",
"filename": "invoice.pdf",
"status": "processed"
}
]
}
422 Unprocessable Entity if one or more documents do not belong to the session workspace.