Developer API

Create consent mandates, manage approval decisions, and retrieve consent records through the Consenza API.

OAuth 2.0 authentication

Obtain an access token for your environment and include it with every API request.

Authorization: Bearer <access_token>

Keep the token secret and request a new one when it expires.

Consent API endpoints

Choose a task to see its endpoints and a request example.

Request Token

Obtain an access token

  • POST/oauth2/token

    Request an access token

Request an access token

Replace the environment, token, and path variables with your values.

curl -X POST "$API_BASE_URL/oauth2/token" \
  -H "Content-Type: application/x-www-form-urlencoded'" \
  -d "grant_type=client_credentials"   -d "client_id=xxxxx"   -d "client_secret=yyyyy"'