Skip to main content

Authentication

All API requests require an API key. Keys are prefixed with bak_.

Get your API key

  1. Sign in at browsr.dev
  2. Go to Settings > API Keys
  3. Create a new key and copy it
  4. 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.