/persona-pack:persona-hello-worldfrom persona-pack
Walks through creating a Persona identity verification inquiry, generating an embed URL, and polling for completion status. Useful for learning the Persona API basics or testing a simple KYC flow.
Ships in persona-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
persona-install-auth setupitmpl_*)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",
}
# Create a new inquiry from a template
resp = requests.post(f"{BASE}/inquiries", headers=HEADERS, json={
"data": {
"attributes": {
"inquiry-template-id": "itmpl_YOUR_TEMPLATE_ID",
"reference-id": "user-12345", # Your internal user ID
}
}
})
resp.raise_for_status()
inquiry = resp.json()["data"]
inquiry_id = inquiry["id"]
status = inquiry["attributes"]["status"]
print(f"Inquiry created: {inquiry_id} (status: {status})")
# The inquiry includes a session token for the embedded flow
session_token = inquiry["attributes"].get("session-token")
if session_token:
# Option A: Hosted flow (redirect user to Persona)
hosted_url = f"https://withpersona.com/verify?inquiry-id={inquiry_id}&session-token={session_token}"
print(f"Send user to: {hosted_url}")
# Option B: Embedded flow (JavaScript SDK in your page)
print(f"Embed with: Persona.Client({{ templateId: 'itmpl_...', inquiryId: '{inquiry_id}' }})")
import time
for _ in range(30): # Poll for up to 5 minutes
resp = requests.get(f"{BASE}/inquiries/{inquiry_id}", headers=HEADERS)
resp.raise_for_status()
status = resp.json()["data"]["attributes"]["status"]
print(f" Status: {status}")
if status in ("completed", "approved", "declined"):
break
time.sleep(10)
# Get verification details
if status == "completed":
verifications = resp.json()["data"]["relationships"]["verifications"]["data"]
for v in verifications:
print(f" Verification: {v['type']} — {v['id']}")
# Get detailed verification result
verification_id = verifications[0]["id"]
v_resp = requests.get(f"{BASE}/verifications/{verification_id}", headers=HEADERS)
v_resp.raise_for_status()
v_data = v_resp.json()["data"]["attributes"]
print(f" Check: {v_data['status']}")
print(f" Name: {v_data.get('name-first', 'N/A')} {v_data.get('name-last', 'N/A')}")
| Error | Cause | Solution |
|---|---|---|
422 Unprocessable | Invalid template ID | Verify template ID in Dashboard |
Inquiry stays created | User hasn't started flow | Share the hosted URL with user |
| Empty verifications | Inquiry not completed | Wait for user to complete verification |
404 Not Found | Wrong inquiry ID | Check ID format: inq_* |
persona-core-workflow-apersona-webhooks-eventsWhat SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/persona-ci-integrationCI/CD pipeline for Persona integrations with sandbox API testing.
Use when working with Persona identity verification.
Trigger with phrases like "persona ci-integration", "persona ci-integration".
/persona-common-errorsFix top Persona API errors: 401, 422, webhook signature failures, inquiry state issues.
Use when working with Persona identity verification.
Trigger with phrases like "persona common-errors", "persona common-errors".
/persona-core-workflow-aBuild a complete KYC verification flow with Persona inquiries and embedded UI.
Use when implementing identity verification, building KYC onboarding,
or integrating Persona's hosted flow into your application.
Trigger with phrases like "persona KYC flow", "identity verification",
"persona inquiry workflow", "onboarding verification".
/persona-core-workflow-bWork with Persona verification types: government ID, selfie, database checks.
Use when implementing specific verification checks, reviewing verification results,
or building custom verification workflows.
Trigger with phrases like "persona verification", "government ID check",
"selfie verification", "persona database check", "verification results".
/persona-cost-tuningOptimize Persona verification costs with template selection and caching.
Use when working with Persona identity verification.
Trigger with phrases like "persona cost-tuning", "persona cost-tuning".
/persona-debug-bundleCollect Persona diagnostic info: inquiry IDs, API responses, webhook logs.
Use when working with Persona identity verification.
Trigger with phrases like "persona debug-bundle", "persona debug-bundle".
npx claudepluginhub flight505/skill-forge --plugin persona-packOther plugins' skills for the same job