Authentication

Authentication

Analytics API requests require a valid API key passed in the Authorization header as a Bearer token.

Creating an API key

  1. Log in to the Autolane Portal
  2. Navigate to Organization Settings > API Keys
  3. Click Create API Key
  4. Enter a name for your key (e.g., “Analytics Integration”)
  5. Select the analytics:read permission
  6. Click Create and copy the key — it is only shown once

Using your API key

Include the key as a Bearer token in every request:

$curl -H "Authorization: Bearer YOUR_API_KEY" \
> "https://api.goautolane.com/api/analytics/metrics?siteId=YOUR_SITE_ID&period=today"

Finding your Site ID

Your Site ID is a UUID visible in the Autolane Portal URL when viewing a site:

https://portal.goautolane.com/sites/87654321-4321-4321-4321-210987654321
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is your Site ID

Rate limits

API key requests share the same per-organization rate limit as dashboard requests. If you receive a 429 response, wait before retrying. Rate limit details are included in response headers.

Key management

You can view and revoke API keys at any time from the API Keys page in your organization settings. Revoked keys immediately stop working.