Documentation Index
Fetch the complete documentation index at: https://docs.deck.co/llms.txt
Use this file to discover all available pages before exploring further.
Available on Enterprise plans.
Enabling storage on a task
Storage is configured when you create or update a task. Setstorage.enabled to true to capture files. Set storage.extraction to true to also extract structured data from those files.
| Field | Type | Description |
|---|---|---|
storage.enabled | boolean | Capture files produced during task execution |
storage.extraction | boolean | Parse captured files and extract structured data |
storage.extraction_schema | object | Custom schema to guide what gets extracted |
storage.deduplication | boolean | Skip files that have already been stored from a previous run |
Retrieving storage items
Storage items are not included in the default task run response. Use?include=storage to include them when retrieving a task run, or list them separately using the task run storage endpoint.
Storage item fields
Unique identifier, prefixed with
stor_.Original file name as it appeared on the source.
MIME type (
application/pdf, image/png, video/mp4, text/csv, etc.).Size in bytes.
Signed download URL.
Source-specific metadata attached by Deck during capture.
When the file was retrieved from the source.
Structured data extracted from the file, if extraction is enabled.
The task run that produced this storage item.
Downloading files
Each storage item includes aurl field with a signed download URL. Use it to fetch the raw file.
url, task_run_id, created_at) not present on list items.
Document extraction
When extraction is enabled, Deck parses the captured files and populates theextraction field on each storage item with structured JSON.
Extraction works with common document types including PDFs, spreadsheets, invoices, receipts, and reports. The extracted data depends on the document. A utility bill produces different fields than a hotel receipt.
Custom extraction schemas
Use theextraction_schema field on the task’s storage config to define exactly what fields you want extracted. Deck uses this schema to guide parsing.
Extraction example
A utility bill extraction might return:Extraction errors
If extraction fails on a file, theextraction field is null. The raw file is still available for download. Only the extraction step failed.
Common causes:
| Error code | Meaning |
|---|---|
extraction_failed | The file couldn’t be parsed. Corrupt, unsupported layout, or unreadable content. |
extraction_timeout | Extraction took too long |
Deduplication
Deduplication is off by default. Whenstorage.deduplication is true, Deck compares files against previous runs for the same task and credential. If a file has already been stored, it’s skipped. This is useful for recurring fetch tasks. Run the same task daily and only new files are captured.
Events
Storage items emit events you can subscribe to through event destinations:| Event | When it fires |
|---|---|
storage.created | A new file has been captured and is ready for download |
storage.deleted | A storage item was permanently removed |