Skip to main content
POST
Create multiple tokens in bulk

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
records
object[]
required
Minimum array length: 1
unique
boolean

Whether to create unique tokens for each request

slidingtime
string

Time period for token validity

finaltime
string

Absolute expiration time for the tokens

tags

Tags for every record in the batch, an array or a comma-separated string. A record with invalid tags is reported in errors; the rest are created.

request_metadata
object

Additional metadata for the request

Response

Tokens created successfully

status
string
Example:

"ok"

created
object[]
duplicates
object[]

With unique, records whose value already had a token. Their tags are added to the existing token's tags.

errors
object[]

Records that were not tokenized

summary
object