Email
Marketing
SMS
Hooks
Risk
Platform
Retrieve a document
GET
/v1/sign/documents/{id}
bearerAuthheader
AuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
id*stringThe document's id.
Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
Value in
"2026-10-10"The document.
application/json- response
- response
- …
object*"sign_document"Value in
"sign_document"id*stringfilename*stringsize*integerBytes.
sha256*stringHex SHA-256 of the uploaded bytes.
page_count*integerpages*array<>Each page's size, in order.
anchors*array<>Text anchors ({{signature:signer_1}}) found in the document, which fields can be placed by.
sandbox*booleancreated_at*stringFormat
date-timeimport { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.sign.documents.get("sdoc_01k7c8m4q2f3e9v6t5r1n0p8yz");{ "object": "sign_document", "id": "sdoc_01k7c8m4q2f3e9v6t5r1n0p8yz", "filename": "agreement.pdf", "size": 48213, "sha256": "9f2c6c0f0e1d4b7a8c5e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c", "page_count": 2, "pages": [ { "width": 612, "height": 792 }, { "width": 612, "height": 792 } ], "anchors": [ { "text": "{{signature:signer_1}}", "page": 2, "x": 72, "y": 640, "width": 140, "height": 12 } ], "sandbox": false, "created_at": "2026-10-26T15:04:05.000Z"}