Skip to main content
POST
/
api
/
recovery
/
tokenize
Tokenize Card
curl --request POST \
  --url https://api.revtain.com/api/recovery/tokenize \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "paymentMethod": {
    "credit_card": {
      "number": "4111111111111111",
      "month": 12,
      "year": 2028,
      "verification_value": "123",
      "first_name": "John",
      "last_name": "Doe"
    }
  }
}
'
{
  "success": true,
  "token": "01KKZ10AD66A3VX260WKM0YFPG"
}

Documentation Index

Fetch the complete documentation index at: https://docs.revtain.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Your Revtain API key (format: rev_xxx). Provided during onboarding.

Body

application/json
paymentMethod
object
required

Response

Card tokenized successfully

success
boolean
Example:

true

token
string
Example:

"01KKZ10AD66A3VX260WKM0YFPG"