API Key Authentication
The Reap Automation API uses API key authentication. You’ll need to include your API key in theAuthorization header of every request.
Getting Your API Key
- Log in to your Reap dashboard
- Navigate to Profile > Settings > API Keys
- Click Create a Secret Key
- Give your key a descriptive name. This is only for your reference.
- Optionally, set an expiration date for the key. Keys are not expired by default.
- Click Create Key to generate the API key.
- Copy the generated API key (store it securely - you won’t be able to see it again)
Keep your API key secure! Don’t commit it to version control or share it publicly. Store it in environment variables or a secure configuration management system.
Making Authenticated Requests
Include your API key in theAuthorization header with the Bearer prefix:
Authentication Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer YOUR_API_KEY | Yes |
Content-Type | application/json | Yes |
API Key Management
Security Best Practices
Environment Variables
Store your API key in environment variables rather than hardcoding it in your application.
Regular Rotation
Rotate your API keys regularly for enhanced security.
Least Privilege
Use separate API keys for different environments (development, staging, production).
Monitor Usage
Monitor your API key usage to detect any unauthorized access.
Key Expiration
API keys do not expire by default. You can:- Set custom expiration dates when creating keys
- Create non-expiring keys (recommended for production)
- Monitor expiration dates in your dashboard
- Revoke keys at any time
Revoking API Keys
To revoke an API key:- Go to Profile > Settings > API Keys in your dashboard
- Find the key you want to revoke
- Click Revoke or Delete
Revoking an API key immediately invalidates all requests using that key. Make sure to update your applications before revoking keys.
Rate Limiting
All API requests are subject to rate limiting:- 10 requests per minute per API key
- Rate limit headers are included in all responses
- Exceeding limits returns a
429 Too Many Requestserror
Rate Limit Headers
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per minute |
X-RateLimit-Remaining | Remaining requests in current window |
X-RateLimit-Reset | Time when rate limit resets (Unix timestamp) |
Error Responses
Authentication Errors
| Status Code | Error | Description |
|---|---|---|
401 | Unauthorized | Missing or invalid API key |
403 | Forbidden | API key doesn’t have required permissions |
429 | Too Many Requests | Rate limit exceeded |