3. 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"=>"{{email}}", "datatype"=>"string"}, {"name"=>"registration_code", "value"=>"{{registration-code-UUID}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"access_token":"{access_token}","token_type":"bearer","refresh_token":"{refresh_token}","expires_in":43199,"scope":"transfers"}