Create an API Key
Get up and running with the beehiiv API.
The beehiiv API key is used as the Bearer Token for all requests. It enables secure account authentication and should be kept secret at all times.
Building an integration? Use OAuth2 instead of API keys and follow our OAuth2 guide.
Log in to beehiiv.
Best Practices
To prevent unauthorized access to your beehiiv account, we recommend the following best practices:
- Use a unique API key for each application or service.
- Rotate API keys regularly.
- Store API keys securely (we recommend using environment variables).
- API keys should only be exposed on the server side of your application. This includes in your code, in your browser’s console, or in your browser’s local storage. This is especially important for web applications.
- Monitor API key usage and activity.