API keys provide programmatic access to the Blink API. Use them to integrate Blink with your CI/CD pipelines, scripts, or other automation tools.
Creating API Keys
Create API keys through the Blink web UI:
- Navigate to your *User settings (top right corner)
- Go to Settings → API Keys
- Click Create API Key
- Optionally provide a name for the key
- Copy and save the key immediately
The full API key is shown only once during creation. Store it securely as you cannot retrieve it later.
API keys follow this format:
bk - Fixed prefix identifying Blink API keys
lookup - 12-character identifier
secret - 32-character secret
Using API Keys
Include the API key in the Authorization header:
curl -H "Authorization: Bearer bk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
https://blink.example.com/api/users/me
Key Properties
Each API key has:
| Property | Description |
|---|
| Name | Optional friendly name for identification |
| Permissions | Access level (currently all keys have full access) |
| Created | When the key was created |
| Last Used | When the key was last used for authentication |
| Expires | Expiration date (default: 1 year from creation) |
Revoking API Keys
Revoke API keys that are no longer needed or may have been compromised:
- Navigate to Settings → API Keys
- Find the key you want to revoke
- Click the Revoke button
Revoked keys are immediately invalidated and cannot be restored.