Authentication

Authenticate with the RevKeen API using API keys

The RevKeen API uses Bearer token authentication. Include your API key in theAuthorization header of every request.

Making Authenticated Requests

curl -X GET "https://api.revkeen.com/v1/customers" \
  -H "Authorization: Bearer rk_live_your_api_key"

API Key Formats

RevKeen provides two types of API keys for different environments:

Key TypePrefixEnvironmentUse Case
Live Keyrk_live_ProductionReal transactions, live customers
Test Keyrk_test_SandboxDevelopment, testing, demos
Never use live keys in development environments. Test keys are completely isolated and don't affect real data.

API Key Scopes

API keys can be restricted to specific scopes for enhanced security. This allows you to create limited-access keys for different services.

ScopeDescription
customers:readRead customer data
customers:writeCreate, update, delete customers
products:readRead product data
products:writeCreate, update, delete products
subscriptions:readRead subscription data
subscriptions:writeCreate, cancel, pause subscriptions
invoices:readRead invoice data
invoices:writeCreate, update, send invoices
webhooks:readRead webhook configurations
webhooks:writeCreate, update, delete webhooks
checkout:writeCreate checkout sessions
payments:readRead payment data
payments:writeProcess refunds
finance:readRead financial reports
settings:readRead account settings
settings:writeUpdate account settings
Create separate API keys with minimal scopes for each service or integration to limit potential damage if a key is compromised.

Security Best Practices

Use environment variables

Store API keys in environment variables, not in code

Rotate keys regularly

Create new keys periodically and revoke old ones

Use minimal scopes

Only request the permissions your integration needs

Monitor API usage

Review API logs in your dashboard for suspicious activity

Never commit keys to version control

Use .gitignore to exclude .env files

Never expose keys in client-side code

API keys should only be used server-side

Rate Limiting

The API enforces rate limits to ensure fair usage. Current limits:

PlanRequests/minuteRequests/day
Starter10010,000
Pro500100,000
Enterprise2,000Unlimited
Rate limit headers are included in every response: X-RateLimit-Limit,X-RateLimit-Remaining, and X-RateLimit-Reset.

Next Steps