Concepts
Flows & request IDs
Create, track, and cancel identification and signing journeys.
A flow is the journey between your app starting a request and the user completing or cancelling it.
Lifecycle
- Create —
POSTto identification, signing, or document endpoint. - User action — User completes in pasby app, via deep link, or QR (
wildcard). - Observe —
POST /api/v2/flow/ping,GET /api/v2/flow/sse, or webhook (forsign). - Terminal — Claims populated,
signaturepresent, orcancelled: true. - Cancel (optional) —
POST /api/v2/flow/cancelif the user abandons your UI.
Flow identifiers often use the req_ prefix. Store the id from the create response and pass it as request in ping and cancel.
Ping response fields (typical)
| Field | Notes |
|---|---|
requester | Consumer (organisation) id |
requestee | User NIN when assigned |
onsession | User’s pasby device picked up the flow |
cancelled | Flow was cancelled |
claims | Encrypted object when identification completes |
signature | Present when signing completes |
signedAt | Timestamp when signature recorded |
iat | Flow created at (unix) |
Encrypted claim strings must be decrypted with your app private key — not read as plain text. See Flow lifecycle for polling intervals, SSE, and sample responses.