Herald
OpenapiOauth

Oauth_token

POST
/api/oauth/{realmId}/token

Path Parameters

realmId*string

Realm ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

client_id*string
code*string
code_verifier*string
grant_type*string
redirect_uri*string

Response Body

application/json

application/json

curl -X POST "https://example.com/api/oauth/string/token" \  -H "Content-Type: application/json" \  -d '{    "client_id": "string",    "code": "string",    "code_verifier": "string",    "grant_type": "string",    "redirect_uri": "string"  }'
{  "access_token": "string",  "expires_in": 0,  "token_type": "string"}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}