sigreq_...) asks one or more signers to sign one or more PDFs. Signers sign from a link Crevio emails them, or inside your app in an embedded signing page. When the last signer signs, Crevio seals the documents into one PDF with a certificate of completion and a hash-chained audit trail.
You can also ask Crevio to “send the lease to Jane to sign”. The agent uses the same endpoints below and asks you before anything goes out. Merchants do the same from Signatures in the dashboard. See Signatures for the help-center view.
The objects
The flow
- Upload each PDF with
POST /sign/documents, or pass it inline when you create the request. - Create the request with
POST /sign/requests, listing the documents and the signers with their fields. It is sent at once unless you pass"send": false. - Email signers get their link when it is their turn. For embedded signers, open a session and show its
urlin your app. - Each signer passes any identity check, agrees to sign electronically, then signs.
- Follow progress with the
signature_request.*webhooks orGET /sign/requests/{id}. - After
signature_request.completed, download the sealed PDF fromGET /sign/requests/{id}/signed_document.
Upload documents
Upload a PDF as base64 to get a reusable document:pages gives each page’s size in PDF points (1/72 inch) as the page is displayed, with its crop box and rotation applied. anchors lists every {{type:key}} tag found in the PDF’s text, with its box in the same units. sha256 is the hash of the bytes you uploaded.
A request or template takes its documents in any of three forms, mixed freely:
Inline and media-library PDFs become documents too, so you can reuse them later by id. The filename must end in
.pdf. Crevio refuses encrypted PDFs and files it can’t read with invalid_document.
GET /sign/documents/{id} returns the metadata only. DELETE /sign/documents/{id} answers document_in_use while any request or template still uses the document, completed requests included.
Place fields
Each field belongs to one signer and sits on one page of one document. Place it by position or by anchor.By position
Positions are in PDF points, measured from the top-left corner of the page as displayed.page counts from 1. document is the document’s index in documents, counting from 0, or its sigdoc_ id. It defaults to the first document.
pages. width and height default to the type’s usual size.
By anchor
Write a tag such as{{signature:tenant}} in the PDF, then pass the exact tag as anchor:
- Inside the double braces, the tag has lowercase letters or
_, then a colon, then a key of letters, digits,_or-. - Crevio matches the tag literally in the PDF’s text, whatever its color. You can write it in white so signers don’t see it.
- One anchor input places a field over every occurrence of the tag, across all the request’s documents.
widthandheightdefault to the box of the tag’s text, which is usually smaller than a signature. Pass them for signature and initials fields.offset_xandoffset_ymove the field from the tag’s top-left corner, in points. A negativeoffset_ymoves it up.typealways comes from the field input. The word before the colon in the tag is not read.- A field placed by anchor comes back with its
anchor. Sending it back with apagekeeps it where it is and keeps theanchoras a record of where it came from; only an input withoutpageis matched against the documents again.
invalid_fields. Check a document’s anchors before you rely on a tag.
Field types
company, phone, textarea and select are Crevio extras. Every field is required unless you pass "required": false, and a required checkbox must be ticked. Every signer needs at least one signature field. label (up to 100 characters) names the field on the signing page.
Signed values are never returned by the API. They appear only in the sealed PDF.
Create and send a request
This request has two documents and two signers. The tenant’s signature is placed by anchor and the landlord’s by position:send defaults to true, so this request goes out at once and comes back with status: "sent". If sending fails, nothing is created and the error says why. Send an Idempotency-Key header to retry a create safely. The same key with the same body within 24 hours returns the first response.
The response is the signature_request as GET /sign/requests/{id} returns it, with documents, signers and fields. Each field has its own fld_ id, and an anchor input comes back as one field per occurrence.
Drafts. Pass "send": false to create a draft. Change it with PATCH /sign/requests/{id}, then send it with POST /sign/requests/{id}/send. PATCH replaces documents or signers as whole lists when you pass them. Pass a signer’s id to keep that signer. The fields of the signers you pass replace all the request’s fields. PATCH on drafts is a Crevio extra. Sending a request that is already sent returns it unchanged.
Signers. contact (con_...) fills a signer’s name, email and phone from the contact. Every signer needs an email, unique within the request, embedded signers included. client_ref is your own id for the signer, printed on the certificate.
Signing order. With parallel (the default), every email signer gets their link on send. With sequential, the signers with the lowest order go first, and the next order is emailed once all of them have signed. Signers with the same order sign together. order defaults to the signer’s position in signers, starting at 1.
Expiry. expires_at is optional and at most 365 days ahead. Signing stops at expires_at. The request moves to expired in a daily sweep, or as soon as someone tries to sign after it.
Reminders. With reminder_interval_days (1 to 30), Crevio emails each email signer whose turn it is every that many days, up to 3 times per signer. Crevio checks once a day. The default comes from signature_settings, which starts at 3. Pass null for no reminders. POST /sign/requests/{id}/remind emails them now, skipping anyone emailed in the last hour, and answers reminder_not_due when no one is left to remind. Manual reminders don’t count toward the 3.
Canceling and deleting. POST /sign/requests/{id}/cancel cancels a draft or a sent request, and emails the signers who already got their link. DELETE /sign/requests/{id} deletes a request in any status except sent, together with its audit trail and sealed PDF. Cancel a sent request first.
Email signers and embedded signers
GET /sign/requests/{id} returns signing_url on an email signer whose turn it is. That link signs as them, so never show it to anyone else. Webhooks never carry it.
Emails to signers come from email_from in signature_settings when it is set and its domain is verified. It must be an address on the account’s own email domain. Without it, Crevio sends from its usual address under the business’s name.
Embedded signing
Embedded signers sign inside your app. Your app has already identified them, so the certificate recordscustomer_asserted with their client_ref. Open a session only for the signed-in user it belongs to, when they open the page that shows it.
First, allow your app’s origin to frame the signing page:
https:// with no path, up to 10. With no origins, the signing page refuses every frame and opens only on its own.
Then, on your server, open a session for the signer:
expires_inis 60 to 86,400 seconds, 3,600 by default. The session works untilexpires_at. Each call makes a new session.- The token is in the URL path and is returned only once. Hand
urlto the browser and don’t log it. - The signing page sends
Referrer-Policy: no-referrer, so the token doesn’t leak through links on the page. - Each response sets
Content-Security-Policy: frame-ancestorsto yourallowed_origins. - A session is refused for an email signer (
signer_not_embedded), a signer who signed or declined (signer_finished), and a request that is not sent or has expired (request_not_signable). - With
sequentialorder, a session opened before the signer’s turn shows a waiting screen until it is their turn.
url in a frame:
Events from the signing page
The embedded signing page posts messages to the parent window, targeted at the parent’s origin. Each message has this shape:GET /sign/requests/{id}.
Identity checks
email_code and sms_code are Crevio extras for email signers. Before the signer sees the document, Crevio sends a 6-digit code to their email or phone, and they type it on the signing page.
- A code works for 10 minutes. The signer gets 5 attempts per code, and can ask for a new one after 30 seconds.
sms_codeneeds aphonewith its country code, and a texting number on the account. Without one, sending answerssms_unavailable.- Each code sent, each success, and each failure is in the audit trail.
Consent before the document
Before the document opens, each signer reads a disclosure and agrees to sign electronically. The signing page does not load the PDF until they agree. The disclosure isdisclosure from signature_settings, or Crevio’s default text naming the business when it is null. Crevio records the SHA-256 of the exact text the signer agreed to. The hash is on their consented audit event and printed on the certificate. If you change the disclosure while a signer has the page open, their consent is refused and the page reloads with the new text.
Templates
A template (stpl_...) saves documents, roles and fields so you can send the same paperwork again. Roles stand in for signers, and template fields name a role instead of a signer.
- Only
nameis required to create a template.PATCH /sign/templates/{id}replacesdocuments,rolesandfieldsas whole lists when you pass them. - A role
keyis letters, digits,_or-, up to 64 characters. A template has at most 20 roles. merge_keymarks atextfield your app fills in when it sends. The signer sees the value read-only. A merge field you leave empty is filled in by the signer.readyistrueonce the template has documents and every role has asignaturefield.
title, message, signing_order, expires_at, reminder_interval_days, metadata and send as a direct request, defaulting to the template’s own values. Signers take delivery and authentication as above. The request keeps its own copy of the fields, so later edits to the template don’t change it. It answers template_incomplete when the template is not ready, invalid_signers when a role has no signer or two, and invalid_fields for an unknown merge field.
The template builder
POST /sign/templates/{id}/builder_sessions returns a url to Crevio’s template editor for that one template, with the same expires_in range as a signing session. Show it in a frame on one of your allowed_origins so your users can place roles and fields themselves. The builder edits the template’s name, title, message, signing order, roles and fields. It does not change the documents.
The builder posts the same kind of messages as the signing page, with "source": "crevio-sign" and "version": 1, to your allowed_origins:
Merchants can also turn on a public link for a one-role template from the dashboard. Anyone who opens it signs their own copy. The template’s
share_url is that link, or null while it is off.
Status
Completion and the sealed PDF
When the last signer signs, the request becomescompleted and completed_at is set. Crevio then seals it in the background:
- Every document is stamped with the signers’ values and signatures, and the documents are joined in order into one PDF.
- The certificate of completion is added at the end.
- The whole file gets a PAdES digital signature, so any later change to it shows.
signed_document to {"sha256": "...", "sealed_at": "..."}, emails a copy to every email signer, and fires signature_request.completed. Wait for that webhook, or for a non-null signed_document, before you download:
signed_document_not_ready. signed_document.sha256 is the SHA-256 of the sealed file. Compare it with a file you hold to show it is the one Crevio sealed. Each entry in documents keeps the SHA-256 of the PDF as it was sent.
The certificate of completion
The certificate’s pages list:- the request’s title and id, the business, and when it was sent and completed
- each document’s filename and SHA-256 as sent
- for each signer, their name, email, role, authentication method (with
client_reffor embedded signers), when they viewed, consented and signed, the disclosure’s SHA-256, their IP address, and their browser - every audit event up to completion, with its time, type, actor, signer and IP address
- whether the audit trail’s hash chain was intact when Crevio sealed it
The audit trail
GET /sign/requests/{id}/audit_trail lists every event, oldest first. Each event has a sequence from 1, a type, an actor (api_key, signer, dashboard, system or agent), the signer_id it is about, the ip_address and user_agent, details, and occurred_at.
Each event’s
hash is a SHA-256 over the event and the previous_hash, which is the hash of the event before it. The first event’s previous_hash is null. A changed or removed event breaks the chain. Crevio checks the whole chain before it seals, and does not seal a request whose chain is broken.
Webhooks
data.object is the signature request as GET /sign/requests/{id} returns it, without any signing_url. On sent, completed, canceled and expired, its contact is expanded. On signer_signed for the last signer, data.object.status is already completed, and signature_request.completed follows once the PDF is sealed. No payload carries document bytes, field values, or tokens.
When the agent calls these endpoints
The agent asks you for approval before it sends a request, reminds or cancels one, opens a signing or builder session, or deletes anything. Creating a request directly or from a template asks too, unless the call passes"send": false. Reading, uploading documents and editing drafts don’t ask.
Errors
Every error uses the standard error envelope. These are the signature codes, all answered with422:
Reusing an
Idempotency-Key with a different body or on a different endpoint answers 400 idempotency_error. Retrying while the first request with that key is still running answers 409 idempotency_key_in_use: wait for it, then retry. A key whose request failed is freed, so the retry runs again.
Limits
Encrypted PDFs are refused. Fields keep the size you give them. A one-line value shrinks to fit its field, down to 5 points, and a
textarea keeps only the lines that fit.
Next steps
- API reference: every parameter for
/sign/requests,/sign/documents,/sign/templatesand/sign/settings - Webhooks: verifying deliveries, retries and every event
- Quotes & deals: priced offers customers sign and pay

