Sales Engine
API documentation
ClientsOperation documents.file

Documents file

A ten-minute link to an uploaded document's file (download=1 to download).

GET/api/v1/documents/{id}/file
Scope read: Read anything in the workspace.

Parameters

Path

NameInDescription
idrequiredpathThe record's id.

Query

NameInDescription
downloadquery1 to download instead of view.

Example

curl
curl -X GET "https://crm.ashwanth.dev/api/v1/documents/{id}/file" \
  -H "Authorization: Bearer $SALES_ENGINE_API_KEY"
CLI
sales-engine documents file <id>

Response

A 200 with the result under data, on creation too. Errors come back as an error object with a stable code; see Errors.

Shape
{
  "data": { ... }
}

Run it below to see the live shape for your workspace.

Try it

Runs against this server, as the workspace behind the key.
Kept in this page while you browse the docs, gone on reload, never stored. Signed in to the app? Leave it blank and the call runs as you.
Path
required
The record's id.
Query
1 to download instead of view.
Request
GET /api/v1/documents/%7Bid%7D/file
Fill the path first.

Also in Clients