Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Email Gateway Defense
Results will update as you type.
  • Release Notes
  • Upcoming Change with Admin Sender Policies to Override User Policies
  • How to Protect Against Gateway Bypass and Direct Send Risks
  • Getting to Know Email Gateway Defense
  • Getting Started
  • Moving from Barracuda Email Security Gateway to Email Gateway Defense
  • How the Service Works
  • Email Gateway Defense IP Ranges Used for Configuration
  • Partner Accounts
  • Sender Policy Framework for Outbound Mail
  • How to Set Up MX Records for Domain Verification
  • Security Warnings
  • Understanding User Accounts
  • Sender Authentication
  • Inbound Filtering Policy
  • Outbound Filtering Policy
  • Advanced Configuration
  • Managing Domains
  • Logs and Reports
  • User Guides
  • Tools and Add-Ins
  • API Overview
    • Getting Started with the API
    • Registering your Application in the Barracuda Token Service
    • Obtaining an Access Token
    • Resources
    • Paging
    • Example - API Client in Python
  • Troubleshooting, Error Messages, and Additional Tips
  • Known Behaviors and FAQs
  • Online Service Terms

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Getting Started with the API
    Published Sep 10

    Getting Started with the API

    Sep 10, 2026
    Subscribe

    Prerequisites

    The following are required before you can access the API:

    1. A Barracuda Cloud Control (BCC) account with administrator privileges for Email Gateway Defense. If you do not already have a Barracuda Cloud Control account, see Create a Barracuda Cloud Control Account.

    2. A Client ID and Client Secret from a registered application in the Barracuda Token Service. For instructions, see Registering your Application in the Barracuda Token Service.

    3. An access token to make API requests. To create an access token, see Obtaining an Access Token.

    Tools for interacting with the API

    cURL

    cURL is a command line tool for transferring data from or to a remote server via URLs. cURL is pre-installed on many UNIX/Linux platforms and newer Windows platforms. Type curl -V in your favorite shell to see if the tool is installed.

    Examples in the endpoint references use cURL commands to send HTTP requests to access, create, and manipulate REST resources. 

    Postman

    Postman is a tool that you can use to build and test requests using the Email Gateway Defense APIs. You can download Postman at: https://www.getpostman.com/. 

    Python

    For an example of using the Email Gateway Defense API written in Python, see  Example - API Client in Python.

    Make API Requests

    After you have registered your application with an active Client ID and Client Secret and obtained an access token, you are ready to start creating requests.

    Include the URL to the API service for the environment based on your region.

    Region

    URL

    Region

    URL

    United States (US)

    https://api.barracudanetworks.com/

    United Kingdom (UK)

    https://uk.api.barracudanetworks.com/

    This sample request retrieves a list of accounts for Email Gateway Defense in the US region. You must include your access token in the authorization request header.

    curl -X GET "https://api.barracudanetworks.com/beta/accounts/ess" \ --header "Authorization: Bearer {access_token}"

    The sample response shows the details for the list of accounts available:

    { "resultsCount": 1, "pageNum": 0, "itemsTotal": 1, "pagesTotal": 1, "results": [ { "accountName": "Barracuda Networks Co", "accountId": "5584599", "region": "US" } ] }

    Next Step

    See the API Reference to get details of all the HTTP requests available through the Email Gateway Defense REST API.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 29, "requestCorrelationId": "2f7f4585840c4d78aae7c974cf07e967"}