Overview
The CardClan Integration API uses Bearer token authentication for secure access to all endpoints. You’ll need to generate an integration key from your CardClan dashboard and include it in the Authorization header of your API requests.Generating Your Integration Key
1
Access Your CardClan Dashboard
Log in to your CardClan account and navigate to any card you want to use for integration
2
Generate Key
Click “Generate Integration Key” if you don’t already have one
3
Secure Storage
Copy and securely store your integration key - you won’t be able to see it again
Using Your Integration Key
Include your integration key in theAuthorization header of every API request:
Key Format
CardClan integration keys are UUID-based tokens:- Format:
550e8400-e29b-41d4-a716-446655440000 - Length: 36 characters including hyphens
- Case: Case-sensitive
Authentication Flow
Testing Authentication
You can test your authentication setup using the validation endpoint:Common Authentication Errors
401 Unauthorized - Missing Authorization Header
401 Unauthorized - Missing Authorization Header
401 Unauthorized - Empty Bearer Token
401 Unauthorized - Empty Bearer Token
404 Not Found - Invalid Token
404 Not Found - Invalid Token
Error:
Invalid bearer token - user not foundSolution: Verify your integration key is correct and hasn’t been regenerated. Generate a new key if needed.Next Steps
Now that you have authentication set up:- Learn about merge tags for personalization
- Explore the API reference for detailed endpoint documentation