> ## Documentation Index
> Fetch the complete documentation index at: https://crevio.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Signatures

> Send PDFs for e-signature by email or inside your own app, place fields by position or text anchor, and download the sealed PDF with its certificate and audit trail.

**A signature request (`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](https://crevio.co/docs/features/sign.md) for the help-center view.

## The objects

| Object | Prefix | What it is |
| - | - | - |
| `signature_document` | `sigdoc_` | An uploaded PDF, with its page sizes and the text anchors found in it. Reusable across requests and templates. |
| `signature_request` | `sigreq_` | The documents, the signers, and the fields each signer fills in. |
| `signer` | `signer_` | One person on a request, signing by `email` or `embedded` delivery. |
| `signature_template` | `stpl_` | Documents, roles and fields saved for reuse. |
| `signature_session` | `sigses_` | A short-lived signing link for one embedded signer. |
| `signature_builder_session` | `sigbld_` | A short-lived link to the template editor for one template. |
| `signature_event` | `sigevt_` | One step in a request's audit trail. |
| `signature_settings` | | Account-wide settings: framing origins, branding, the consent disclosure, the sender address and default reminders. |

## The flow

1. Upload each PDF with `POST /sign/documents`, or pass it inline when you create the request.
2. 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`.
3. Email signers get their link when it is their turn. For embedded signers, open a session and show its `url` in your app.
4. Each signer passes any identity check, agrees to sign electronically, then signs.
5. Follow progress with the `signature_request.*` webhooks or `GET /sign/requests/{id}`.
6. After `signature_request.completed`, download the sealed PDF from `GET /sign/requests/{id}/signed_document`.

## Upload documents

Upload a PDF as base64 to get a reusable document:

```bash theme={null}
curl -X POST https://api.crevio.co/v1/sign/documents \
  -H "Authorization: Bearer $CREVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"filename\": \"lease.pdf\", \"content\": \"$(base64 -w0 lease.pdf)\"}"
```

```json theme={null}
{
  "id": "sigdoc_8f2c1e",
  "object": "signature_document",
  "filename": "lease.pdf",
  "size": 48213,
  "sha256": "9b1d4e...",
  "page_count": 2,
  "pages": [
    { "width": 612.0, "height": 792.0 },
    { "width": 612.0, "height": 792.0 }
  ],
  "anchors": [
    { "text": "{{signature:tenant}}", "page": 2, "x": 72.0, "y": 610.4, "width": 96.3, "height": 9.8 }
  ],
  "created_at": "2026-11-24T10:00:00Z"
}
```

`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:

| Form | Example |
| - | - |
| An uploaded document | `{"document_id": "sigdoc_8f2c1e"}` |
| A PDF inline | `{"filename": "lease.pdf", "content": "<base64>"}` |
| A PDF in the media library | `{"file": "file_abc123"}` |

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.

```json theme={null}
{ "type": "signature", "document": 0, "page": 2, "x": 72, "y": 640, "width": 170, "height": 40 }
```

A field must fit on its page. A US Letter page is 612 by 792 points, and A4 is 595.28 by 841.89. Read the exact size from the document's `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`:

```json theme={null}
{ "type": "signature", "anchor": "{{signature:tenant}}", "offset_y": -30, "width": 170, "height": 40 }
```

* 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.
* `width` and `height` default to the box of the tag's text, which is usually smaller than a signature. Pass them for signature and initials fields.
* `offset_x` and `offset_y` move the field from the tag's top-left corner, in points. A negative `offset_y` moves it up.
* `type` always 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 a `page` keeps it where it is and keeps the `anchor` as a record of where it came from; only an input without `page` is matched against the documents again.

An anchor that is not in any document answers `invalid_fields`. Check a document's `anchors` before you rely on a tag.

### Field types

| `type` | Filled with | Default size (points) |
| - | - | - |
| `signature` | The signer's adopted signature image | 170 × 40 |
| `initials` | The signer's adopted initials image | 60 × 30 |
| `date_signed` | The signing date in the business's time zone, filled by Crevio | 110 × 22 |
| `name`, `email` | Text, prefilled from the signer | 160 × 22, 180 × 22 |
| `text` | Up to 1,000 characters | 160 × 22 |
| `checkbox` | A tick | 16 × 16 |
| `company`, `phone` | Text. `phone` is prefilled from the signer | 160 × 22, 130 × 22 |
| `textarea` | Up to 1,000 characters, wrapped | 240 × 60 |
| `select` | One of `options`, which is required | 130 × 22 |

`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:

```bash theme={null}
curl -X POST https://api.crevio.co/v1/sign/requests \
  -H "Authorization: Bearer $CREVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: lease-4521" \
  -d '{
    "title": "Lease agreement",
    "message": "Please sign by Friday.",
    "documents": [{"document_id": "sigdoc_8f2c1e"}, {"document_id": "sigdoc_3a90bd"}],
    "signing_order": "sequential",
    "expires_at": "2026-12-31T23:00:00Z",
    "reminder_interval_days": 2,
    "metadata": {"lease_id": "4521"},
    "signers": [
      {
        "name": "Jane Doe",
        "email": "jane@example.com",
        "order": 1,
        "fields": [
          {"type": "signature", "anchor": "{{signature:tenant}}", "width": 170, "height": 40},
          {"type": "date_signed", "anchor": "{{date:tenant}}"},
          {"type": "initials", "document": 1, "page": 1, "x": 500, "y": 740}
        ]
      },
      {
        "name": "Pat Owner",
        "email": "pat@example.com",
        "order": 2,
        "fields": [{"type": "signature", "page": 2, "x": 340, "y": 640}]
      }
    ]
  }'
```

`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

| | `delivery: "email"` (default) | `delivery: "embedded"` |
| - | - | - |
| How they get the page | Crevio emails a private link when it is their turn | Your server opens a session and your app shows its `url` |
| Emails from Crevio | Link, reminders, cancellation, and the sealed PDF | None |
| `authentication` | `email_link` (default), `email_code` or `sms_code` | `customer_asserted`, the only option |
| Can be framed | No | Yes, by your `allowed_origins` |

`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 records `customer_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:

```bash theme={null}
curl -X PATCH https://api.crevio.co/v1/sign/settings \
  -H "Authorization: Bearer $CREVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"allowed_origins": ["https://app.example.com"]}'
```

Origins are `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:

```bash theme={null}
curl -X POST https://api.crevio.co/v1/sign/requests/sigreq_9d1f/signers/signer_5be0/sessions \
  -H "Authorization: Bearer $CREVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expires_in": 1800}'
```

```json theme={null}
{
  "id": "sigses_71c4",
  "object": "signature_session",
  "request_id": "sigreq_9d1f",
  "signer_id": "signer_5be0",
  "url": "https://crevio.co/sign/sst_4kT9...",
  "token": "sst_4kT9...",
  "expires_at": "2026-11-24T10:30:00Z"
}
```

* `expires_in` is 60 to 86,400 seconds, 3,600 by default. The session works until `expires_at`. Each call makes a new session.
* The token is in the URL path and is returned only once. Hand `url` to 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-ancestors` to your `allowed_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 `sequential` order, a session opened before the signer's turn shows a waiting screen until it is their turn.

Show `url` in a frame:

```html theme={null}
<iframe src="SESSION_URL" title="Sign the lease" style="width: 100%; border: 0"></iframe>
```

#### 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:

```json theme={null}
{ "source": "crevio-sign", "version": 1, "type": "signed", "request_status": "sent" }
```

| `type` | Extra keys | When |
| - | - | - |
| `ready` | | The page has loaded |
| `viewed` | | The signer sees the document |
| `signed` | `request_status` | The signer signed. `request_status` is `completed` when they were the last |
| `declined` | `reason` | The signer declined |
| `error` | `code`, `message` | Something failed on the page |
| `resize` | `height` | The page's content height changed, in CSS pixels |

> [!WARNING]
>
> Any window can post a message to yours. Check that `event.origin` is the origin of the session `url` before you trust a message.

```js theme={null}
const signingOrigin = new URL(sessionUrl).origin;
const frame = document.querySelector("iframe");

window.addEventListener("message", (event) => {
	if (event.origin !== signingOrigin) return;
	const message = event.data;
	if (message?.source !== "crevio-sign" || message.version !== 1) return;

	if (message.type === "resize") frame.style.height = `${message.height}px`;
	if (message.type === "signed") showThanks(message.request_status);
	if (message.type === "declined") showDeclined(message.reason);
	if (message.type === "error") console.error(message.code, message.message);
});
```

Treat these messages as a cue to update your page. Confirm the outcome on your server with webhooks or `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_code` needs a `phone` with its country code, and a texting number on the account. Without one, sending answers `sms_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 is `disclosure` 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.

```bash theme={null}
curl -X POST https://api.crevio.co/v1/sign/templates \
  -H "Authorization: Bearer $CREVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Standard lease",
    "documents": [{"document_id": "sigdoc_8f2c1e"}],
    "roles": [{"key": "tenant", "name": "Tenant"}, {"key": "landlord", "name": "Landlord"}],
    "fields": [
      {"role": "tenant", "type": "signature", "anchor": "{{signature:tenant}}", "width": 170, "height": 40},
      {"role": "tenant", "type": "text", "merge_key": "rent", "page": 1, "x": 380, "y": 210},
      {"role": "landlord", "type": "signature", "page": 2, "x": 340, "y": 640}
    ]
  }'
```

* Only `name` is required to create a template. `PATCH /sign/templates/{id}` replaces `documents`, `roles` and `fields` as whole lists when you pass them.
* A role `key` is letters, digits, `_` or `-`, up to 64 characters. A template has at most 20 roles.
* `merge_key` marks a `text` field 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.
* `ready` is `true` once the template has documents and every role has a `signature` field.

Send a request from a ready template with exactly one signer per role:

```bash theme={null}
curl -X POST https://api.crevio.co/v1/sign/templates/stpl_2b7e/requests \
  -H "Authorization: Bearer $CREVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: lease-4522" \
  -d '{
    "signers": [
      {"role": "tenant", "name": "Jane Doe", "email": "jane@example.com"},
      {"role": "landlord", "name": "Pat Owner", "email": "pat@example.com"}
    ],
    "merge_fields": {"rent": "$1,850 per month"}
  }'
```

It takes the same `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`:

| `type` | Extra keys | When |
| - | - | - |
| `ready` | | The builder has loaded |
| `saved` | `ready` | The template was saved. `ready` is `true` when it has documents and every role has a signature field |
| `error` | `code`, `message` | A save was refused. `code` is `save_failed` and `message` says why |

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

| Request `status` | Meaning |
| - | - |
| `draft` | Not sent. Everything can change. |
| `sent` | Waiting for signatures. Only `reminder_interval_days` can change. |
| `completed` | Everyone signed. `signed_document` is `null` until sealing finishes, shortly after. |
| `declined` | A signer declined. Their `decline_reason` says why, and no one else can sign. |
| `canceled` | Canceled before everyone signed. |
| `expired` | `expires_at` passed before everyone signed. |

| Signer `status` | Meaning |
| - | - |
| `pending` | Not their turn yet, or an embedded signer who hasn't opened the page |
| `notified` | Crevio emailed their link |
| `viewed` | They opened the signing page. Views by your own team, signed in to Crevio, are not counted |
| `signed` | They signed |
| `declined` | They declined |

## Completion and the sealed PDF

When the last signer signs, the request becomes `completed` and `completed_at` is set. Crevio then seals it in the background:

1. Every document is stamped with the signers' values and signatures, and the documents are joined in order into one PDF.
2. The certificate of completion is added at the end.
3. The whole file gets a PAdES digital signature, so any later change to it shows.

Sealing sets `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:

```bash theme={null}
curl https://api.crevio.co/v1/sign/requests/sigreq_9d1f/signed_document \
  -H "Authorization: Bearer $CREVIO_API_KEY" \
  -o lease-signed.pdf
```

Before sealing finishes, the endpoint answers `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_ref` for 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`.

| Event types | |
| - | - |
| Request | `created`, `sent`, `canceled`, `expired`, `completed`, `sealed` |
| Signer | `notified`, `reminded`, `viewed`, `consented`, `signed`, `declined`, `downloaded` |
| Identity checks | `code_sent`, `verified`, `verification_failed` |

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

| Event | When | `data.signer` |
| - | - | - |
| `signature_request.sent` | The request is sent | |
| `signature_request.viewed` | A signer opens their signing page for the first time | Yes |
| `signature_request.signer_signed` | One signer signs | Yes |
| `signature_request.declined` | A signer declines, which closes the request | Yes |
| `signature_request.completed` | The sealed PDF is ready | |
| `signature_request.canceled` | The request is canceled | |
| `signature_request.expired` | The request expires | |

`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.

```json theme={null}
{
  "type": "signature_request.signer_signed",
  "data": {
    "object": { "id": "sigreq_9d1f", "object": "signature_request", "status": "sent", "metadata": { "lease_id": "4521" } },
    "signer": { "id": "signer_5be0", "object": "signer", "status": "signed", "client_ref": "user_118" }
  }
}
```

See [Webhooks](https://crevio.co/docs/developer/guides/webhooks.md) for the envelope, signature verification and retries.

## 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](https://crevio.co/docs/developer/guides/errors.md). These are the signature codes, all answered with `422`:

| Code | Where | Fix |
| - | - | - |
| `invalid_document` | Documents | Send a readable, unencrypted PDF whose filename ends in `.pdf`, within the limits below. |
| `not_found` | Documents | Use a `document_id` or `file` from this account. |
| `document_in_use` | Delete document | Delete the requests and templates that use it first. |
| `invalid_fields` | Create, update, send | Fit each field on its page, use an anchor that is in the documents, give every signer a `signature` field, or use a known merge field. |
| `invalid_signers` | Create, update | Use each email once, and on template requests give each role exactly one signer. |
| `invalid_expiry` | Create, update, send | Set `expires_at` in the future and within 365 days. |
| `no_document`, `no_signers` | Send | Add a document or a signer. |
| `signer_without_email` | Send | Give every signer an email. |
| `sms_unavailable` | Send | Add a texting number, or check each `sms_code` signer's `phone`. |
| `request_not_draft` | Update, send | Only a draft can change or be sent, except `reminder_interval_days` while sent. |
| `request_not_cancelable` | Cancel | The request is already completed, declined or expired. |
| `request_not_deletable` | Delete request | Cancel the sent request first. |
| `reminder_not_due` | Remind | The request is not sent, no email signer is waiting, or everyone waiting was emailed in the last hour. |
| `signed_document_not_ready` | Signed document | Wait for `signature_request.completed`. |
| `signer_not_embedded` | Sessions | Only embedded signers get sessions. Email signers use their emailed link. |
| `signer_finished` | Sessions | The signer already signed or declined. |
| `request_not_signable` | Sessions | Send the request first. It may also have expired. |
| `template_incomplete` | Template requests | Give the template documents and a signature field for every role. |
| `invalid_origin` | Settings | Use `https://` origins with no path. |
| `validation_error` | Anywhere | Read `message`, for example a title over 200 characters or `expires_in` out of range. |

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

| Limit | Value |
| - | - |
| Documents per request or template | 10, each used once |
| PDF size | 25 MB |
| Pages per PDF | 500 |
| Signers per request | 20 |
| Fields per signer or role | 500 |
| Roles per template | 20 |
| Title | 200 characters |
| Message | 2,000 characters, or 5,000 on a request from a template |
| Text field value | 1,000 characters |
| `expires_at` | At most 365 days ahead |
| `reminder_interval_days` | 1 to 30, at most 3 automatic reminders per signer |
| Manual reminders | One per signer per hour |
| `metadata` | 50 keys of up to 40 characters, string values of up to 500 |
| Session `expires_in` | 60 to 86,400 seconds |
| `allowed_origins` | 10 |
| Disclosure | 10,000 characters |

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](https://crevio.co/docs/developer/api-reference/introduction.md): every parameter for `/sign/requests`, `/sign/documents`, `/sign/templates` and `/sign/settings`
* [Webhooks](https://crevio.co/docs/developer/guides/webhooks.md): verifying deliveries, retries and every event
* [Quotes & deals](https://crevio.co/docs/developer/guides/quotes-and-deals.md): priced offers customers sign and pay


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.