Authenticate
Exchange client credentials for a Drizz access token and send it on every API call. Tokens are valid for 24 hours.
Prerequisites
Copy this
# Exchange credentials for a 24-hour access token
curl -X POST "https://<auth-domain>/oauth/token" \
-H "Content-Type: application/json" \
-d '{
"client_id": "<your_client_id>",
"client_secret": "<your_client_secret>",
"audience": "<DRIZZ_API_AUDIENCE>",
"grant_type": "client_credentials"
}'# Capture the token so the rest of the script can use it
export DRIZZ_API_KEY=$(curl -s -X POST "https://<auth-domain>/oauth/token" \
-H "Content-Type: application/json" \
-d '{
"client_id": "<your_client_id>",
"client_secret": "<your_client_secret>",
"audience": "<DRIZZ_API_AUDIENCE>",
"grant_type": "client_credentials"
}' | jq -r .access_token)Endpoint
Request headers
Header
Required
Value
Request parameters
Name
Type
Required
Max length
Description
Response
Field
Type
Description
Use the token
Token lifetime
Rule
Detail
Errors
Code
Meaning
What to do
Common mistakes
What you did
What happens
Next
Last updated
Was this helpful?