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.
    /
    Obtaining an Access Token
    Published Mar 13

    Obtaining an Access Token

    Mar 13, 2026
    Subscribe

    Returns an OAuth 2.0 access token to access the API. 

    If you have not already registered your application using the Barracuda Token Service to obtain a Client ID and Client Secret, see Registering your Application in the Barracuda Token Service.

    After retrieving an access token, include it with all subsequent requests. 

    Note that an access token is valid for 1 hour, after which it will expire and a new access token must be obtained. 

    Endpoints

    Region

    Endpoint

    Region

    Endpoint

    United States (US)

    POST https://login.bts.barracudanetworks.com/token

    United Kingdom (UK)

    POST https://uk.login.bts.barracudanetworks.com/token

    Parameters

    Name

    Required

    Description

    Type

    Name

    Required

    Description

    Type

    grant_type

    Required

    OAuth grant type. This must be client_credentials.

    String

    scope

    Required

    The list of permissions to request.
    Currently supported:

    • ess:account:read

    • forensics:account:read

    • forensics:account:write

    To request more than one scope, format your request with a space between scope names, as shown here:

    --data-urlencode "scope=forensics:account:read forensics:account:write"

    String

    client_id

    Required

    Your application's Client ID generated from the Barracuda Token Service.

    String

    client_secret

    Required

    Your application's Client Secret generated from the Barracuda Token Service.

    String

    Response

    Response Item

    Description

    Type

    Response Item

    Description

    Type

    access_token

    The access token issued by the authorization server.

    String

    expires_in

    The duration of time the token is granted for.

    String

    token_type

    The type of token.

    String

    scope

    The permissions assigned to the application.

    String

    Sample Request

    curl -u {client_id}:{client_secret} -X POST "https://login.bts.barracudanetworks.com/token" \ --header "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "grant_type=client_credentials" \ --data-urlencode "scope=ess:account:read"

    Sample Response

    { "access_token": "eyJhbGc3kj_iOiJSUzI1_NiIsInR5cCI6IkpXVCIsImtpZCI6IjJYSFN1VHdBZUph_VmJEWEhYLVRoQnBlbWlLZnBiUUlqNHNFWGc0X1F0NHMifQ.eyJqdGkiOiJuYVZJTC1lY0w4X0ZrTWdRR2FlWDAiLCJpYXQiOjE1OTY1NTUzNzksImV4cCI6MTU5NjU1ODk3OSwic2NvcGUiOiJ", "expires_in": 3600, "token_type": "Bearer", "scope": "ess:account:read" }

    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": 11, "requestCorrelationId": "c06133160b3e48539dc691af7ad5588e"}