User Tokens
Create user tokens for existing users.
A user token must be included in all Link initializations. For more information, visit our User Tokens Guide.
#Create a user token
post/v2/user-tokens
Creates a new user token from the id
of an existing user.
Creating a new user will also return a user token in the response.
Request body
- #userstring (uuid)required
ID of the user object.
Example Request
1curl --request POST \
2 --url https://api.argyle.com/v2/user-tokens \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data {"user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69"}
Example Response
1{
2 "user_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRfaWQiOiIxNDRhMTRkNJ04YzEzLTQzZGYtOTI4Ni01OWY4NjFkOWEyMDIiLCJleHAiOjE2NzgzOTUwMTEsImZpZCI6ImMyNzFhODRlLWM2MjQtNDNkYS05OGMyLTQzODZkNTk1OWQ4YiIsImlhdCI6MTY3ODM5MTQxMSwiaXNzIjoiYXJneWxlLWNvcmUtYXV0aC1kZXYiLCJqdGkiOiI4ZTk1MTBmNC00YzVlLTRlOTAtOTIyNy1kNjg2MTk3MmMxOTAiLCJzdWIiOiIwMTg2YzRiOC04ZmExLTYyYjMtNDlkZi05NGIzZTE4Y2E4YTciLCJ1c2VyX2lkIjoiMDE4NmM0YjgtOGZhMS02MmIzLTQ5ZGYtOTRiM2UxOGNhOGE3In0.oLrxtzfNHG1RZ85Z4q7VUiv2-kufXmMINJFHeRIjvWo"
3}