Agent skill

persona-rate-limits

Handle Persona API rate limits with exponential backoff and request queuing. Use when working with Persona identity verification. Trigger with phrases like "persona rate-limits", "persona rate-limits".

Stars 1,803
Forks 241

Install this agent skill to your Project

npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/persona-pack/skills/persona-rate-limits

SKILL.md

persona rate limits | sed 's/\b(.)/\u\1/g'

Overview

Persona rate limits (varies by plan), backoff on 429, batch inquiry creation, queue-based processing.

Prerequisites

  • Completed persona-install-auth setup
  • Valid Persona API key (sandbox or production)

Instructions

Step 1: Implementation

python
import os, requests

HEADERS = {
    "Authorization": f"Bearer {os.environ['PERSONA_API_KEY']}",
    "Persona-Version": "2023-01-05",
}
BASE = "https://withpersona.com/api/v1"

# Handle Persona API rate limits with exponential backoff and request queuing
resp = requests.get(f"{BASE}/inquiries?page[size]=10", headers=HEADERS)
resp.raise_for_status()
inquiries = resp.json()["data"]
for inq in inquiries:
    print(f"  {inq['id']}: {inq['attributes']['status']}")

Output

  • Persona rate limits (varies by plan), backoff on 429, batch inquiry creation, queue-based processing.

Error Handling

Error Cause Solution
401 Unauthorized Invalid API key Check PERSONA_API_KEY
429 Rate Limited Too many requests Implement backoff
404 Not Found Wrong resource ID Verify ID format

Resources

Next Steps

See related Persona skills for more workflows.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results