Persona identity verification bindings for agentic KYC/KYB onboarding: create an inquiry (or a KYB transaction), wait for the webhook, review what Persona found, then decide.
::persona::inquiriescreates, reads, lists, updates, approves, declines, marks for review, expires, resumes and redacts inquiries, and builds hosted-flow links::persona::accountsmanages the accounts inquiries attach to::persona::verificationsreads verifications by id or type, and lists the ones on an inquiry::persona::reportsruns watchlist, PEP, adverse media and business reports, and re-runs monitored ones::persona::casescreates, assigns and resolves review cases::persona::documentsreads document metadata and downloads files::persona::transactionsruns API-first KYB (and other) transactions::persona::eventslists and reads events::persona::webhooksverifiesPersona-Signature, parses events, and manages webhook endpoints::persona::decisionsnormalizes inquiry, report, verification, transaction and case statuses toapproved | declined | needs-review | pending | failed, with reasons::persona::apiholds the transport, JSON:API helpers, cursor pagination and thecallescape hatch
Setup: context variables
persona.api.key: a sandbox (persona_sandbox_...) or production (persona_production_...) API key. Both use the same host; the key picks the environment.persona.api.version: optional, overrides thePersona-Versionheader (default::persona/API_VERSION)persona.key-inflection: optional,kebab(default),snakeorcamelpersona.webhook.secret: the webhook endpoint's secret (wbhsec_...)
Quick start
::inquiries ::persona::inquiries
::decisions ::persona::decisions
inquiry ::inquiries/create-inquiry("itmpl_...", {reference-id: "user-42"})
link ::inquiries/generate-one-time-link(inquiry.data.id)
// send link.meta.one-time-link to the user; wait for the inquiry webhook
later ::inquiries/get-inquiry(inquiry.data.id, {include: ["verifications"]})
::decisions/inquiry-decision(later)
// => {decision: "approved", status: "approved", reasons: [], ...}
Values
API_VERSION
API_VERSION: Str "2026-09-29"
The Persona-Version this package is written against (the latest
release as of Nov 2026), sent on every request so responses don't
depend on the API key's default version. Override per project with
the persona.api.version context variable, or per call with
{persona-version: ...} in the trailing options.
See https://docs.withpersona.com/versioning.
BASE_URL
BASE_URL: Str "https://api.withpersona.com/api/v1"
Persona API base URL (no trailing slash). Sandbox and production share it; the API key selects the environment.
DEFAULT_PAGE_SIZE
DEFAULT_PAGE_SIZE: Int 100
HOSTED_FLOW_URL
HOSTED_FLOW_URL: Str "https://inquiry.withpersona.com/verify"
The Persona hosted flow (inquiry is the default subdomain; organizations can customize it).