Skip to main content
POST
/
oauth
/
tokens
Generate tokens
curl --request POST \
  --url https://manage.mijnklantportaal.nl/oauth/tokens \
  --header 'Content-Type: application/json' \
  --data '{
  "grant_type": "<string>",
  "client_id": "<string>",
  "client_secret": "<string>",
  "redirect_uri": "<string>",
  "code": "<string>"
}'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "expires_in": 123
}
Please note that the base URL for this endpoint is: https://manage.mijnklantportaal.nl

Body

grant_type
string
required
Type of grant you want generate tokens for. Must be always authorization_code.
client_id
string
required
ID of your application which you got the Authentication Code for.
client_secret
string
required
The secret of your application you got after registering it in the Developer portal.
redirect_uri
string
required
The redirect URL as registered in the Developer portal.
code
string
required
The Authentication Code you got on the redirect back to your application.

Response

access_token
string
The Bearer token you can use for accessing the MijnKlantportaal API.
refresh_token
string
The token you need to generate a new Access Token after it is expired.
expires_in
integer
Amount of seconds until the given Access Token expires.
I