Sign Officially

Developers

Send documents for signature from your own software.

A REST API with API keys and signed webhooks, client libraries for Python, Node.js and PHP, embedded sending and signing, and an MCP server for AI assistants. Part of the Business plan. Create keys under API and webhooks in your dashboard.

Client libraries - MCP server - Embedded sending - Contracts - Webhooks

Authentication

Send your key as a Bearer token. Keys start with so_live_. Keep them on your server, never in a browser or app.

curl https://signofficially.com/v1/me \
  -H "Authorization: Bearer so_live_..."

Create an envelope from a template

Templates define the document, roles and field positions. You supply the people for each role.

curl -X POST https://signofficially.com/v1/envelopes \
  -H "Authorization: Bearer so_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "template": "TEMPLATE_ID",
    "title": "Service agreement - Acme",
    "recipients": {
      "0": {"name": "Emily Carter", "email": "emily@example.com"},
      "1": {"name": "Michael Brooks", "email": "michael@example.com"}
    }
  }'

Create an envelope from a PDF

Upload a PDF and describe the people and fields. Field positions are fractions of the page (0 to 1, from the top-left). Leave out fields and they come from text tags in the PDF; with no tags either, each signer gets a signature and a date at the foot of the last page.

curl -X POST https://signofficially.com/v1/envelopes \
  -H "Authorization: Bearer so_live_..." \
  -F "file=@contract.pdf" \
  -F 'meta={"title":"Contract","recipients":[{"ref":"a","name":"Emily Carter","email":"emily@example.com"}],
       "fields":[{"recipient":"a","type":"signature","page":1,"x":0.55,"y":0.80,"w":0.30,"h":0.06},
                 {"recipient":"a","type":"date","page":1,"x":0.55,"y":0.87,"w":0.20,"h":0.04}]}'

Other endpoints

GET /v1/envelopesList envelopes. Filter with ?status=sent.
GET /v1/envelopes/{id}Status, people, fields and audit trail.
POST /v1/envelopes/{id}/remindEmail everyone whose turn it is.
POST /v1/envelopes/{id}/voidCancel. Body: {"reason": "..."}
GET /v1/envelopes/{id}/final.pdfThe signed PDF, once a participant has opened the completed document.
GET /v1/envelopes/{id}/auditAudit events with chain verification.
GET /v1/templatesYour templates and their roles.
POST /v1/envelopes/{id}/recipients/{rid}/signing-urlEmbedded signing: a one-time link (default 10 minutes) that opens the document straight away for a person you have already identified in your own app. Body: {"expires_seconds": 600, "redirect_url": "https://..."}. The audit trail records it.
GET /v1/envelopes/{id}/commentsComments between you and the signers.
POST /v1/envelopes/{id}/commentsAdd a comment. Body: {"body": "..."}. The people still to sign are emailed.
POST /v1/sender-viewsEmbedded sending: a one-time link to the sending screen. See below.
GET /v1/contractsSigned agreements with their terms. ?filter=all|upcoming|auto_renew|missing|ended&q=
GET /v1/envelopes/{id}/contractThe terms of one signed agreement.
POST /v1/envelopes/{id}/contractRecord terms (only what you send changes): counterparty, type, value, currency, start_date, end_date, renewal_date, auto_renew, notice_days, remind_days, remind_to, notes.

Options when creating

The JSON body (template) or the meta field (upload) also take: send_at (ISO time up to 60 days ahead; the envelope waits as "scheduled"), redirect_url (https address people are sent to after signing), signer_lang (hi, es, fr, de, pt), allow_comments and allow_delegate (default true), id_stamp (print the document ID at the top of every page; defaults to the team setting), sequential, require_otp (default false: set true to also ask signers for a one-time code we email them), expires_days. A recipient's role is signer, approver (approves or declines without signing fields), acknowledge (reads the document and confirms they have read and understood it, for policies, handbooks and notices; no fields) or viewer (gets a copy). The body also takes allow_paper (default false: let signers print, sign on paper and upload a scan instead). Add "id_check": true to a recipient to have them verify a government ID and a selfie before the document opens (where identity checks are available). A signer with "witness_of": "<ref of another signer>" is a witness: they are emailed only after that person has signed, and the certificate says "Witness to" them. A recipient's notify_at (ISO time, 2 minutes to 60 days ahead) with notify_tz invites them at their own time, for example 9 AM in their time zone; the envelope stays scheduled until the earliest one. With sequential and Standard mode, "route_if": {"field": "amount", "op": "gt", "value": "1000"} sends to a recipient only if a named field filled in earlier meets the rule (op: equals, not_equals, gt, lt, checked, unchecked, filled, empty); otherwise they are marked not needed.Field types: signature, signblock (signature block: the signature with the signer's name, job title and company in bold below it; set "block": {"title": "...", "company": "...", "date": true, "locked": true, "align": "left|center|right", "size": "auto|s|m|l", "line": true}), initials, date, name, email, company, title, text (with validation: number, email, date, phone, letters), checkbox, radio and dropdown (with options), attachment, note (text shown to the signer, not printed). Fields printed as text take "style": {"size": 10, "align": "center", "bold": true} (size in points, 6 to 24).

Text tags

Write tags in the document itself and the fields place themselves, on upload and in the browser. {{sig:1}} is a signature for the first signer, {{block:1}} a signature block with name, title and company, {{init:2}} initials for the second, {{date:1}}, {{text:1:phone}} (a validation rule or a label), {{check:1}}, {{radio:1:Yes|No}}, {{dropdown:1:Red|Green}}, {{name:1}}, {{email:1}}, {{company:1}}, {{title:1}}, {{attach:1:Photo ID}}, {{note:1:Read page 2 first}}. Write them in white (or the page colour) to hide them. Send "auto_tags": true to add them to fields you also pass explicitly.

Client libraries

Single-file clients with no dependencies. Each covers every endpoint above and includes a webhook signature check.

  • Python (3.8+): from signofficially import SignOfficially
  • Node.js (18+): import { SignOfficially } from './signofficially.mjs'
  • PHP (8.1+): $so = new SignOfficially\Client('so_live_...')
from signofficially import SignOfficially
so = SignOfficially("so_live_...")
env = so.send_pdf("contract.pdf", signers=[{"name": "Emily Carter", "email": "emily@example.com"}], title="Contract")
print(env["id"], env["status"])

MCP server for AI assistants

Connect Claude (or any assistant that speaks the Model Context Protocol) to your account so it can send documents for signature, check who has signed, remind, cancel, fetch signed copies and look up contract renewals. The server uses the Streamable HTTP transport at https://signofficially.com/mcp with your API key as a Bearer token.

claude mcp add --transport http sign-officially https://signofficially.com/mcp \
  --header "Authorization: Bearer so_live_..."

Tools: list_envelopes, get_envelope, list_templates, send_from_template, send_document, remind_signers, cancel_envelope, get_audit_trail, download_signed_pdf, list_contracts, set_contract_terms. Tools that email people or cancel requests are marked so assistants ask before using them.

Embedded sending

Let people in your app send documents without leaving your workflow. Ask for a sender view with the document (or a template) and the people; send the person to the url you get back. They place fields and press Send on our sending screen, then come back to your return_url with ?event=sent&envelope_id=... (or ?event=cancel). The link works once, for 15 minutes by default, and opens a session that can only use the sending screen. Envelopes are sent as the API key's user.

curl -X POST https://signofficially.com/v1/sender-views \
  -H "Authorization: Bearer so_live_..." \
  -F "file=@contract.pdf" \
  -F 'meta={"return_url":"https://yourapp.com/signed","title":"Contract",
       "recipients":[{"name":"Emily Carter","email":"emily@example.com"}]}'

For embedded signing, see signing-url above.

Contracts

Every completed envelope can carry its key terms. We email the sender (and remind_to) remind_days before the next key date: the notice deadline when there is a notice period, otherwise the renewal or end date. The contract.reminder webhook fires at the same time.

Webhooks

We POST JSON to your URL for envelope.scheduled, envelope.sent, envelope.viewed, envelope.signed, envelope.approved, envelope.acknowledged (someone asked to read and confirm the document confirmed it), envelope.delegated, envelope.completed, envelope.sealed, envelope.declined, envelope.voided, envelope.expired, envelope.corrected (the sender changed fields or documents), envelope.paid, envelope.approval_requested, envelope.rejected and contract.reminder. Each request carries X-SignOfficially-Signature: t=TIMESTAMP,v1=HMAC, where HMAC is SHA-256 over TIMESTAMP.BODY with your webhook secret. Reject requests older than five minutes. Failed deliveries are retried for a day with growing delays.

Privacy note

Documents uploaded through the API are encrypted by our servers on arrival, so unlike the browser, the server sees the PDF for a moment. Private (end-to-end) mode is browser-only.