Authentication
All API requests require a Bearer token in the Authorization header. You can generate an API key from your PostHero dashboard under Settings > API.
Example header
Authorization: Bearer pk_your_api_key_here
Example request
curl --request GET \ --url https://server.posthero.ai/api/v1/accounts \ --header 'Authorization: Bearer pk_your_api_key_here'
Important Notes
- •API keys start with pk_ and are tied to your account.
- •Keep your API key secret — do not share it in client-side code or public repositories.
- •If your key is compromised, rotate it immediately from Settings > API.
- •All requests without a valid key will return a 401 Unauthorized error.