How to authenticate with the Barracuda API

The Barracuda API uses API keys to authenticate requests. You can view and manage your API keys by visiting your Dashboard Settings and navigating to Apps/Connections.

Your API keys have admin privileges on your project, so be sure to keep them secure. Always access your keys via an environment variable, and never store them in publicly accessible areas such as GitHub, client-side code, and so forth.

You'll need two headers in order to be properly authenticated with the Barracuda API. The first is Cuda-Version, which specifies the specific API version you're using. For now, we only have a single version of the API, which is 2023-03-10. More information on this can be found in our Versioning Docs

Authentication to the API is performed via Bearer Auth. Simply provide your API key in the header of your request as Authorization: Bearer APIKEY.

Below is an example of headers you'll need to attach to a request to the Barracuda API.

Cuda-Version: "2023-03-10"
Authorization: Bearer {{APIKEY}}