Get access tokens

POST {{baseUrl}}/v2/oauth/access_token

This endpoint returns an access token for the specified user and with the specified scopes. The token does not expire until the user changes their password. The body parameters must be encoded as form data.

Request Body

[{"name"=>"client_id", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"grant_type", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"client_secret", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"code", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"realm", "value"=>"customer", "datatype"=>"string"}, {"name"=>"expires", "value"=>"false", "datatype"=>"boolean"}, {"name"=>"refresh_token", "value"=>"<string>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;access_token&quot;:&quot;v2/NmQwOTc0NTBiMjA5YzZkY2Q4NTkvMTA4OTg1MDk5L2N1c3RvbWVyLzIvZjB2a0RseGo4Rkt6ZjRmVWJNMm10V2VzcHh1NTBlZWJ6andUQU1NeTVYYnNFTDVWOFRJakItS2RnZTlmbEY1Y3haNWdXLUtYc2JhaXo5djk0V0p2QzZUUWZ4c2FNWm41NkdLYUgyVWlCaVUtQTNVMV9YQWpzd3lpblI3SlZEem8wSG1qQ2NzSkJlX3VQTnNXenBIdkd4SXViVi1rRGJTVENCV0g1U3U0RXRJSV9rSm5lQkl5QXlvbm5JN241UUhv&quot;,&quot;token_type&quot;:&quot;Bearer&quot;}