Skip to main content

API Keys

All API requests require authentication using an API key passed in the x-api-key header.

Getting Your API Key

  1. Visit developers.webacy.co to sign up
  2. Generate your API key
  3. Copy and securely store your key
Keep your API key secure. Do not expose it in client-side code or public repositories.

Troubleshooting API key creation

If you hit an error while creating a key on developers.webacy.co, try the steps below before contacting support. If the issue continues after these steps, contact Webacy support with the exact error message and a timestamp.

Using Your API Key

Include your API key in the x-api-key header with every request:

Example Requests

Authentication Errors

Example Error Response

Best Practices

Store your API key in environment variables, not in your code.
  • Rotate keys periodically - Create a new key, move your traffic, then revoke the old one (see Rotate and Revoke API Keys)
  • Use separate keys - Maintain different keys for development, staging, and production
  • Monitor usage - Check the API Usage endpoint regularly
  • Revoke compromised keys - If a key is exposed, create a replacement and revoke the exposed key in the Developer Portal right away
  • Server-side only - Never expose your API key in client-side code or mobile apps