Documents
Models
Document Model
The document model represents a file stored in Google Cloud Storage and its associated metadata.
object "document"
The enum value identifying this as a document model.
id string
Unique identifier for this document, prefixed with dcmt_.
file object
The file name, access URL, and file metadata for the document.
Show Details
checksum_md5 string | null
Client-provided Base64-encoded MD5 checksum for integrity verification.
checksum_sha256 string | null
Client-provided hex-encoded SHA-256 checksum.
visibility string
Access control for the file. "public" means the file is world-readable via a permanent CDN URL. "private" means access requires a signed URL. Immutable after creation.
upload_status string
The upload state of the document (DocumentStatus enum). Can be requested, completed, failed, or expired. See Upload Modes for the state machine.
category string
The document category. One of: photo, invoice, spec_sheet, contract, certificate, warranty, manual, shipping, other.
metadata object
Arbitrary key/value pairs associated with the document.
created_by string
The ID of the user or API key that created this document.
created_by_details object
Display details for the creator.
Show Details
linkages object
A count of active links per resource type. Always present. Keys are singular resource type names: asset, shipment, item, manifest, fulfillment. Example: { "shipment": 2, "asset": 1, "item": 0, "manifest": 0, "fulfillment": 0 }.
_upload_url string | null
The signed GCS PUT URL for async uploads. Returned on create when no content field is provided. null for sync uploads and on all subsequent responses. Use this URL to PUT the file bytes directly to GCS (no API key needed).
created_at string
ISO date string when this document was created.
updated_at string
ISO date string when this document was last updated.
deleted_at string | null
ISO date string when this document was soft-deleted. null for active documents.
checksum string
A server-computed HMAC of the document object. Use to detect response tampering or to check whether a document has changed since last retrieved.
Document Link Entry
A document link represents an association between a document and a platform resource.
id string
Unique identifier for this link. A raw v7 UUID (e.g. 019696c6-4b3a-7e1d-b9a2-3f8c1d0e5a72).
resource object
The resource this document is linked to.
Show Details
created_at integer
Time in epoch seconds when this link was created.