- Bearer Token
- API Key
- CLI Login
Issued on login. Carries full user-level permissions within the organization — suited for frontend apps and dashboard interactions.
Session tokens expire. For long-running server processes, use API keys instead.
Permission Scopes
Requests outside granted scopes return403 Forbidden. Grant only what your integration needs.
Rate Limiting
Limits are enforced per API key and per user session. Exceeding the limit returns429 Too Many Requests. Implement exponential backoff — start at 1 second, double on each retry, cap at 60 seconds.
Error Reference
Best Practices
Use API keys for all automation
Use API keys for all automation
Never embed session tokens in scripts or CI/CD pipelines. Session tokens are user-bound and expire — API keys are designed for programmatic access and don’t expire unless revoked.
Scope to minimum permissions
Scope to minimum permissions
A key that only needs
posts:read should not have posts:write. Reducing scope limits blast radius if a key is compromised.Store keys in a secrets manager
Store keys in a secrets manager
Use environment variables, AWS Secrets Manager, 1Password Secrets Automation, or Doppler. Never commit a key to source control — even in a private repo.
Rotate keys on a schedule
Rotate keys on a schedule
Revoke and recreate API keys periodically. Revoke immediately if a key is ever exposed — revocation is instant and permanent.
Quickstart
Create your first API key and publish a post in 5 minutes.
API Reference
Full endpoint reference with auth examples on every request.
API Keys endpoint
Create, list, update, and revoke keys programmatically.
MCP Server
Use Autoposting from Claude with automatic auth handling.

