Authentication
You'll need to authenticate your requests to access any of the endpoints in the Repurai API. We currently support authentication via API Keys, which can be managed directly from your account.
API Keys
The primary way to authenticate with the Repurai API is by using an API Key. You can generate and manage your API keys in your Account Dashboard.
To authenticate using an API key, include it in the X-API-Key header of your request:
curl https://api.repur.ai/v1/feeds \
-H "X-API-Key: {your_api_key}"
Keep your API keys secret. Do not share them in publicly accessible areas such as GitHub, client-side code, and so forth.
Bearer Tokens
For legacy integrations or specific OAuth2 flows, we also support Bearer tokens. If you are using a Bearer token, include it in the Authorization header:
Authorization: Bearer {your_token}
Security Best Practices
- Rotate regularly: We recommend rotating your API keys every 90 days.
- Environment Variables: Always store your keys in server-side environment variables (
.env). - One-time Visibility: For security, Repurai only shows your full API key once upon creation. Ensure you save it immediately in a secure vault.