Skip to main content
GET
/
cards
/
{id}
/
token
Generate Card Token
curl --request GET \
  --url https://api.sandbox.sudo.cards/cards/{id}/token \
  --header 'Authorization: <api-key>'
{
  "statusCode": 200,
  "message": "Card token generated successfully.",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDE4ZWI3MWEzN2U0MDUwNjQ2OTQ1MTgiLCJ0eXBlIjoiQ0FSRFRPS0VOIiwiaWF0IjoxNzA3NzE4ODk2LCJleHAiOjE3MDc3MTkwMTZ9.Cj-Q21HKgUCOFvC3l7JQc0OZdoW932TEeeAFK6GEOGQ"
  }
}

Authorizations

Authorization
string
header
default:{{APIKey}}
required

Path Parameters

id
string
required

The _id of the card to generate the token for.

Response

200

statusCode
integer
default:0
Example:

200

message
string
Example:

"Card token generated successfully."

data
object