Get Document

GET /documents/{id}

Get a document by ID

Path Parameters

id string required
curl -X GET \
-H "x-api-key: dsk_your_api_key" \
https://api.tracore.io/documents/doc_abc123
import { TracoreClient } from '@tracore/sdk';

const client = new TracoreClient({ apiKey: 'dsk_your_api_key' });

const doc = await client.documents.get('doc_abc123');
console.log(doc);
200 Response
{
  "id": "ws_abc123",
  "name": "My Workspace",
  "content": "Invoice #1234...",
  "mimeType": "application/pdf",
  "fileSize": 102400,
  "originalFilename": "invoice-2024.pdf",
  "status": "received",
  "extractedData": {
    "key": "value"
  },
  "createdAt": "2024-03-15T10:30:00Z",
  "updatedAt": "2024-03-15T10:30:00Z"
}