Number Verification V1

token (Authorization Code Exchange)

OAuth 2.0 token endpoint to exchange authorization code for access token (CAMARA style).

post
https://api.pxg.konera.com/camara/api/auth/v1/token

Body

application/x-www-form-urlencoded

TokenRequest

grant_typestringrequired

Allowed values:authorization_code

Example:authorization_code

codestringrequired

Authorization code received from authorize endpoint

redirect_uristring(uri)required

Must match the redirect URI used in the authorize request

client_idstringrequired

Client identifier

client_secretstringrequired

Client secret

Response

application/json

OK

TokenResponse

access_tokenstringrequired

Access token for API calls

token_typestringrequired

Allowed values:Bearer

Example:Bearer

expires_inintegerrequired

Token expiration time in seconds

Example:3600

scopestringrequired

Granted scopes

Example:openid number-verification:verify

refresh_tokenstring

Refresh token if offline_access was requested

id_tokenstring

OpenID Connect ID token if openid scope was requested

post/api/auth/v1/token

Body

{ "grant_type": "authorization_code", "code": "code", "redirect_uri": "redirect_uri", "client_id": "client_id", "client_secret": "client_secret" }
 
application/json