Documents
Retrieving Documents
Retrieve a Single Document
Returns the full document object. The retrieve response always includes a linkages object showing the count of active links per resource type.
Path param: id — document ID, must start with dcmt_.
Getting a Signed Download URL
For private documents, the file.url field on the document object is the raw GCS URL, which returns 403 without GCS credentials. Use ?include_document_url=true to replace it with a 15-minute signed URL.
Query params:
file.url field behavior summary:
Do not store signed URLs server-side — they expire after 15 minutes. Generate them on demand just before returning to the client.
List Documents
List all documents for the authenticated organization with optional filters. Only active (non-deleted) documents are returned. The list response does not include linkages.
Query parameters:
Response:
Filtering by resource
To fetch all documents attached to a specific shipment:
Filtering by upload status
To find documents awaiting async upload verification:
Search
When filters are not enough and you want to find a document by a free-text query, use the search query param. This runs a fulltext search across the document name and metadata.
To search, simply provide a string to search by using the search query param.
Search Strategy
By default, search uses the match_some strategy, which returns documents matching any of the provided terms (OR). To require every term to match, set search_strategy=match_all (AND).
To require all terms to match:
Ordering Search Results
By default, search results are ordered by relevance. However, if you include an order_by parameter along with your search query, the results will be ordered by the specified property instead of by relevance.