Authentication
All JamBase Data API requests require authentication using a Bearer token.
Getting an API Key
There are two ways get a JamBase Data API key:
- Start a free trial for immediate access
- Subscribe to a plan for production use
Manage your keys in your account dashboard.
Required Headers
All API requests must include two request headers:
AuthorizationBearer tokenUser-AgentYour app identifier
curl -X GET "https://api.data.jambase.com/v3/events" \-H "Authorization: Bearer YOUR_API_KEY" \-H "Accept: application/json" \-H "User-Agent: JamBaseData-Sandbox/1.0"
Keeping Your Key Secure
- Keep your API key secret — never expose it in client-side code, public repositories, or browser requests
- Use environment variables — store keys outside your codebase to prevent accidental exposure
- Rotate keys if compromised — generate a new key from your dashboard immediately if exposure is suspected
Authentication Errors
When authentication fails, the API returns standard HTTP error codes with details.
| Status | Error Type | Details |
|---|---|---|
401 | unauthorized | CauseThe API key is missing, malformed, or not recognized. FixVerify your Authorization header uses the format: Authorization: Bearer YOUR_API_KEY. Check the key for typos. |
key-revoked | CauseThe API key has been revoked and can no longer be used. FixGenerate a new API key from your dashboard. | |
key-expired | CauseThe API key has expired. FixGenerate a new API key from your dashboard. | |
subscription-inactive | CauseThe subscription associated with this API key is no longer active. FixReactivate your subscription to restore API access. | |
subscription-not-found | CauseNo subscription is linked to this API key. FixGenerate a new API key from an active subscription, or contact support. | |
trial-expired | CauseThe trial period for this API key has ended. FixSubscribe to a paid plan to continue access. | |
403 | forbidden | CauseAccess to this resource is not allowed with your current permissions. FixCheck that your API key has the required permissions. |
subscription-required | CauseNo active subscription found for this API key. FixSubscribe to a plan to access the API. | |
plan-feature-required | CauseThis feature requires a higher-tier plan. FixUpgrade your plan to access this feature. | |
date-window-exceeded | CauseThe requested start date is beyond your plan's future date window. End dates past the window are shortened to the plan limit instead of returning this error. FixUpgrade your plan for extended date access, or use a closer start date. | |
historical-window-exceeded | CauseThe requested past date is before your subscription's past-events window. The window comes from your plan, or from your agreement on Enterprise and custom-window subscriptions. FixUse a date on or after the minDate in the response. On a standard plan window, upgrade for longer access. On Enterprise or a window set in your agreement, contact your account manager to change it. |
See Error Handling for more guidance.
Next Steps
- Attribution — required attribution guidelines
- Rate Limits — quotas and usage monitoring
- Sample Requests — real API calls with copy-paste examples
Last updated Mar 1, 2026