Getting Started
Authentication
Set up API key authentication for the Cue API.
All API requests require authentication using an API key. You'll pass the key in the Authorization header as a Bearer token.
Get your API key
- Log in to the Cue dashboard
- Go to Settings → API
- Click New Key
- Give it a name (e.g., "n8n production")
- Copy the key immediately - you won't see it again
Use your API key
Include the key in the Authorization header of every request:
curl https://api.oncue.so/v1/posts \
-H "Authorization: Bearer cue_sk_your_key_here"const response = await fetch("https://api.oncue.so/v1/posts", {
headers: {
Authorization: "Bearer cue_sk_your_key_here",
},
});Key format
API keys follow this format:
cue_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxcue_sk_- Fixed prefix identifying Cue API keys- 32 alphanumeric characters - The unique key value
Security best practices
- Never commit keys - Use environment variables, not hardcoded strings
- Use separate keys - Create different keys for development and production
- Rotate regularly - Revoke and recreate keys periodically
- Limit access - Only share keys with people who need them
Revoking keys
If a key is compromised:
- Go to Settings → API
- Find the compromised key
- Click the trash icon to revoke it
- Create a new key and update your integrations
Revoked keys stop working immediately.