Retrieve a login token and the uuid for a user
This endpoint provides a token and uuid for the user, these can be used once to automatically login on the secured parts of our website. For example, to continue their KYC process, upgrade their account or contact support. For more information, please see the description of the system/info endpoint.
GET/api/v1/user/login-token
Send two credentials: your own, and the customer's.
How authentication works- Either
Authorization: BearerorUser-Authorization: Bearer
Language
Environment
Credentials
Your credential, or the customer's
Choose an environment first.
curl -X GET https://api.btcdirect.eu/api/v1/user/login-token \ -H "Authorization: Bearer $BTCD_PARTNER_TOKEN"Response
{ "uuid": "45b9313b-fa47-4786-baf1-62969dec31f2", "token": "fGRbWeT1VX0pcEGkwgso", "expiryDate": "2019-06-06T16:16:16Z"}Responses
200User token generated successfully.400A list of possible errors for this endpoint.Body of the success response
uuidstring
UUID of the user.
Example45b9313b-fa47-4786-baf1-62969dec31f2
tokenstring
The token to login into the privateUrls.
ExamplefGRbWeT1VX0pcEGkwgso
expiryDatestring
The date and time when this token expires.
Example2019-06-06T16:16:16Z
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.