Authentication
How to obtain and use a Blueticks API key.
The Blueticks API uses bearer-token authentication. Every request must
include a valid API key in the Authorization header.
Obtaining a key
- Sign in to app.blueticks.co.
- Open Settings → API keys.
- Click Create key. Copy the value immediately — you won't see it again.
Keys start with bt_live_ (production) or bt_test_ (test mode).
Using a key
HTTP
GET /v1/account HTTP/1.1
Host: api.blueticks.co
Authorization: Bearer bt_live_...SDKs
All three official SDKs read BLUETICKS_API_KEY from the environment as
a default. You can also pass a key explicitly at construction time:
from blueticks import Blueticks
client = Blueticks(api_key="bt_live_...")import { Blueticks } from "blueticks";
const client = new Blueticks({ apiKey: "bt_live_..." });use Blueticks\Blueticks;
$client = new Blueticks(['apiKey' => 'bt_live_...']);Rotating keys
- In the dashboard, create a new key.
- Roll the new key out across your fleet.
- Revoke the old key from the dashboard once you've confirmed traffic has moved.
Revoked keys return 401 authentication_required on every request.
Environment conventions
BLUETICKS_API_KEY— the key itself.BLUETICKS_BASE_URL— override the API base URL (default:https://api.blueticks.co). Useful for staging or self-hosted environments.
Both are honored by every official SDK.
Key prefixes
Keys expose only their first ~10 characters in API responses (see the
key_prefix field on /v1/ping). Safe to log.