Exchange an agent registration token to authentication token

POST {{base_url}}/api/2/idp/token

Request Body

[{"name"=>"grant_type", "value"=>"urn:ietf:params:oauth:grant-type:jwt-bearer", "datatype"=>"string"}, {"name"=>"assertion", "value"=>"{{registration_token}}", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"access_token":"eyJhbGciOiJSUzI1NiIsImVh....5JJIWyp-8ZDQpxZ4WvJm5LXDtyBgUEDRFQ","token_type":"bearer","expires_in":256583,"scope":null}