Skip to main content

API Key Authentication

All API requests must include your API key in the request header.
Keys are prefixed bw_ followed by 32 random characters. There is no separate test/live key — every key is live and bills against your credit balance.

Getting Your API Key

1
2

Copy Your API Key

Your API key is displayed on the dashboard. Copy it to use in your requests.

Security Best Practices

Do's

  • Store API keys in environment variables
  • Use HTTPS for all requests
  • Rotate keys periodically
  • Use different keys for different environments
  • Monitor usage for anomalies

Don'ts

  • Commit API keys to version control
  • Share keys publicly or in logs
  • Use keys in client-side JavaScript
  • Reuse keys across environments
  • Share keys via email or chat

Environment Variables

Store your API key securely using environment variables:
.env
app.js

Authentication Errors

Error Response
Keys do not expire on their own. A key stops working only if it is regenerated, the account is suspended, or the subscription lapses.

Key Rotation

For enhanced security, you can regenerate your API key periodically:
1

Regenerate Key

Click “Regenerate” in the dashboard to create a new API key. This will immediately invalidate your current key.
2

Update Your Application

Update your environment variables with the new key.
3

Test

Verify your application works with the new key.
Regenerating your API key will immediately invalidate the old one. Make sure to update all your applications before regenerating.