Can I use a bearer authorization token for the REST API Source?

Last updated on May 30, 2023

Yes, you can use a bearer token instead of Basic Auth or OAuth 2.0 to authenticate Hevo’s connection while configuring your REST API Source. For authenticating with this method, you must include the bearer token in the Authorization header of every API request that Hevo makes to your REST API endpoints. However, your Source must support authenticating API calls through a bearer token.

To provide the bearer token in Hevo, perform the following steps:

  1. In the Configure your REST API Source page, Set-up Source section, navigate to the Headers tab.

    Headers Tab

  2. Add the following mandatory headers as key-value pairs:

    Key Value
    Authorization Bearer <your token>

    For example, Bearer 0fgc6683-8852-5242-ecb0-5d3acd438f87.
    User-Agent <A string value of your choice that helps the REST API Source to identify a connecting application>

    For example, Hevo REST API.

    Note: Replace the placeholder values with your own.

    Add Bearer Token

Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
Mar-15-2023 NA Updated the content for added clarity on bearer token authentication.
Sep-07-2022 NA New document.

Tell us what went wrong