REST API for every PDF action — edit, sign, convert, OCR, redact, protect. Webhooks for downstream automation. TypeScript and Python SDKs in beta.
# Sign in to get your API key at /settings/api
curl -X POST https://api.alba365.com/v1/documents \
-H "Authorization: Bearer alba_sk_..." \
-H "Content-Type: application/pdf" \
--data-binary @contract.pdf
# Convert a PDF to Word
curl -X POST https://api.alba365.com/v1/documents/doc_abc/convert \
-H "Authorization: Bearer alba_sk_..." \
-d '{"format": "docx"}'
# Send for signature
curl -X POST https://api.alba365.com/v1/documents/doc_abc/sign \
-H "Authorization: Bearer alba_sk_..." \
-d '{
"signers": [{"email": "alice@example.com", "name": "Alice"}],
"fields": [{"page": 1, "x": 100, "y": 200, "type": "signature"}]
}'All endpoints accept and return JSON. Document uploads stream as rawapplication/pdf bytes. Errors are 4xx / 5xx with a JSON{ error: { code, message } }shape.
Full OpenAPI spec at api.alba365.com/v1/openapi.json when v1 ships out of beta.
/v1/documentsUpload a new PDF/v1/documents/:idFetch document metadata/v1/documents/:id/editApply edits programmatically/v1/documents/:id/signSend for signature/v1/documents/:id/convertConvert to Word, Excel, PowerPoint, JPG/v1/documents/:id/ocrRun OCR on a scanned PDF/v1/documents/:id/redactPattern-based or coordinate-based redaction/v1/documents/:id/protectAES-256 with open + permissions passwords/v1/documents/:id/mergeMerge with another document/v1/documents/:idDelete the document and all derivatives/v1/webhooksList configured webhooks/v1/webhooksRegister a webhook endpointSubscribe to events and we'll POST to your endpoint when they fire. Events available:
document.createddocument.openeddocument.signeddocument.completeddocument.declineddocument.deletedocr.completedconversion.completedEvery webhook is signed with HMAC-SHA256. Verify with theX-Alba-Signature header.
npm install @alba365/sdkpip install alba365go get github.com/alba365/sdk-gogem install alba365Free tier includes 100 API calls / month so you can prototype without a card.