API · v1 (Beta)

The Alba 365 API

REST API for every PDF action — edit, sign, convert, OCR, redact, protect. Webhooks for downstream automation. TypeScript and Python SDKs in beta.

Quickstart

# 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.

Endpoint reference

Full OpenAPI spec at api.alba365.com/v1/openapi.json when v1 ships out of beta.

POST/v1/documents
GET/v1/documents/:id
POST/v1/documents/:id/edit
POST/v1/documents/:id/sign
POST/v1/documents/:id/convert
POST/v1/documents/:id/ocr
POST/v1/documents/:id/redact
POST/v1/documents/:id/protect
POST/v1/documents/:id/merge
DELETE/v1/documents/:id
GET/v1/webhooks
POST/v1/webhooks

Webhooks

Subscribe to events and we'll POST to your endpoint when they fire. Events available:

  • document.created
  • document.opened
  • document.signed
  • document.completed
  • document.declined
  • document.deleted
  • ocr.completed
  • conversion.completed

Every webhook is signed with HMAC-SHA256. Verify with theX-Alba-Signature header.

SDKs

TypeScript / JavaScript

Beta
npm install @alba365/sdk

Python

Beta
pip install alba365

Go

Coming soon
go get github.com/alba365/sdk-go

Ruby

Coming soon
gem install alba365

Build something with Alba 365

Free tier includes 100 API calls / month so you can prototype without a card.

API Docs · Alba 365 · Alba 365 PDF Editor