Skip to main content

Quickstart (API)

Use this guide to get an API key and make your first request to the RevenueBase API.

Step 1: Get your API key

  1. Sign in to the RevenueBase dashboard.
  2. Open SettingsAPI Keys.
  3. Click Create API key and copy the key. Store it securely; you cannot view it again.
Keep your API key secret. Do not commit it to version control or expose it in client-side code.

Step 2: Authenticate requests

Send your API key in the x-key header on every request:
curl -X GET "https://api.revenuebase.ai/v1/credits" \
  -H "x-key: YOUR_API_KEY"

Step 3: Call an endpoint

Example: check your credit balance:
curl -X GET "https://api.revenuebase.ai/v1/credits" \
  -H "x-key: YOUR_API_KEY"
Example response:
{
  "credits": 1000
}

Next steps