cURL
curl --request GET \ --url https://api.sandbox.sudo.cards/cards/{id}/token \ --header 'Authorization: <api-key>'
"{\n \"statusCode\": 200,\n \"message\": \"Card token generated successfully.\",\n \"data\": {\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDE4ZWI3MWEzN2U0MDUwNjQ2OTQ1MTgiLCJ0eXBlIjoiQ0FSRFRPS0VOIiwiaWF0IjoxNzA3NzE4ODk2LCJleHAiOjE3MDc3MTkwMTZ9.Cj-Q21HKgUCOFvC3l7JQc0OZdoW932TEeeAFK6GEOGQ\"\n }\n}"
This endpoint generates a card token to be used for displaying sensitive card data.
The _id of the card to generate the token for.
_id
200
The response is of type object.
object