Britive platform release 2026.08.02 is now live in production.

Getting an OCI access token (REST)

Prev Next

Use the following cURL command to get an OCI admin token:

curl -X POST <DOMAIN_URL>/oauth2/v1/token \
  -H "Authorization: Basic <base64 of ClientId:ClientSecret>" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&scope=urn:opc:idm:myscopes"

Replace the following fields in the above cURL:

Parameter

Value

<DOMAIN_URL>

The domain URL of your Oracle Cloud.

<base64 of ClientId:ClientSecret>

Encode base 64 the ClientId:ClientSecret. For example: if client id6cb0d3eda18dfd949es15af9264d6g77“ and client secret is “idcscs-6d36a111-71f3-4e66-ase9-8d1eesdee745g” then we need to encode the base 64 of the string “6cb0d3eda18dfd949es15af9264d6g77:idcscs-6d36a111-71f3-4e66-ase9-8d1eesdee745g

Copy access_token from the response <ACCESS_TOKEN> for the REST in the following steps. This token is valid for ~1 hour; you need to regenerate it if the token expires.