Authentication

Authenticate requests using your API key. Include it in the Authorization header as a Bearer token.

Bash
1curl https://api.givepersonhood.com/v1/humanize \2  -H "Authorization: Bearer YOUR_API_KEY" \3  -H "Content-Type: application/json"

Replace YOUR_API_KEY with the hmz_live_… key from your API page.

How it works

Each request to the Personhood API must include your API key. This lets us identify your account, track usage, and apply the correct credit limits.

Your API key is a secret. Keep it server-side and never expose it in client-side code or commit it to source control. If a key leaks, regenerate it from the API page and the old key stops working immediately.

Example request

A complete request sends your text in the JSON body:

Bash
1curl https://api.givepersonhood.com/v1/humanize \2  -H "Authorization: Bearer YOUR_API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "text": "Your text here",6    "persona_id": "maya"7  }'