Docs

Pacts

Download the document

The PDF exactly as it was sent, before anyone signed. Its SHA-256 is the pact's sent_sha256.

GET/v1/pacts/{uid}/document.pdf

Authorization

Authorizationstringheaderrequired
Bearer followed by your API key: Bearer sgk_…. The key also works in an X-Api-Key header. See Authentication.

Path parameters

uidstringpathrequired
The pact's 8-character id. Not case-sensitive.

Response

200 OKThe PDF (application/pdf), as an attachment named after the pact's title.

Errors

StatusWhen
401 UnauthorizedThe API key is missing, wrong or revoked.
403 ForbiddenThe account's plan does not include API access (Pro and Business do).
404 Not FoundNo such pact, or its document is not available.

Every error body is { "error": "message" }. See Errors.