Request user token

To manage the user wallet, a user token needs to be requested and registered in the client API. See register user token for details from the client perspective.

Register user token flow
  • your-authorization should be replaced with your Authorization header, see Access
  • your-user-id in the URI should be replaced with a string that identifies the user in your system, normally this would be a UUID
info

The user token is valid for one hour.

Request

Copy
Copied
POST /v1/users/$(your-user-id)/token

Accept: application/json
Authorization: $(your-authorization)

Response

Success

Response Schema: application/json
userToken
string

The user token

application/json
{
  • "userToken": "eyJraWQiOiJrMSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJ3YWxsZXQtc2RrIiwiZXhwIjoxNTcwNzg2NTQwLCJqdGkiOiJYcVhqSVZ1clp2Z0liY0QwSHVKbXRRIiwiaWF0IjoxNTcwNzgyOTQwLCJuYmYiOjE1NzA3ODI4MjAsInVpZCI6InNkay10ZXN0LXVzZXItYWxpYXMifQ.bLTJv78bqTYJex3GJPXUuDVSZ6fejlEK5jWvXeOjKHhbLWnsNpt3gsZ4qWS1RDUUpjf3pvRrvJ7A2bVnl2c3W5si15pIYQQbr-Ts-MefWbI37EiRzJREniEJyATNl_ZfyJATTPk6keNSjc-fcoJYoom_XVTVV6_9o9EbZCUqYxM4O1g0hyOZMCeeUdVxO9gEVP7Swr2hoIIQj0h2xCeIdmbiDWBMWK_kpVQr5Iz830pEtoNgzSihUTkQLQiTDbaqlSlvlr-QFeEyIGUMR_H4rLlQpflTbZDOI8SXWiRQdisR_eVWKLsSanTXRWHBJHxZuhM_bputeSASN8SBXj1llTdShBCAvd_Hz1VTR-EmG6yQXZEdYUlbT1I-__iDLFXU0hxwIB9v3AjAa5Mc6QUUQAe4v2YNzlFwQIlZIkDHazukGUS3yKvTFx6qFLTpwXYXACvb44k1zKXOqETZCMJcvAgAPFjjxUljlCFW7mBsXAlwtbidYiQTrT-27D1mR_t11aasUuXX4UzTF53-vc7TltkOuTpigQEb42ApKZZsTyJTckJMvf80hEyqLm8xFBMPi1ZGbFAkqlErkOSIhbtBVuLRfgFtDnMRnOWTZgvCqX71o6zRhISGpBiDmKv7kaRdHH5ruWaBVaqDo44Q57FEE_R3iQaw48-wDNKTUdgMRRY"
}
Error responses

Please refer to our HTTP response codes and Error codes to learn what error responses you may expect from the API.

Example

Try it

Loading...