Get Your API Token
- Log in to your Inbox dashboard at inboxapp.com
- Navigate to Settings → API Keys
- Click Generate New Token
- Copy the token immediately — you won’t see it again
Using the Token
Include your token in theAuthorization header of every request:
Environment Variable Setup
Making Requests
Common Errors
401 Unauthorized
Token is missing, invalid, or expired.- Check for typos or extra whitespace in your token
- Verify the
Authorizationheader format:Bearer YOUR_TOKEN - Generate a new token if yours has been revoked
403 Forbidden
Token is valid but lacks permission.- Verify the resource belongs to your team
- Check if your plan includes the requested feature
Security Best Practices
Use Environment Variables
Never hardcode tokens. Load from environment variables or a secrets manager.
Rotate Regularly
Generate new tokens periodically. Revoke old ones in your dashboard.
Server-Side Only
Never expose tokens in client-side code, mobile apps, or public repositories.
Monitor Usage
Review API logs in your dashboard to detect unusual activity.