Skip to main content
POST
/
v2
/
TokenCreate
Create token for sensitive data
curl --request POST \
  --url http://localhost:3000/v2/TokenCreate \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "tokentype": "creditcard",
  "record": "<string>",
  "unique": true,
  "slidingtime": "<string>",
  "finaltime": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok",
  "tokenbase": "<string>",
  "tokenuuid": "<string>"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
tokentype
enum<string>
required

Type of token

Available options:
creditcard,
email
record
string
required

The sensitive data to tokenize

unique
boolean

Whether to create a unique token for each request

slidingtime
string

Time period for token validity (e.g., '1d', '1h')

finaltime
string

Absolute expiration time for the token (Unix timestamp format)

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Token created successfully

status
string
Example:

"ok"

tokenbase
string

The created token

tokenuuid
string

UUID of the token