Authentication
All API requests require an API key. Keys are prefixed with bak_.
Get your API key
- Sign in at browsr.dev
- Go to Settings > API Keys
- Create a new key and copy it
- Export it in your shell:
export BROWSR_API_KEY="bak_..."
caution
The key is only shown once. Store it securely.
Using your API key
Pass your key in any of these headers:
# Bearer token (recommended)
Authorization: Bearer $BROWSR_API_KEY
# ApiKey scheme
Authorization: ApiKey $BROWSR_API_KEY
# x-api-key header
x-api-key: $BROWSR_API_KEY
All examples in this documentation use the $BROWSR_API_KEY environment variable.