cURL
curl -X POST https://app.okrapdf.com/api/v1/collections \ -H "Authorization: Bearer okra_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "Q4 Earnings", "doc_ids": ["ocr-abc123"]}'
{ "id": "col-abc123def456", "name": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "description": "<string>", "metadata": {} }
Create a new named collection. Optionally include initial documents by job ID. Collection names must be unique per user.
doc_ids
API key as Bearer token: Authorization: Bearer okra_xxx
Authorization: Bearer okra_xxx
Collection name (unique per user)
"Q4 Earnings"
Optional description
OCR job IDs to add on creation
Collection created
"col-abc123def456"