Authentication Methods
Bearer Token (JWT)
For authenticated user requests, use Bearer token authentication. Include the JWT token in theAuthorization header:
- Authenticated user requests
- Requests from the CreatorCommerce dashboard
- User-initiated API calls
API Key Authentication
For server-to-server communication, use API key authentication via custom headers:- Server-to-server integrations
- Partner API access
- Channel-specific operations
Getting Your Credentials
JWT Tokens
JWT tokens are obtained through the CreatorCommerce authentication flow. These tokens are typically short-lived and should be refreshed as needed.API Keys
API keys are provided when you:- Set up a channel integration
- Register as a partner
Security Best Practices
- Never commit credentials to version control - Store API keys and tokens in environment variables or secure secret management systems
- Use HTTPS only - All API requests must use HTTPS
- Rotate keys regularly - Periodically rotate your API keys for security
- Use the principle of least privilege - Only request the permissions you need
- Monitor token expiration - Implement proper token refresh logic for JWT tokens
Example Requests
Using Bearer Token
Using API Key
Error Responses
If authentication fails, you’ll receive a401 Unauthorized or 403 Forbidden response: