I'm getting: {"error":"Invalid Gamma API key. Please check that your API key is correct and has the necessary permissions. You can find your API key in Gamma under Settings → API Access.","details":"The API key should start with 'sk-gamma-' and be about 52 characters long.","gammaResponse":{"message":"Invalid API key","statusCode":401}} Here are my keys below: Some assistance would be tremendous, thank you.
Hey Hayk! I see you're hitting a 401 authentication error - this is usually a quick fix once we identify where the API key configuration is going wrong. Let me gather some details to pinpoint the issue: Platform Check Which tool are you using - Zapier, Make, N8N, or custom code? Each one handles headers slightly differently. Headers Configuration The most common cause is sending the API key as Authorization: Bearer sk-gamma-xxxxx instead of using the X-API-KEY header. Can you confirm you're using:
Header name: X-API-KEY
Header value: sk-gamma-your-actual-key
Full Request Details Could you share:
Your complete request body (what you're sending to our API)
A screenshot or video of your headers setup
The full URL you're calling (should be https://public-api.gamma.app/v0.2/generations)
Quick Verification Your API key format looks correct (starting with sk-gamma- and proper length), so it's likely the header configuration rather than the key itself. A Loom video showing your complete setup would be ideal - it helps me see exactly how your headers are configured and saves us the back-and-forth troubleshooting. A lot of auth issues come down to that Bearer vs X-API-KEY difference, but I want to make sure we catch any other configuration issues too.
