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
/api/v1/signatures/signatures:writeThe 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"import os, requests
with open("contract.pdf", "rb") as fh:
res = requests.post(
"https://api.billora.app/api/v1/signatures/",
headers={"Authorization": f"Bearer {os.environ['BILLORA_API_KEY']}"},
files={"pdf_file": ("contract.pdf", fh, "application/pdf")},
data={
"title": "Services agreement 2027",
"document_type": "contract",
"signer_name": "Lucía Ortega",
"signer_email": "lucia@ortegaasesores.es",
"delivery_method": "email",
},
timeout=60,
)
signature = res.json()| Field | Description |
|---|---|
title, pdf_file, signer_name | Required. |
signer_email, signer_phone | Depending on the delivery channel. |
delivery_method | email, sms or both. SMS uses the organization's SMS credits. |
document_type | quote, invoice, contract, consent, expediente_doc, clinical_doc, other. |
message, expires_at | Message for the signer and expiry. |
case, patient | Link 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:
/api/v1/signatures/{id}/send/signatures:writeSends 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.
| Operation | Endpoint |
|---|---|
| Reminder | POST /signatures/{id}/remind/ |
| Cancel | POST /signatures/{id}/cancel/ |
| List / filter | GET /signatures/?status=&document_type=&delivery_method=&case=&patient= |
| Statistics | GET /signatures/stats/ |
Downloading the result
| Resource | Endpoint |
|---|---|
| Original document | GET /signatures/{id}/document/ |
| Signed PDF | GET /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.
