Learn how to authenticate your requests to the Opal API.
Overview
When making requests to the Opal API, you must pass an authentication bearer token in the header to identify yourself as an authorized user.
To to this, pass a header with key Authorization and value Bearer where is the value of the API token you generate from the admin API console.
Generating an API token
API tokens can be generated by Opal Admins from the Admin view like so:
Opal API tokens can either be Read-only or Full-access, and can be set to expire. Be sure to label your token with a descriptive name.
Once the token is generated, copy it and use it to make authenticated requests to the Opal API. If a token is compromised, it can be revoked from the Opal Admin page.