pasbydocs
API reference

API overview

Public API base URLs, versioning, global behavior, and response envelope.

Production: https://l.pasby.africa · Sandbox: https://s.pasby.africa

The public API is available at https://l.pasby.africa (production) and https://s.pasby.africa (sandbox). Use v2 for all new integrations.

Versioning

VersionPathRecommendation
v2/api/v2/...Use for all new integrations
v1/api/v1/...Legacy only — Migration

Unversioned: GET /, GET /api/health/check.

Global platform behavior

BehaviorDetail
Content-Typeapplication/json on POST bodies; SSE returns text/event-stream
CORSEnabled on API routes
Rate limit100 requests / minute / IP — HTTP 429 with plain-text body
Usage meteringCalls with x-api-key and HTTP status below 500 are recorded asynchronously
Billing gateIdentification → authentication billing; signing & document → signature billing. bk-test_ keys skip pre-check
IP forwardingClient IP from cf-connecting-ip, then x-real-ip, then x-forwarded-for

API keys

PrefixEnvironmentBilling pre-check
bk-test_Sandbox (s.pasby.africa)Skipped
bk-live_Production (l.pasby.africa)Enforced

See Credentials & environments.

Response envelope

{
  "status": "successful",
  "reason": "Human-readable summary",
  "cost": 0.5,
  "version": "v2",
  "data": {}
}
FieldDescription
statusOutcome (successful, handled, etc.)
reasonHuman-readable message
costOptional operation cost
versionv1 or v2 echoed by the gateway
dataOperation-specific payload (backend-defined)

Response headers

HeaderWhen
x-access-tokenv1 authorize grant; v2 different-device identification when backend returns a token in data

Resource map

DomainBase pathBilling
Identification/api/{version}/identificationauthentication
Signing/api/{version}/signingsignature
Flow/api/{version}/flownone
Document/api/{version}/documentsignature

Sections

Endpoint index — full route table.

TypeScript SDK

Server-side Node integrations should use @finsel-dgi/pasby. Each namespace maps to the routes above (pasby.identification, pasby.signing, pasby.flows, pasby.docs, pasby.health).