Databunker Pro provides two distinct tokenization engines, each designed for a different job:
PII tokenization (UserCreate / UserGet) — stores a complete user profile (JSON, N fields) as one encrypted record and returns a single UUID token representing the whole profile. Builds secure hashed search indexes over email, phone, login, and a custom field for efficient lookups. This is the user-table replacement pattern; see the PII Vault page for full detail.
Format-preserving tokenization (TokenCreate / TokenGet) — tokenizes individual sensitive values: a creditcard, which returns a Luhn-valid look-alike alongside a UUID, or a string, which returns a UUID. This is the PCI / single-value pattern, covered in the rest of this page.
Both engines share the same vault, encryption, multi-tenancy, and access-control layers — so the same auditability, key management, and CRBAC policies apply to either flow.Databunker Pro was built with the latest data privacy requirements in mind, such as data minimization, and is engineered to handle millions of data tokenization requests. The API supports bulk tokenization for efficient batch operations.
Supported data types
Two token types are recommended, and they cover almost every case:
tokentype
Original Record Type
Format Preservation
Generated Token Format
creditcard
Credit card number
✅ (with Luhn check)
Format-preserving token plus a UUID
string
Any text — name, address, date, email, identifier
❌
UUID token
string is an alias for the canonical type name text; both are accepted and both
store the value as text.
Other token types exist — unixtimestamp, uint32, uint64, email, ssn and
uuid — but they are not recommended. The numeric types generate their
format-preserving token by drawing a random value and rejecting collisions, and their
keyspace is small. At hundreds of millions of records the generator spends longer and
longer looking for a free value, until requests slow down or fail outright with
Not enough random tokens. Use creditcard and string.
Key features
Automatic Expiration
In Databunker Pro, expiration allows you to set a lifespan for sensitive data tokens, ensuring they automatically expire after a defined period. Use slidingtime for a relative window (e.g. 30d, 1h) or finaltime for an absolute Unix-timestamp expiry.
// Set a 30-day sliding expiration for a tokenized record{ "tokentype": "creditcard", "record": "4532015112830366", "slidingtime": "30d"}
Unique Record Support
This unique flag is used for data deduplication. It ensures that each record is saved only once, and the same token value is returned for identical records. If the original record has an expiration flag set, its expiration countdown will be reset from the beginning.
// Same input generates same token when enabled{ "tokentype": "creditcard", "record": "4532015112830366", "unique": true}
Dual Token Generation
By default, Databunker Pro generates two tokens: one in UUID format and another in a format-preserving manner.
// Example response for credit card tokenization{ "status": "ok", "tokenuuid": "550e8400-e29b-41d4-a716-446655440000", "tokenbase": "4111111111111111" // Format-preserving token (Luhn-valid, same length)}
Getting started
# Example API call for tokenizationcurl -X POST https://databunker.pro/v2/TokenCreate \ -H "X-Bunker-Token: <access-token>" \ -H "X-Bunker-Tenant: <tenant-name>" \ -H "Content-Type: application/json" \ -d '{ "tokentype": "creditcard", "record": "4532015112830366", "slidingtime": "30d", "unique": true }'
A token can carry tags that describe it, such as the application or data class it belongs to. Pass tags to TokenCreate, as an array or a comma-separated string:
In TokenCreateBulk, a top-level tags applies to every record, and a record can add its own tags. A record with invalid tags is reported in errors, and the rest of the batch is still created.
Rules: the same as for file tags. Tags are lowercased, de-duplicated and sorted, must match ^[a-z0-9][a-z0-9._-]{0,49}$, and a request carries at most 16.
With unique: when the value already has a token, the new tags are added to the ones it has. A call without tags leaves them unchanged.
TokenGet returns tags, an empty list when there are none.
Deleting a token with TokenDelete or BulkDeleteTokens removes its tags.
Keep tags few and stable: an application, a purpose, a data class. Never put a session ID, user ID or other per-record value in a tag. Tags are stored unencrypted so they can be indexed, and with unique they merge, so a per-request value would keep adding tags to the same shared token.
Adds the listed tags. Tags the token already has are skipped.
TokenDeleteTags
Removes the listed tags the token has, possibly all of them. Others are ignored.
TokenRenameTag
Replaces tag with newtag. Refused with 409 if the token already has newtag.
token is the token UUID or the token value, such as a format-preserving credit card token. TokenAddTags and TokenDeleteTags take tags as an array or a comma-separated string. Each call returns the token’s tags afterwards, limited to the ones the caller may see.
Bulk read and delete return or destroy plaintext for many records at once, so they require a short-lived unlock UUID as an extra authorization step. Call BulkListUnlock first, then pass the returned unlockuuid to BulkListTokens or BulkDeleteTokens along with the tokens. BulkDeleteTokens accepts token UUIDs and format-preserving base tokens in the same list.
Format-preserving tokenization addresses three concerns at once:
Concern
What tokenization gives you
Privacy & compliance
Supports GDPR data minimization and reduces PCI DSS scope — real card numbers never reach your application databases, logs, or analytics systems.
Legacy compatibility
Tokens keep the original format and validation rules (e.g. the Luhn check for cards), so they drop into existing schemas, validators, and downstream systems without changes.
Scale
Data partitioning and bulk endpoints handle millions of records at high throughput.
Next steps
PII vault — tokenizing a whole user record rather than a single value
Tokenize LLM prompts — keeping personal data out of model prompts with per-value tokens
Access control — restricting who can detokenize, and which fields come back
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Databunker","colors":{"primary":"#2563eb","light":"#89A3EB","dark":"#2563eb"},"favicon":"https://mintcdn.com/databunker-a1572a73/B-htEe-_kSIkJWgA/favicon.svg?fit=max\u0026auto=format\u0026n=B-htEe-_kSIkJWgA\u0026q=85\u0026s=e31d4332c3209711f45814b25b737be6","navbar":{"links":[{"href":"https://github.com/securitybunker/databunker","label":"GitHub"}],"primary":{"type":"button","label":"Book a Demo","href":"https://cal.com/databunker-team/30min?overlayCalendar=true"}},"footer":{"socials":{"github":"https://github.com/securitybunker","linkedin":"https://www.linkedin.com/company/72703407"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"databunker-a1572a73","hasAudioNarration":false,"actualSubdomain":"databunker-a1572a73","customDomains":["docs.databunker.org"],"gitSource":{"type":"github","owner":"securitybunker","repo":"databunkerpro-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10c3a29ffae5051c405ff7"},"entitlements":{},"buildId":"6b11ef1838a6e0a7e16d939d","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Databunker Pro","count":150},{"language":"default","tag":"API Reference","count":106},{"language":"default","tag":"Databunker OSS","count":67},{"language":"default","tag":"Reference","count":58},{"language":"default","tag":"Guides","count":53},{"language":"default","tag":"Get started","count":16},{"language":"default","tag":"Consent","count":16},{"language":"default","tag":"User Tokenization","count":16},{"language":"default","tag":"User","count":13},{"language":"default","tag":"User App","count":12}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"pro/concepts/tokenization","slug":"/pro/concepts/tokenization","pageMetadata":{"title":"Format-preserving tokenization","sidebarTitle":"Tokenization","description":null,"href":"/pro/concepts/tokenization"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Databunker Pro provides `,_jsx(_components.strong,{children:`two distinct tokenization engines`}),`, each designed for a different job:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PII tokenization`}),` (`,_jsx(_components.code,{children:`UserCreate`}),` / `,_jsx(_components.code,{children:`UserGet`}),`) — stores a complete user profile (JSON, N fields) as one encrypted record and returns a single UUID token representing the whole profile. Builds secure hashed search indexes over `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`}),`, `,_jsx(_components.code,{children:`login`}),`, and a `,_jsx(_components.code,{children:`custom`}),` field for efficient lookups. This is the `,_jsx(_components.em,{children:`user-table replacement`}),` pattern; see the `,_jsx(_components.a,{href:`/pro/get-started/pii-vault`,children:`PII Vault`}),` page for full detail.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Format-preserving tokenization`}),` (`,_jsx(_components.code,{children:`TokenCreate`}),` / `,_jsx(_components.code,{children:`TokenGet`}),`) — tokenizes individual sensitive values: a `,_jsx(_components.code,{children:`creditcard`}),`, which returns a Luhn-valid look-alike alongside a UUID, or a `,_jsx(_components.code,{children:`string`}),`, which returns a UUID. This is the `,_jsx(_components.em,{children:`PCI / single-value`}),` pattern, covered in the rest of this page.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Both engines share the same vault, encryption, multi-tenancy, and access-control layers — so the same auditability, key management, and CRBAC policies apply to either flow.`}),`\n`,_jsx(_components.p,{children:`Databunker Pro was built with the latest data privacy requirements in mind, such as data minimization, and is engineered to handle millions of data tokenization requests. The API supports bulk tokenization for efficient batch operations.`}),`\n`,_jsx(Heading,{level:`2`,id:`supported-data-types`,children:`Supported data types`}),`\n`,_jsx(_components.p,{children:`Two token types are recommended, and they cover almost every case:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`tokentype`})}),_jsx(_components.th,{children:`Original Record Type`}),_jsx(_components.th,{children:`Format Preservation`}),_jsx(_components.th,{children:`Generated Token Format`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`creditcard`})}),_jsx(_components.td,{children:`Credit card number`}),_jsx(_components.td,{children:`✅ (with Luhn check)`}),_jsx(_components.td,{children:`Format-preserving token plus a UUID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Any text — name, address, date, email, identifier`}),_jsx(_components.td,{children:`❌`}),_jsx(_components.td,{children:`UUID token`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`string`}),` is an alias for the canonical type name `,_jsx(_components.code,{children:`text`}),`; both are accepted and both\nstore the value as `,_jsx(_components.code,{children:`text`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Other token types exist — `,_jsx(_components.code,{children:`unixtimestamp`}),`, `,_jsx(_components.code,{children:`uint32`}),`, `,_jsx(_components.code,{children:`uint64`}),`, `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`ssn`}),` and\n`,_jsx(_components.code,{children:`uuid`}),` — but they are `,_jsx(_components.strong,{children:`not recommended`}),`. The numeric types generate their\nformat-preserving token by drawing a random value and rejecting collisions, and their\nkeyspace is small. At hundreds of millions of records the generator spends longer and\nlonger looking for a free value, until requests slow down or fail outright with\n`,_jsx(_components.code,{children:`Not enough random tokens`}),`. Use `,_jsx(_components.code,{children:`creditcard`}),` and `,_jsx(_components.code,{children:`string`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`key-features`,children:`Key features`}),`\n`,_jsx(Heading,{level:`3`,id:`automatic-expiration`,children:`Automatic Expiration`}),`\n`,_jsxs(_components.p,{children:[`In Databunker Pro, expiration allows you to set a lifespan for sensitive data tokens, ensuring they automatically expire after a defined period. Use `,_jsx(_components.code,{children:`slidingtime`}),` for a relative window (e.g. `,_jsx(_components.code,{children:`30d`}),`, `,_jsx(_components.code,{children:`1h`}),`) or `,_jsx(_components.code,{children:`finaltime`}),` for an absolute Unix-timestamp expiry.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Set a 30-day sliding expiration for a tokenized record`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokentype\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"creditcard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"record\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4532015112830366\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slidingtime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"30d\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`unique-record-support`,children:`Unique Record Support`}),`\n`,_jsx(_components.p,{children:`This unique flag is used for data deduplication. It ensures that each record is saved only once, and the same token value is returned for identical records. If the original record has an expiration flag set, its expiration countdown will be reset from the beginning.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Same input generates same token when enabled`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokentype\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"creditcard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"record\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4532015112830366\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unique\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`dual-token-generation`,children:`Dual Token Generation`}),`\n`,_jsx(_components.p,{children:`By default, Databunker Pro generates two tokens: one in UUID format and another in a format-preserving manner.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Example response for credit card tokenization`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokenuuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokenbase\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4111111111111111\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Format-preserving token (Luhn-valid, same length)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`getting-started`,children:`Getting started`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Example API call for tokenization`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://databunker.pro/v2/TokenCreate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Token: \u003caccess-token>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Tenant: \u003ctenant-name>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tokentype\": \"creditcard\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"record\": \"4532015112830366\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"slidingtime\": \"30d\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unique\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Output:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokenuuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokenbase\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4111111111111111\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Format-preserving token (Luhn-valid, same length)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`bulk-tokenization`,children:`Bulk tokenization`}),`\n`,_jsx(_components.p,{children:`For batch workloads — migrations, nightly imports, mass detokenization — Databunker Pro creates, reads, and deletes many tokens in a single call.`}),`\n`,_jsx(Heading,{level:`3`,id:`create-tokens-in-bulk`,children:`Create tokens in bulk`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`TokenCreateBulk`}),` takes an array of records and returns a token pair for each. `,_jsx(_components.code,{children:`slidingtime`}),` / `,_jsx(_components.code,{children:`finaltime`}),` and `,_jsx(_components.code,{children:`unique`}),` apply to the whole batch.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://databunker.pro/v2/TokenCreateBulk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Token: \u003caccess-token>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Tenant: \u003ctenant-name>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"records\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"tokentype\": \"creditcard\", \"record\": \"4532015112830366\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"tokentype\": \"creditcard\", \"record\": \"5467047429390590\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unique\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Output:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tokenuuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tokenbase\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4111111111111111\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"record\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4532015112830366\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tokentype\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"creditcard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tokenuuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tokenbase\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5500005555555559\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"record\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5467047429390590\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tokentype\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"creditcard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`tags`,children:`Tags`}),`\n`,_jsxs(_components.p,{children:[`A token can carry tags that describe it, such as the application or data class it belongs to. Pass `,_jsx(_components.code,{children:`tags`}),` to `,_jsx(_components.code,{children:`TokenCreate`}),`, as an array or a comma-separated string:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokentype\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"record\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Alex Parker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"support-bot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pii\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`TokenCreateBulk`}),`, a top-level `,_jsx(_components.code,{children:`tags`}),` applies to every record, and a record can add its own `,_jsx(_components.code,{children:`tags`}),`. A record with invalid tags is reported in `,_jsx(_components.code,{children:`errors`}),`, and the rest of the batch is still created.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rules`}),`: the same as for `,_jsx(_components.a,{href:`/pro/concepts/file-vault#tag-files`,children:`file tags`}),`. Tags are lowercased, de-duplicated and sorted, must match `,_jsx(_components.code,{children:`^[a-z0-9][a-z0-9._-]{0,49}$`}),`, and a request carries at most 16.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`With `,_jsx(_components.code,{children:`unique`})]}),`: when the value already has a token, the new tags are added to the ones it has. A call without tags leaves them unchanged.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`TokenGet`})}),` returns `,_jsx(_components.code,{children:`tags`}),`, an empty list when there are none.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Deleting`}),` a token with `,_jsx(_components.code,{children:`TokenDelete`}),` or `,_jsx(_components.code,{children:`BulkDeleteTokens`}),` removes its tags.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Keep tags few and stable: an application, a purpose, a data class. Never put a session ID, user ID or other per-record value in a tag. Tags are stored unencrypted so they can be indexed, and with `,_jsx(_components.code,{children:`unique`}),` they merge, so a per-request value would keep adding tags to the same shared token.`]})}),`\n`,_jsxs(_components.p,{children:[`A policy can limit a role to tokens with certain tags. See `,_jsx(_components.a,{href:`/pro/administration/access-control#scoping-token-access-by-tag`,children:`Scoping token access by tag`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`change-a-token’s-tags`,children:`Change a token’s tags`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Call`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TokenAddTags`})}),_jsx(_components.td,{children:`Adds the listed tags. Tags the token already has are skipped.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TokenDeleteTags`})}),_jsx(_components.td,{children:`Removes the listed tags the token has, possibly all of them. Others are ignored.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TokenRenameTag`})}),_jsxs(_components.td,{children:[`Replaces `,_jsx(_components.code,{children:`tag`}),` with `,_jsx(_components.code,{children:`newtag`}),`. Refused with `,_jsx(_components.code,{children:`409`}),` if the token already has `,_jsx(_components.code,{children:`newtag`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`token`}),` is the token UUID or the token value, such as a format-preserving credit card token. `,_jsx(_components.code,{children:`TokenAddTags`}),` and `,_jsx(_components.code,{children:`TokenDeleteTags`}),` take `,_jsx(_components.code,{children:`tags`}),` as an array or a comma-separated string. Each call returns the token’s tags afterwards, limited to the ones the caller may see.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://databunker.pro/v2/TokenRenameTag`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Token: \u003caccess-token>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Tenant: \u003ctenant-name>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"token\": \"4111111111111111\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tag\": \"payments-eu\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"newtag\": \"payments\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokenuuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pii\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`read-and-delete-in-bulk`,children:`Read and delete in bulk`}),`\n`,_jsxs(_components.p,{children:[`Bulk read and delete return or destroy plaintext for many records at once, so they require a short-lived `,_jsx(_components.strong,{children:_jsx(_components.a,{href:`/pro/api/authentication#bulk-unlock-uuid`,children:`unlock UUID`})}),` as an extra authorization step. Call `,_jsx(_components.code,{children:`BulkListUnlock`}),` first, then pass the returned `,_jsx(_components.code,{children:`unlockuuid`}),` to `,_jsx(_components.code,{children:`BulkListTokens`}),` or `,_jsx(_components.code,{children:`BulkDeleteTokens`}),` along with the tokens. `,_jsx(_components.code,{children:`BulkDeleteTokens`}),` accepts token UUIDs and format-preserving base tokens in the same list.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`27`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 1. Obtain an unlock UUID`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://databunker.pro/v2/BulkListUnlock`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Token: \u003caccess-token>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Tenant: \u003ctenant-name>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# -> { \"status\": \"ok\", \"unlockuuid\": \"e1f2a3b4-...\" }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 2. Retrieve the original values`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://databunker.pro/v2/BulkListTokens`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Token: \u003caccess-token>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Tenant: \u003ctenant-name>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unlockuuid\": \"e1f2a3b4-...\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tokens\": [\"550e8400-e29b-41d4-a716-446655440000\", \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# -> { \"status\": \"ok\", \"rows\": [ { \"tokenuuid\": \"...\", \"tokenbase\": \"...\", \"record\": \"...\", \"tokentype\": \"creditcard\" }, ... ] }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 3. Delete tokens`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://databunker.pro/v2/BulkDeleteTokens`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Token: \u003caccess-token>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Bunker-Tenant: \u003ctenant-name>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unlockuuid\": \"e1f2a3b4-...\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tokens\": [\"550e8400-e29b-41d4-a716-446655440000\", \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# -> { \"status\": \"ok\", \"total\": 2 }`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`compliance-and-scale`,children:`Compliance and scale`}),`\n`,_jsx(_components.p,{children:`Format-preserving tokenization addresses three concerns at once:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Concern`}),_jsx(_components.th,{children:`What tokenization gives you`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Privacy \u0026 compliance`})}),_jsx(_components.td,{children:`Supports GDPR data minimization and reduces PCI DSS scope — real card numbers never reach your application databases, logs, or analytics systems.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Legacy compatibility`})}),_jsx(_components.td,{children:`Tokens keep the original format and validation rules (e.g. the Luhn check for cards), so they drop into existing schemas, validators, and downstream systems without changes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Scale`})}),_jsx(_components.td,{children:`Data partitioning and bulk endpoints handle millions of records at high throughput.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/pro/get-started/pii-vault`,children:`PII vault`}),` — tokenizing a whole user record rather than a single value`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/pro/howtos/tokenize-llm-prompts`,children:`Tokenize LLM prompts`}),` — keeping personal data out of model prompts with per-value tokens`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/pro/administration/access-control`,children:`Access control`}),` — restricting who can detokenize, and which fields come back`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/pro/get-started/licensing#what-counts-as-a-record`,children:`Licensing and limits`}),` — a standalone token counts as one record`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Format-preserving tokenization","sidebarTitle":"Tokenization","description":null,"href":"/pro/concepts/tokenization"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Supported data types","slug":"supported-data-types","depth":2,"children":[]},{"title":"Key features","slug":"key-features","depth":2,"children":[{"title":"Automatic Expiration","slug":"automatic-expiration","depth":3,"children":[]},{"title":"Unique Record Support","slug":"unique-record-support","depth":3,"children":[]},{"title":"Dual Token Generation","slug":"dual-token-generation","depth":3,"children":[]}]},{"title":"Getting started","slug":"getting-started","depth":2,"children":[]},{"title":"Bulk tokenization","slug":"bulk-tokenization","depth":2,"children":[{"title":"Create tokens in bulk","slug":"create-tokens-in-bulk","depth":3,"children":[]}]},{"title":"Tags","slug":"tags","depth":2,"children":[{"title":"Change a token’s tags","slug":"change-a-token’s-tags","depth":3,"children":[]},{"title":"Read and delete in bulk","slug":"read-and-delete-in-bulk","depth":3,"children":[]}]},{"title":"Compliance and scale","slug":"compliance-and-scale","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"databunker-a1572a73","siteName":"Databunker","title":"Format-preserving tokenization - Databunker","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T22:16:36.265Z","originalFileLocation":"pro/concepts/tokenization.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Databunker\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Format-preserving tokenization - Databunker\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Databunker\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.databunker.org/pro/concepts/tokenization\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://databunker-a1572a73.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Format-preserving+tokenization\u0026amp;theme=ad3feedb6f62b1236b08d386\u0026amp;signature=d0c28d02ca81aa7edc73b54427e9d317d0284447768cbc613ef02b61bab79b41\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Format-preserving tokenization - Databunker\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://databunker-a1572a73.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Format-preserving+tokenization\u0026amp;theme=ad3feedb6f62b1236b08d386\u0026amp;signature=d0c28d02ca81aa7edc73b54427e9d317d0284447768cbc613ef02b61bab79b41\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/databunker-a1572a73/AGJgVu_bVqq5sPGz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Databunker\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.databunker.org/pro/concepts/tokenization\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pro/concepts/tokenization.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.databunker.org/#organization\",\"name\":\"Databunker\",\"url\":\"https://docs.databunker.org\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.databunker.org#website\",\"name\":\"Databunker\",\"url\":\"https://docs.databunker.org\",\"publisher\":{\"@id\":\"https://docs.databunker.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.databunker.org/pro/concepts/tokenization#webpage\",\"url\":\"https://docs.databunker.org/pro/concepts/tokenization\",\"name\":\"Format-preserving tokenization\",\"dateModified\":\"2026-12-03T22:16:36.265Z\",\"isPartOf\":{\"@id\":\"https://docs.databunker.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.databunker.org/pro/concepts/tokenization#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.databunker.org/pro/concepts/tokenization#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Databunker\",\"item\":\"https://docs.databunker.org\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Format-preserving tokenization\",\"item\":\"https://docs.databunker.org/pro/concepts/tokenization\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.databunker.org/pro/concepts/tokenization#article\",\"headline\":\"Format-preserving tokenization\",\"name\":\"Format-preserving tokenization\",\"url\":\"https://docs.databunker.org/pro/concepts/tokenization\",\"mainEntityOfPage\":{\"@id\":\"https://docs.databunker.org/pro/concepts/tokenization#webpage\"},\"dateModified\":\"2026-12-03T22:16:36.265Z\",\"publisher\":{\"@id\":\"https://docs.databunker.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.databunker.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Databunker\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Databunker\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pro/concepts/tokenization.md","siteName":"Databunker","nav":{"global":null,"products":[{"product":"Databunker Pro","tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Databunker Pro","sidebarTitle":"Overview","href":"/pro/get-started/overview"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/pro/get-started/quickstart"},{"title":"Performance \u0026 benchmarks","sidebarTitle":"Performance","href":"/pro/get-started/performance"},{"title":"PII Vault - PII Storage \u0026 Tokenization in Databunker Pro","sidebarTitle":"PII Data Vault","href":"/pro/get-started/pii-vault"},{"title":"Architecture","href":"/pro/get-started/architecture"},{"title":"Security overview","href":"/pro/get-started/security-overview"},{"title":"Licensing and limits","sidebarTitle":"Licensing \u0026 limits","href":"/pro/get-started/licensing"},{"title":"Frequently asked questions","sidebarTitle":"FAQ","href":"/pro/get-started/faq"}]},{"group":"Installation","pages":[{"title":"Install with Docker Compose","sidebarTitle":"Docker Compose","href":"/pro/installation/docker-compose"},{"title":"Install with Kubernetes using Helm","sidebarTitle":"Deploy using Helm charts","href":"/pro/installation/kubernetes-helm"},{"title":"Generate admin credentials","href":"/pro/installation/generate-admin-credentials"},{"title":"Unattended installation","sidebarTitle":"Unattended installation","href":"/pro/installation/unattended-installation"},{"title":"Oracle Database backend","sidebarTitle":"Oracle Database","href":"/pro/installation/oracle-database"},{"title":"Production checklist","href":"/pro/installation/production-checklist"}]},{"group":"Administration","pages":[{"title":"Master key","href":"/pro/administration/master-key"},{"title":"Wrapping key rotation","sidebarTitle":"Key rotation","href":"/pro/administration/key-rotation"},{"title":"Shamir key shares","sidebarTitle":"Shamir keys","href":"/pro/administration/shamir-keys"},{"title":"Backup and recovery","href":"/pro/administration/backup-and-recovery"},{"title":"Monitoring","href":"/pro/administration/monitoring"},{"title":"Multi-tenancy","href":"/pro/administration/multi-tenancy"},{"title":"Conditional Role-Based Access Control (CRBAC)","sidebarTitle":"Access control","description":null,"href":"/pro/administration/access-control"}]},{"group":"Concepts","pages":[{"title":"Format-preserving tokenization","sidebarTitle":"Tokenization","href":"/pro/concepts/tokenization"},{"title":"File Vault","sidebarTitle":"File Vault","description":"Store per-user files encrypted at rest, backed by local disk, Amazon S3, Google Cloud Storage, or Azure Blob Storage — with the same key management, multi-tenancy, and access control as the rest of Databunker Pro.","href":"/pro/concepts/file-vault"},{"title":"Fuzzy search","href":"/pro/concepts/fuzzy-search"},{"title":"Partial search","href":"/pro/concepts/partial-search"},{"title":"Record versioning","sidebarTitle":"Versioning","href":"/pro/concepts/record-versioning"},{"title":"Select security","href":"/pro/concepts/select-security"},{"title":"Sub-accounts","sidebarTitle":"Sub-accounts","href":"/pro/concepts/sub-accounts"},{"title":"Shared records","sidebarTitle":"Shared records","href":"/pro/concepts/shared-records"},{"title":"Multi-jurisdiction deployment","sidebarTitle":"Multi-jurisdiction deployment","href":"/pro/concepts/global-deployment"}]},{"group":"Comparisons","pages":[{"title":"AWS Cognito vs Databunker Pro — PII Vault \u0026 Tokenization","sidebarTitle":"AWS Cognito vs Databunker Pro","href":"/pro/comparisons/aws-cognito-alternative"},{"title":"HashiCorp Vault vs Databunker Pro — PII Storage \u0026 Compliance","sidebarTitle":"HashiCorp Vault vs Databunker Pro","href":"/pro/comparisons/hashicorp-vault-alternative"},{"title":"Custom PII Vault vs Databunker Pro — Build or Buy?","sidebarTitle":"Custom PII Vault vs Databunker Pro","href":"/pro/comparisons/custom-solution-alternative"}]},{"group":"Migrations","pages":[{"title":"Migrating to Databunker Pro","sidebarTitle":"Overview","href":"/pro/migrations/overview"},{"title":"Migrate a SQL users table","sidebarTitle":"SQL users table","href":"/pro/migrations/sql-users-table"},{"title":"Migrate from AWS Cognito","sidebarTitle":"AWS Cognito","href":"/pro/migrations/aws-cognito"}]},{"group":"How-tos","pages":[{"title":"How-tos overview","sidebarTitle":"Overview","href":"/pro/howtos/overview"},{"title":"Update the license key","sidebarTitle":"Update license","href":"/pro/howtos/update-license"},{"title":"Clean the users table","sidebarTitle":"Clean users table","href":"/pro/howtos/clean-users-table"},{"title":"Store user fields","sidebarTitle":"Store user fields","href":"/pro/howtos/store-user-fields"},{"title":"Tokenize PII before it reaches an LLM","sidebarTitle":"Tokenize LLM prompts","href":"/pro/howtos/tokenize-llm-prompts"},{"title":"Zero-PII gateway for AI agents","sidebarTitle":"Zero-PII gateway","href":"/pro/howtos/zero-pii-gateway"},{"title":"Secure session management","sidebarTitle":"Session management","href":"/pro/howtos/session-management"}]},{"group":"Developer tools","pages":[{"title":"Developer tools","sidebarTitle":"Overview","href":"/pro/developer-tools/overview"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/pro/api/overview"}]}]},{"product":"Databunker OSS","pages":[{"title":"Databunker OSS","href":"/oss/get-started/overview"}]}]},"basePath":"","title":"Format-preserving tokenization - Databunker","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}