Issue with POST /token

I am making a POST request in POSTMAN with the following

URL: https://{oktaDomain}/oauth2/default/v1/token


  • grant_type: refresh_token
  • redirect_uri: {localhost}
  • scope: openid offline_access
  • refresh_token: {refresh_token}


  • Accept: application/json
  • Authorization: Bearer {accessToken}
  • Content-Type: application/x-www-form-urlencoded

I am receiving the following error:

“error”: “invalid_client”,
“error_description”: “No client credentials found.”

Do I need to pass in a client_id and client_secret? Any help is appreciated, thank you

Hi @jayrc

For requesting a new access token, as per the example available here, you will need to pass client id and client secret in the authorization header in the format of "Authorization: Basic " + base64_encode(client_id + “:” + client_secret) or in the body of the POST request.

Hello @dragos,

This is what my request looks like (I’ve removed my client_id, client_secret, host, refresh_token for privacy reasons):

POST /oauth2/default/v1/token HTTP/1.1
Host: {host}
Content-Type: application/x-www-form-urlencoded
Accept: application/json
Cache-Control: no-cache


“error”: “invalid_request”,
“error_description”: “The grant was issued for another authorization server.”

Hi @jayrc

The error here is that the refresh token was issued through a different authorization server and can not be used on the “default” custom authorization server.

If the previous access/bearer token and refresh token were issued through the same authorization server, then you can use a tool like to decode the access token and see what is the issuer (it should look like “”, “” or “”)

Depending on the case, if you have “/oauth2/”, then you will need to change the request path and modify “default” to what is written there. If it simply returns “”, then you will need to use the Okta authorization server with the path /oauth2/v1/token.

Hello @dragos,

I decoded the access_token and it shows the issuer as “{org}”. I tried the POST request again with the following URL: https://{org} – but I’m receiving the following:

“error”: “invalid_client”,
“error_description”: “Client authentication failed. Either the client or the client credentials are invalid.”

In my authorization header, should I be using “Basic {accessToken}” or “Bearer {accessToken}”?

Hi @jayrc

Please use Basic and a base 64 encoding of client id, column and client secret instead of access token. The algorithm looks like the following

Authorization: Basic " + base64_encode(client_id + “:” + client_secret)

If you are testing this through Postman, please add the client ID and client secret under Authorization >> Type >> Basic Auth. For username, please add the value for client ID and, for password, the value for client secret.

Hello @dragos,

That worked perfectly. Thank you for the help and quick responses, have a great day!