4. Get User Tokens (successful creation)

POST {{host}}/oauth/token

Request an access token for the newly created user. A refresh token is also provided as part of the response, which can be used generate a new access token if it has expired.

Request Body

[{"name"=>"grant_type", "value"=>"registration_code", "datatype"=>"string"}, {"name"=>"client_id", "value"=>"{{client-id}}", "datatype"=>"string"}, {"name"=>"email", "value"=>"user-test1@mail.com", "datatype"=>"string"}, {"name"=>"registration_code", "value"=>"{{idempotency-guid}}", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"access_token":"{access_token}","token_type":"bearer","refresh_token":"{refresh_token}","expires_in":43199,"scope":"transfers"}