Get a download URL for a document
Returns a short-lived pre-signed `download_url` for the stored file, valid for 300 seconds. Fetch that URL directly — it needs no authentication and must be requested **without** your `x-api-key` header. Treat `download_url` as a short-lived credential: anyone holding it can read the file until it expires, and it cannot be revoked. Do not log, cache or forward it. Request a fresh URL for each download. On deployments whose storage backend cannot sign URLs, this endpoint streams the file directly instead, as `application/octet-stream` with a `Content-Disposition: attachment` header.
A pre-signed download URL, or the file itself as a fallback
Get a document
Returns the document's metadata, including its contact link and the opportunities it is attached to. Use `/documents/{id}/content` to obtain a download URL.
Delete a document
**Irreversible.** Unlike contacts and opportunities, documents are not soft-deleted: the record, every contact/opportunity/order link, and the stored file are all removed. To remove a document from one parent while keeping the file, use the unlink/detach endpoints instead.