v1

latestOpenAPI 3.1.02026-08-063776831.4 MB
Auth

Client Credentials Exchange

Performs OAuth2 client credentials grant flow and returns an access token. Uses configured audience.

post/auth/client-credentials

Headers

tenant-idstring

use "default" as tenant-id

Request body

clientIdstring

Auth0 client ID. If not provided, uses configured client ID

clientSecretstring

Auth0 client secret. If not provided, uses configured client secret

Example request

{
  "clientId": "your-client-id",
  "clientSecret": "your-client-secret"
}

Response

Authentication successful

accessTokenstring required

JWT access token

expiresIninteger required

Token expiration time in seconds

tokenTypestring required

Token type

Example response

{
  "accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expiresIn": 86400,
  "tokenType": "Bearer"
}