API Authentication
Learn how to authenticate your API requests with GitFables.
Overview
All API requests to GitFables require authentication using an API key.
API authentication ensures:
- Only authorized applications can access your data
- Secure communication between systems
- Proper request tracking and rate limiting
- Access control based on permissions
Getting an API Key
Generate your API key through the GitFables dashboard.
- Log in to your GitFables dashboard
- Go to Settings > API Keys
- Click "Generate New API Key"
- Give your key a name and select permissions
- Copy and securely store your API key
⚠️ Your API key will only be shown once. If you lose it, you'll need to generate a new one.
Using Your API Key
Include your API key in the Authorization header of your requests.
Authorization Header Format:
Authorization: Bearer your-api-key
API Authorization Header Format
Example Request:
curl -X GET \
https://api.gitfables.com/v1/stories \
-H "Authorization: Bearer your-api-key"
Example API Request with Authorization
API Key Security
Follow these security best practices to protect your API keys.
Never share your API key or commit it to version control
Use environment variables to store your API key
Rotate your API keys periodically
Use different API keys for development and production
Rate Limiting
API requests are rate limited based on your plan.
Free
100 requests per hour
Pro
1,000 requests per hour
Enterprise
Custom limits
Rate limit information in response headers:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1640995200
Rate limit headers example