Skip to main content

Plutosign API documentation

Create, manage and send documents from your own tools. This reference is public; requests that access workspace data need a valid credential.

Download the OpenAPI specification

Authentication and plan access

Organization owners and admins can create API keys in Settings → API. Save the full key when it is shown; it is only displayed once. Send it in the Authorization header as a Bearer token. Keep API keys on your server.

API access and event webhooks are available on current plans; document allowances apply. Free allows 5 sent documents per monthly period; drafts, imports and copies are free. Growth, Agency and Scale have unlimited document creation and sends. Document allowances belong to the workspace; AI allowances on paid plans scale with purchased seats.

In the app, document opens, views, signing timelines and organization-wide page viewing summaries are available on all current plans. Export document status, creation/sent/completion dates and recipient details as CSV.

OAuth access tokens use the zsign_at_ prefix and require the relevant scope (see OAuth). Organization API keys currently have full organization API permissions; treat them as privileged credentials.

curl https://plutosign.com/api/v1/documents \
  -H "Authorization: Bearer jsign_live_YOUR_API_KEY"

OAuth 2.0 for apps that act for other workspaces

Use OAuth when your app acts for Plutosign users in workspaces you do not own. For your own workspace, an API key is simpler. Plutosign supports the authorization code grant with optional PKCE and refresh tokens.

Register a client

There is no self-serve client registration yet. To register an OAuth client, email support@plutosign.com with your app name, the workspace it belongs to, one exact HTTPS redirect URI (no wildcards), the scopes you need, and whether it is a public client (a single-page, mobile or command-line app that cannot keep a secret). We send you a client_id and, for a confidential client, a client_secret. The secret is shown once and cannot be recovered.

Ask the user to approve

Send the user's browser to https://plutosign.com/oauth/authorize with response_type=code, client_id, redirect_uri, scope (space-separated; read if omitted), state and, with PKCE, code_challenge and code_challenge_method=S256. The user signs in, sees the workspace and the scopes, and approves. We redirect to your redirect_uri with code and your state unchanged, or with error=access_denied if the user declines. Check that state matches the value you sent. The code is single use and expires after 10 minutes.

PKCE (RFC 7636) supports S256 only; the plain method is refused. Public clients must use PKCE. We recommend it for every client. If you sent a code_challenge, the token request must include the matching code_verifier.

Get and refresh tokens

Exchange the code with POST https://plutosign.com/api/oauth/token, form-encoded or JSON: grant_type=authorization_code, code, redirect_uri (the same value as before; required) and code_verifier if you used PKCE. Authenticate a confidential client with HTTP Basic or with client_id and client_secret in the body; a public client sends client_id only. The response has access_token (prefix zsign_at_), token_type Bearer, expires_in 3600 (one hour), refresh_token (prefix zsign_rt_) and scope.

To refresh, POST grant_type=refresh_token with refresh_token and the same client authentication. Each refresh returns a new access token and a new refresh token; the old refresh token stops working, so store the new one. A refresh token expires after 30 days without use, and a grant cannot be refreshed more than 180 days after the user approved it; then the user must approve again. There is no token revocation endpoint yet.

OAuth scopes
ScopeAllows
readRead documents, recipients, contacts and templates.
writeCreate and change documents, contacts and templates. Includes read.
sendSend documents for signing. Includes read, not write.
adminManage webhooks and workspace settings. Includes send, write and read.
credits:readRead the workspace's credit balance. Only requestable while credits are enabled. Not included in admin.

Create and send a document

Create a draft, then use its returned id in the send request. Review the content, recipient roles and field placement before sending. The send endpoint accepts recipientsList, with up to 50 recipients. To request payment, set metadata.paymentLinkUrl to your own Stripe, PayPal or Square payment link; signers see it right after they sign, and Plutosign does not process the payment.

curl -X POST https://plutosign.com/api/v1/documents \
  -H "Authorization: Bearer jsign_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Service Agreement","content":[{"type":"p","children":[{"text":"Your reviewed agreement goes here."}]}]}'
curl -X POST https://plutosign.com/api/v1/documents/{id}/send \
  -H "Authorization: Bearer jsign_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "recipientsList": [{"email":"client@example.com","name":"Your client","role":"signer"}],
    "fields": [{"type":"signature","recipientEmail":"client@example.com","page":1,"positionX":40,"positionY":120,"width":200,"height":50}],
    "message": "Please review and sign."
  }'

Use top-level signing links

The send response includes data.signingLinks with a url for each recipient. Share that recipient’s URL or open it in a top-level browser page. Recipients do not need a Plutosign account. Iframe embedding is currently unavailable. Use a normal signing link that opens a top-level page.

<!-- Use the recipient's URL from data.signingLinks; keep it private. -->
<a href="https://plutosign.com/sign/{token}" target="_blank" rel="noopener noreferrer">
  Review and sign
</a>

Endpoints

Every operation in the OpenAPI specification; credits endpoints are listed under Credits. Paths are relative to https://plutosign.com. See the specification for request and response schemas.

API endpoints
MethodPathPurpose
GET/api/v1/documentsList documents
POST/api/v1/documentsCreate a new document (accepts Idempotency-Key)
GET/api/v1/documents/{id}Get a document by ID
PATCH/api/v1/documents/{id}Update a document
DELETE/api/v1/documents/{id}Delete a draft document
POST/api/v1/documents/{id}/sendSend document for signing
GET/api/v1/documents/{id}/downloadDownload document PDF
GET/api/v1/documents/searchSearch documents by title
GET/api/v1/documents/{id}/recipientsList recipients for a document
POST/api/v1/documents/{id}/recipientsAdd a recipient to a document
DELETE/api/v1/documents/{id}/recipientsRemove a recipient from a document
GET/api/v1/contactsList contacts
POST/api/v1/contactsCreate a new contact
GET/api/v1/contacts/searchSearch contacts by email
GET/api/v1/contacts/{id}Get a contact by ID
PATCH/api/v1/contacts/{id}Update a contact
DELETE/api/v1/contacts/{id}Delete a contact
GET/api/v1/templatesList templates
POST/api/v1/templatesCreate a new template
GET/api/v1/templates/{id}Get a template by ID
PATCH/api/v1/templates/{id}Update a template (partial)
DELETE/api/v1/templates/{id}Delete a template
GET/api/v1/webhooks/deliveriesInspect outbound webhook delivery history and terminal failures
POST/api/v1/subscribeRegister a REST hook subscription (Zapier-compatible)
DELETE/api/v1/subscribeUnregister a REST hook subscription (Zapier-compatible)
GET/api/v1/webhooksList registered webhooks (OAuth scope: admin)
POST/api/v1/webhooksRegister an event webhook (OAuth scope: admin)

Retry document creation safely

POST /api/v1/documents accepts an optional Idempotency-Key header, at most 128 characters. Send a new unique value, such as a UUID, for each document you mean to create, and send the same value again when you retry after a timeout or network error. If a document was already created in your workspace with that key, the response is 200 with the original document; nothing new is created and no document allowance is used. The request body is not compared, so never reuse a key for a different document. Keys do not expire. Other endpoints ignore this header.

Credits

When credits are enabled for a workspace, a send can use credits: on pay as you go after the monthly free sent documents, and on seat plans for API sends beyond the monthly allowance (Growth 50, Agency 150, Scale 500). A send costs 15 credits ($1.50 at list) for up to 10 recipients; on pay as you go each recipient beyond 10 adds 2 credits. A send is free when every recipient is a workspace member (owner, admin or member) who joined at least 30 days earlier, and when it goes only to people the same document was already charged for.

Price a send first with GET /api/v1/documents/{id}/send-cost?recipients=a@example.com,b@example.com, then pass the returned credits as expectedCredits on POST /api/v1/documents/{id}/send. If the price rose in between, the send is refused with 402 PRICE_CHANGED and nothing is sent.

Refusals: 402 CREDITS_REQUIRED (not enough credits), 402 PRICE_CHANGED, 402 CREDITS_BLOCKED (paused during a payment dispute), 403 CREDITS_MANAGERS_ONLY (the workspace lets only billing managers spend credits; OAuth tokens act as their user, API keys are not restricted) and 403 DRAFT_LIMIT_REACHED. The document stays a draft. Bodies carry documentId, required, reason and, for credentials with credits:read, available and shortfall.

Headers on the send, credits and send-cost endpoints, for credentials with credits:read (API keys always): X-Credits-Remaining, X-Credits-Charged, X-Credits-Source, X-Api-Sends-Remaining and X-Api-Sends-Reset. Values are integers; -1 means unlimited.

Credits endpoints
MethodPathPurpose
GET/api/v1/creditsCredit balance and API-send allowance (OAuth scope: credits:read)
GET/api/v1/credits/historyCredit history (OAuth scope: credits:read and read)
GET/api/v1/documents/{id}/send-costPrice a send before sending (OAuth scope: read)

Register an event webhook

POST /api/v1/webhooks accepts a public HTTPS url and a non-empty events array. Save the whsec_ signing secret returned at creation; GET /api/v1/webhooks lists registrations without returning their secrets. OAuth tokens need admin scope for both operations.

curl -X POST https://plutosign.com/api/v1/webhooks \
  -H "Authorization: Bearer jsign_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://your-app.example/webhook","events":["document.completed","document.signed"]}'

Durable delivery is active for wired send, view, sign, decline, completion and expiry transitions. Events are persisted with the business transition; delivery starts on the next five-minute scheduler tick. Failed requests retry up to six total attempts, with minimum backoffs of 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. Each attempt has a 10-second timeout; redirects and unsafe destinations are rejected. Delivery is at least once, without ordering guarantees. Events emitted before activation have no retroactive guarantee. Delivery history is available at GET /api/v1/webhooks/deliveries; no delivery replay API is available.

  • document.created — Registered type; not currently emitted
  • document.sent — Document sent for signing
  • document.viewed — Document viewed
  • document.signed — Document signed
  • document.completed — Document completed
  • document.declined — Document declined
  • document.expired — Document expired
  • document.voided — Registered type; not currently emitted
  • recipient.signed — Recipient signed
  • recipient.viewed — Recipient viewed
  • recipient.declined — Recipient declined
  • payment.received — A client paid through your own connected Stripe account
  • credits.low — Credit balance fell below 150 or 45 (only when credits are enabled for the workspace); data has available and threshold

The JSON payload has type, data, timestamp (the original event time) and eventId. Headers: X-ZSign-Signature: sha256=<hex digest>, X-ZSign-Event, X-ZSign-Timestamp and X-ZSign-Event-Id. Headers alone are unsigned metadata; compare them with the authenticated body. The User-Agent is ZSign-Webhooks/1.0.

Verify the raw body and prevent replay

Compute HMAC-SHA256 with the signing secret over the exact request bytes before JSON parsing. Re-serializing JSON changes those bytes. Use a constant-time comparison with a length check so malformed headers cannot throw.

The HMAC authenticates the exact raw body, including eventId and the original timestamp. Verify it before parsing, then require the event ID and timestamp headers to match the signed body. Atomically record the signed eventId per subscription with your processing result so retries cannot duplicate your work. Retain this record for the full replay horizon your integration supports. Retries preserve the original timestamp: backoff alone spans 14 hours and 36 minutes, and scheduler delays can extend it. A five-minute freshness limit rejects legitimate retries. The example accepts delayed authenticated events without an age cutoff and relies on durable deduplication; record receipt time separately.

const crypto = require('node:crypto');

function verifyWebhook(rawBody, signature, secret, idHeader, timestampHeader, typeHeader) {
  if (!Buffer.isBuffer(rawBody) || typeof signature !== 'string') return null;
  const expected = Buffer.from('sha256=' + crypto.createHmac('sha256', secret)
    .update(rawBody).digest('hex'));
  const received = Buffer.from(signature);
  if (received.length !== expected.length || !crypto.timingSafeEqual(received, expected)) return null;
  let event;
  try { event = JSON.parse(rawBody.toString('utf8')); } catch { return null; }
  if (!event || typeof event.eventId !== 'string' ||
      !/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(event.eventId) ||
      typeof event.timestamp !== 'string' || !Number.isFinite(Date.parse(event.timestamp)) ||
      typeof event.type !== 'string' || event.eventId !== idHeader ||
      event.timestamp !== timestampHeader || event.type !== typeHeader) return null;
  // No age cutoff: legitimate delayed retries keep the original timestamp.
  // Durable deduplication below is required before any side effect.
  return event;
}

// Mount this BEFORE express.json(); keep the exact bytes that were signed.
app.post('/webhook', express.raw({ type: 'application/json' }), async (req, res) => {
  // Resolve this from your receiver configuration, never from request input.
  const subscription = YOUR_CONFIGURED_SUBSCRIPTION;
  const event = verifyWebhook(req.body, req.headers['x-zsign-signature'], subscription.secret,
    req.headers['x-zsign-event-id'], req.headers['x-zsign-timestamp'], req.headers['x-zsign-event']);
  if (!event) return res.status(401).send('Invalid signature or event metadata');
  // Implement in your database: a unique (subscription.id, event.eventId)
  // record and your work/outbox commit atomically. Duplicates return success.
  // Retain IDs for your full replay horizon; deleting them permits replay.
  await recordEventIdAndEnqueueOnce(subscription.id, event.eventId, event);
  return res.sendStatus(200);
});

Rate limits and integration boundaries

Document listing is limited to 120 requests per minute per credential; document creation to 60 and sending to 30. Webhook registration and listing share 60 requests per minute per IP. A rate-limited request returns 429 with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Other endpoints have their own limits.

HubSpot and Pipedrive can import CRM contacts and create drafts from deals after you connect an account. On Growth and above, connect your own Stripe account: after signing, clients pay by card on Stripe Checkout and the money goes straight to your Stripe account. Plutosign is not the merchant and takes no fee. On any plan you can instead add your own Stripe, PayPal or Square payment link.

Compare current plans or contact support@plutosign.com to check your workflow.