Digital signature

Send PDF documents for signature by email or SMS, track their status and download the signed PDF, the evidence and the certificate.

With digital signature you send a PDF to someone so they can sign it from their phone or computer. Once signed, Billora produces the signed PDF, the evidence (date, IP, browser, geolocation and SHA-256 hashes) and a certificate. It requires the plan's digital signature module (otherwise 403 module_not_available).

Scopes: signatures:read / signatures:write.

Create and send a request

POST/api/v1/signatures/signatures:write

The request is created with multipart/form-data, with the PDF in the pdf_file field:

curl https://api.billora.app/api/v1/signatures/ \
  -H "Authorization: Bearer $BILLORA_API_KEY" \
  -H "Idempotency-Key: signature-contract-318-v1" \
  -F "pdf_file=@contract.pdf;type=application/pdf" \
  -F "title=Services agreement 2027" \
  -F "document_type=contract" \
  -F "signer_name=Lucía Ortega" \
  -F "signer_email=lucia@ortegaasesores.es" \
  -F "delivery_method=email" \
  -F "expires_at=2026-11-30T23:59:00+01:00"
bash
FieldDescription
title, pdf_file, signer_nameRequired.
signer_email, signer_phoneDepending on the delivery channel.
delivery_methodemail, sms or both. SMS uses the organization's SMS credits.
document_typequote, invoice, contract, consent, expediente_doc, clinical_doc, other.
message, expires_atMessage for the signer and expiry.
case, patientLink the signature to a case or a clinic patient.

The request is created as a draft (status: draft). Statuses: draft, pending, viewed, signed, declined, expired, cancelled. To send it to the signer:

POST/api/v1/signatures/{id}/send/signatures:write

Sends the email and/or SMS and leaves the request pending. If the delivery provider fails, the API returns 502 delivery_failed and you can retry.

OperationEndpoint
ReminderPOST /signatures/{id}/remind/
CancelPOST /signatures/{id}/cancel/
List / filterGET /signatures/?status=&document_type=&delivery_method=&case=&patient=
StatisticsGET /signatures/stats/

Downloading the result

ResourceEndpoint
Original documentGET /signatures/{id}/document/
Signed PDFGET /signatures/{id}/signed-pdf/
Evidence certificate (PDF)GET /signatures/{id}/certificate/
Evidence (JSON)GET /signatures/{id}/evidence/ → signed_at, signer_ip, signer_user_agent, signer_browser, geolocation, signed_pdf_hash…

The signed PDF and the certificate return 404 until the request is signed. The easiest approach is to wait for the signature.completed webhook and download them then.

Events

signature.sent, signature.viewed, signature.completed, signature.declined, signature.expired and signature.cancelled. See webhooks.