Skip to main content
POST
Create token for sensitive data

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

Token created successfully

status
string
Example:

"ok"

tokenbase
string

The created token

tokenuuid
string

UUID of the token