Skip to content
bSign
Features Security Integrations Industries Pricing Sign a PDFFree
Sign in Start free trial
Features Security Integrations Industries Pricing Sign a PDFFree FAQ Sign in
Developers

The bSign API

Send documents from your own software and collect the signed PDFs. REST and JSON, a token, and signed webhooks.

On this page Start here Send from a template Follow documents Webhooks All endpoints Errors and limits Power Automate Zapier

Start here

The API is at https://api.bsign.ca/v1. JSON in and out, times in ISO 8601 UTC.

  1. In bSign, open Settings > API & webhooks and create a token. It's shown once: keep it like a password.
  2. Send it with every request as Authorization: Bearer <token>.
  3. Check it works:
curl https://api.bsign.ca/v1/me \
  -H "Authorization: Bearer bsign_..."

{ "id": "fL3S02MVAQ", "name": "Jordan Office", "email": "jordan@example.com",
  "site": { "id": "ATCuMMWmob", "name": "Example Dental" } }

A token acts as the person who made it. Make one per integration so each can be revoked. Tokens last a year at most.

Send from a template

Set the document up once as a template, with a role for each recipient (Client, Manager…). Then:

  1. GET /templates lists your templates. GET /templates/{id} shows one's roles and fields.
  2. POST /templates/{id}/send sends it. Give someone for each open role, and field values by name.
curl -X POST https://api.bsign.ca/v1/templates/T9x8Y7w6V5/send \
  -H "Authorization: Bearer bsign_..." \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "Q-11520",
    "recipients": [
      { "role": "Client", "name": "Jane Client", "email": "jane@acmedental.example" }
    ],
    "fields": {
      "Company name": "Acme Dental",
      "Start date": "2026-10-01",
      "Plan": "Business"
    }
  }'

The answer is the new document (201 Created). In fields:

  • Before-sending fields are drawn into the document. Required ones must be given.
  • A recipient's fields start with the value, and they can change it. "Client::Job title" picks one role's field.
  • Dates as 2026-10-01, checkboxes as a list, dropdowns and radio buttons as one choice.

Also: name, note, expiresInDays (1 to 365), sendInOrder, and sendEmails: false to get signing links back instead of emails. Problems come back as 422, all listed.

Follow documents

  • GET /documents lists what you sent, newest changes first. Filter by status (in_progress, completed, declined, voided, expired, draft), reference, templateId, search or updatedSince.
  • GET /documents/{id} has each recipient's status (sent, viewed, signed, waiting…).
  • GET /documents/{id}/file is the PDF, sealed once completed; /certificate is its certificate.
  • POST /documents/{id}/remind nudges whoever still has to sign. POST /documents/{id}/void stops it, with a reason.
  • GET /documents/{id}/history is what happened to it.

Webhooks

Add a webhook in Settings > API & webhooks or with POST /webhooks, and bSign POSTs each event to you:

{
  "id": "Xb3kQ9pLmN",
  "event": "document.completed",
  "createdAt": "2026-09-29T16:20:00.000Z",
  "document": { "id": "a1B2c3D4e5", "name": "Managed Services Agreement",
                "reference": "Q-11520", "status": "completed" },
  "actor": { "name": "Jane Client", "email": "jane@acmedental.example", "role": "recipient" }
}

The events: document.sent, viewed, signed, approved, declined, voided, completed, recipient_changed, reminder_sent, expiry_notice, expiry_extended, corrected, skipped and paper_copy. Failed deliveries are retried after 30 seconds and 2 minutes, with the same id.

Each delivery is signed in the X-bSign-Signature header: t=<unix time>,v1=<HMAC-SHA256 of "t.body">. Check it first:

// Node.js, with the raw request body
const crypto = require("crypto");
const [t, v1] = req.get("X-bSign-Signature").split(",").map((p) => p.split("=")[1]);
const expected = crypto.createHmac("sha256", process.env.BSIGN_WEBHOOK_SECRET)
  .update(`${t}.${rawBody}`).digest("hex");
const valid = v1.length === expected.length
  && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected))
  && Math.abs(Date.now() / 1000 - Number(t)) < 300; // not an old replay

Or ask: GET /events?type=document.completed lists the latest events.

All endpoints

RequestWhat it does
GET/meWho the token belongs to
GET/templatesYour templates
GET/templates/{id}A template's roles and fields
GET/templates/{id}/schemaIts send request as a JSON Schema
POST/templates/{id}/sendSend a document from it
GET/documentsYour documents, with filters
GET/documents/{id}A document and its recipients
GET/documents/{id}/fileIts PDF
GET/documents/{id}/certificateIts completion certificate
GET/documents/{id}/historyWhat happened to it
POST/documents/{id}/remindRemind whoever still has to sign
POST/documents/{id}/voidVoid it, with a reason
GET/eventsThe latest events
GET/webhooksYour webhooks
POST/webhooksAdd one (url, events)
DELETE/webhooks/{id}Remove one

Every field is in the OpenAPI file, api.bsign.ca/v1/openapi.json, for Postman, Insomnia or a code generator.

Errors and limits

Errors come back as { "error": { "code", "message" } }, with details.problems when there are several:

  • 401 no token, or revoked or expired;
  • 404 not found, or not yours;
  • 409 not possible now;
  • 422 something missing or wrong;
  • 402 the plan's allowance is used up;
  • 429 too many: 300 requests a minute per token, 200 documents every 10 minutes.

Power Automate

Add bSign to Power Automate as a custom connector in your own Microsoft 365. Flows send from your templates, start on signing events and file the signed PDF.

  1. In bSign, open Settings > API & webhooks and create a token named "Power Automate". Flows act as you.
  2. Download bSign's connector definition and its icon.
  3. In make.powerautomate.com, open Data > Custom connectors > New custom connector > Import an OpenAPI file, name it bSign and choose the definition. On General, upload the icon and set the background colour to #1758c9, then Create connector.
  4. On Test, add a connection and paste your token. The trigger and actions (Send document from template, Download document PDF…) are now in your flows.

Command line? The connector as a zip works with Microsoft's paconn (paconn create --settings settings.json). Share it with colleagues from Power Automate.

Zapier

bSign's Zapier app starts Zaps on document events and sends from your templates as a step in any Zap.

  1. Open bSign's Zapier invitation and accept it with your Zapier account.
  2. In bSign, open Settings > API & webhooks and create a token named "Zapier". Zaps act as you.
  3. In a Zap, choose bSign as a trigger or an action and paste the token when Zapier asks to connect.

bSign is invitation-only in Zapier while Zapier reviews it for their directory.

Questions, or an integration you'd like us to build? support@bsign.ca

bSign

E-signature software built and hosted in Canada.

support@bsign.ca

PRODUCT

FeaturesPricingSecurity and complianceIntegrationsDevelopersSign a PDF freeSwitch from DocuSignCompare bSign

INDUSTRIES

Clinics and healthcareLaw firmsAccounting and bookkeepingProperty and tradesNon-profitsIT providers

COMPANY

ContactPartner programFAQGuidesHelp

LEGAL

Privacy policyTerms of serviceCompliance agreements
© 2026 bSign. All rights reserved. Français Made in Ontario, Canada