e-signature api
An e-signature API for apps and AI agents
TypeSign is an open source e-signature API: the server is AGPL-3.0, and the SDKs, CLI and MCP server are MIT. Upload a PDF, place fields, send it for signature over REST, an SDK, the CLI or an MCP server, and get back a signed PDF with an evidence package anyone can verify. It runs at typesign.dev. Test mode is on the same address: test keys start with osk_test_, and the dashboard has a Test mode switch.
What the e-signature API does
One REST API under /api/v1, used by the CLI, the SDKs and the MCP server.
Envelopes from code
Upload a PDF, create a draft with recipients and fields, then send, remind or cancel. Envelopes can expire. Recipients sign in parallel or one at a time with
signing_order: sequential.A signing page that works on mobile
The signer opens a link and enters a 6-digit code sent to their email address. They see a preview with the fields, type or draw a signature, and give consent bound to the document's SHA-256. They can also decline.
Signed PDF and sealed evidence
On completion the fields are stamped into the PDF and a certificate page is added. An
evidence.jsonmanifest is sealed with Ed25519 inevidence.sig.json.Signed webhooks
Subscribe to events such as
envelope.sent,envelope.completed,envelope.declined,envelope.expiredandenvelope.canceled. Deliveries are signed with HMAC and retried.Scoped keys and idempotency
Keys start with
osk_test_orosk_live_and are bound to an environment. Presets: full access, agent (prepare only) and read only, with an optional monthly credit limit. Sending requires anIdempotency-Key.Human approval for agents
An agent can draft an envelope and request approval. Only a signed-in person can approve, the approval binds to the exact payload hash and is single-use, and the requester cannot approve their own request.
Embedded signing
POST /envelopes/{id}/sessionsreturns a 30-minute signing URL for the recipient you name withrecipient_id, once it is their turn, to open in your own app. The signer still confirms an email code.SDKs, CLI and MCP
SDKs for TypeScript, Python and Go, a CLI, and an MCP server over stdio. The OpenAPI document is at
/api/v1/openapi.jsonand agents can start from /llms.txt. None of the packages are published yet.
Send a PDF for signature with curl
Three calls from the quickstart. BASE is https://typesign.dev/api/v1, or http://localhost:8080/api/v1 locally. OSK is a test key from Developers in Test mode (typesign serve writes one to local-api-key). Coordinates run from 0 to 1 from the top-left. In test mode the send response lists sandbox_signing_links and emails stay in the test inbox. With an osk_live_ key the emails go to the recipients; use the sessions call when you need a link.
curl -X POST $BASE/documents \
-H "Authorization: Bearer $OSK" \
-F file=@test-agreement.pdf
curl -X POST $BASE/envelopes \
-H "Authorization: Bearer $OSK" -H "Content-Type: application/json" \
-d '{"document_version_id":"ver_…","title":"Consulting agreement",
"recipients":[{"role":"customer","name":"Test Customer","email":"customer@example.com"}],
"fields":[{"recipient_role":"customer","type":"signature","page":1,"x":0.1,"y":0.8,"width":0.3,"height":0.06}]}'
curl -X POST $BASE/envelopes/env_…/send \
-H "Authorization: Bearer $OSK" -H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" -d '{}'What TypeSign is today, and what it is not
typesign.dev is live, with a test mode on the same address. Here is what that means in practice.
| Feature | TypeSign today |
|---|---|
| Signature level | Simple electronic signature with an email one-time code |
| BankID or other eID | Not yet |
| Signature inside the PDF (PAdES) | Embedded with TypeSign's own certificate: PDF readers report an unknown issuer. DigiCert timestamp, not qualified |
| Seal key | Our own Ed25519 key: proves the evidence is unchanged, so the verifier says indeterminate, never valid |
| Email delivery | Real email in live mode. In test mode, invitations stay in the test inbox; sign-in emails still go out |
| Payments | None yet. Prices are not decided |
| Published packages | Not yet. The SDKs, CLI and MCP server are built from source |
Frequently asked questions
- Is there a test environment?
- Yes. Test mode runs on typesign.dev with
osk_test_keys, its own seal key, a test inbox and free test credits. Test and live never see each other's envelopes, keys or balances. You can also run a server locally withtypesign serve. - Can I use TypeSign for real contracts?
- TypeSign creates a simple electronic signature: the signer confirms a one-time code sent to their email, sees the locked document and gives explicit consent. The seal is our own key, not a trust service provider's. There is no BankID and no qualified timestamp, and no legal review has been done. Whether that is enough for your agreement is your decision.
- How is usage counted?
- In credits: 1 credit per completed envelope. A new workspace gets 25 free live credits and 100 free test credits, and test credits can be topped up for free, up to a cap. Live and test credits never mix. When live credits run out, write to hi@typesign.dev. Payments do not exist yet and prices are not decided.
- Can an AI agent send documents for signature?
- An agent can upload a PDF, create a draft, get a quote and request approval through the API, the SDKs or the MCP server. What else it can do depends on its key's scopes. A key made with the agent preset can prepare but not send. No tool or SDK method approves an envelope or signs for a person.
- How do I know a webhook came from TypeSign?
- Each delivery has a
webhook-signatureheader: an HMAC-SHA256 over a timestamp and the raw body. Check it before parsing and reject old timestamps.verifyWebhookin the TypeScript SDK does this, and the quickstart shows how. Every event also has anenvironmentfield. An endpoint receives events from both live and test mode, so check it. - Can someone check the evidence without TypeSign?
- Yes. The evidence format has a written specification and test vectors, so a verifier can be written in any language. The verifier at /verify runs in your browser, and
typesign verifychecks a downloaded package offline.
An open source e-signature API (AGPL-3.0 server, MIT SDKs): upload a PDF, place fields, send it for signature and get a signed PDF with sealed evidence.
Read the quickstart