| name | persona-hello-world |
| description | Create your first Persona identity verification inquiry and check its status.
Use when learning Persona API basics, testing inquiry creation,
or building a simple verification flow.
Trigger with phrases like "persona hello world", "first persona inquiry",
"persona quick start", "test identity verification".
|
| allowed-tools | Read, Write, Edit, Bash(curl:*) |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","persona","identity","kyc","getting-started"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Persona Hello World
Overview
Create a Persona inquiry, generate an embed URL for the verification flow, and poll for the inquiry status. Uses the real Persona REST API with sandbox credentials.
Prerequisites
- Completed
persona-install-auth setup
- An Inquiry Template ID from the Persona Dashboard (format:
itmpl_*)
Instructions
Step 1: Create an Inquiry
import os, requests
API_KEY = os.environ["PERSONA_API_KEY"]
BASE = "https://withpersona.com/api/v1"
HEADERS = {
"Authorization": f"Bearer {API_KEY}",
"Persona-Version": "2023-01-05",
"Content-Type": "application/json",
}
resp = requests.post(f"{BASE}/inquiries", headers=HEADERS, json={
"data": {
"attributes": {
"inquiry-template-id": "itmpl_YOUR_TEMPLATE_ID",
"reference-id": "user-12345",
}
}
})
resp.raise_for_status()
inquiry = resp.json()["data"]
inquiry_id = inquiry["id"]
status = inquiry["attributes"]["status"]
print(f"Inquiry created: {inquiry_id} (status: {status})")
Step 2: Get the Verification URL
session_token = inquiry["attributes"].get("session-token")
if session_token:
hosted_url =
()
()