Documentation Index
Fetch the complete documentation index at: https://docs.sendpilot.ai/llms.txt
Use this file to discover all available pages before exploring further.
API Key Authentication
All requests to the SendPilot API must be authenticated using an API key. Include your API key in theX-API-Key header of every request:
Obtaining API Keys
API keys are created through the SendPilot dashboard:- Log in to your SendPilot account
- Navigate to Integrations → API Keys
- Click Create API Key
- Give your key a descriptive name
- Copy and securely store your API key
API Key Security
Best Practices
- Never commit API keys to version control (use environment variables)
- Rotate keys regularly for enhanced security
- Use descriptive names to track which key is used where
- Revoke unused keys through the dashboard
- Monitor usage for unexpected patterns
Storing Keys Securely
Store API keys in environment variables or a secure secrets management system:Error Responses
401 Unauthorized
Returned when authentication fails:- Missing
X-API-Keyheader - Invalid API key
- Revoked API key
403 Forbidden
Returned when authentication succeeds but you lack permission:- API key belongs to a different workspace
- Trying to access another user’s resources