Run in Apidog
This request will result in an access token and a refresh token. The refresh token can also be used on this endpoint to create a new access token and refresh token. The refresh token cannot be used more than once.
Request Add parameter in header x-api-key
Example: x-api-key: ********************
Add parameter in header x-api-env
Example: x-api-env: ********************
or
Body Params application/x-www-form-urlencoded
Request Code Samples
curl --location --request POST 'https://api.vplan.com/v1/oauth/token' \
--header 'x-api-key: <api-key>' \
--header 'x-api-env: <api-key>' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'redirect_uri=' \
--data-urlencode 'grant_type=' \
--data-urlencode 'code=' \
--data-urlencode 'refresh_token=' \
--data-urlencode 'state=' Responses application/json Generate Code
{
"access_token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" ,
"refresh_token" : "c3f42a9a1e78b8959882840aab940356" ,
"token_type" : "access_token" ,
"expires_in" : 3600
}
Modified at 2025-10-30 09:44:22