Signature Documents

Upload signature document

Changed on

Uploads a PDF to sign, inline (filename ending in .pdf, base64 content, at most 25 MB and 500 pages, not password-protected) or from the media library (file). The response lists each page's size in points and the text anchors ({{signature:client}}) found in it, which fields can be placed by. Answers 422 invalid_document for a PDF that can't be read.

post/sign/documents

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

SignatureDocumentRequest required

A PDF inline (filename and base64 content) or from the media library (file).

filename, string

Ends in .pdf

content, string byte
file, string

A PDF in the media library (file_...)

Response

Document uploaded

SignatureDocument required
id, string required
object, string required
filename, string required
sha256, string required
page_count, integer required
created_at, string date-time required
size, number required

Bytes

pages, object[] required

Each page's size in PDF points (1/72 inch), as displayed: crop box and rotation applied

anchors, object[] required

Text anchors such as {{signature:client}} found in the PDF, which fields can be placed by

Changes