Replace every detected span with a typed placeholder ([EMAIL_1], [FIRST_NAME_1]) and store the originals in the vault under a session, each sealed to the current vault key pair’s public key. The detect service can’t decrypt them. Omit session_id to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session’s sliding TTL.
AWS Signature Version 4 for service vpc-lattice-svcs in the service's Region, signed as the caller's own IAM role, with the header x-amz-content-sha256: UNSIGNED-PAYLOAD (plus x-amz-security-token for temporary credentials). Use the tenet-pii-lattice client or any SigV4 signer. The role needs vpc-lattice-svcs:Invoke in its own IAM policy and must be named in the service's auth policy.
Body
application/json
text
string
required
confidence_threshold
number | null
code_filter
boolean | null
session_id
string | null
Response
Successful Response
text
string
required
session_id
string
required
expires_at
number
required
findings
FindingOut · object[]
required
Show child attributes
timings
DeidentifyTimings · object
required
Server-side timing of a /deidentify call, in milliseconds: detect_ms for detection and placeholder replacement, vault_ms for the rest (opening the session, sealing and storing the values), and total_ms for the whole call, excluding network time.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Tenet Labs","description":"Tenet Labs documentation — Tenet Guardrails (hosted guardrails for agent tool calls, served by the Judge API) and PII Engine (Enterprise), de-identification that runs in your own AWS account.","colors":{"primary":"#254BB0","light":"#7B9AEB","dark":"#1A3A8F"},"logo":{"light":"https://mintcdn.com/tenetlabs/Ux15lHnF6gElpQTR/logo/light.svg?fit=max\u0026auto=format\u0026n=Ux15lHnF6gElpQTR\u0026q=85\u0026s=ad2a07649adcf4d8be428b5187f69dd3","dark":"https://mintcdn.com/tenetlabs/Ux15lHnF6gElpQTR/logo/dark.svg?fit=max\u0026auto=format\u0026n=Ux15lHnF6gElpQTR\u0026q=85\u0026s=63483a7e8bc79fe2d8552c527fb1f187","href":"https://tenetlabs.com"},"favicon":"https://mintcdn.com/tenetlabs/f83ct0NG_FFBa-fQ/favicon.svg?fit=max\u0026auto=format\u0026n=f83ct0NG_FFBa-fQ\u0026q=85\u0026s=cb379042881580f3b646d44dc107ca17","navbar":{"links":[{"href":"mailto:team@tenetlabs.com","label":"Support"}],"primary":{"type":"button","label":"Get API keys","href":"https://platform.tenetlabs.com"}},"footer":{"socials":{"github":"https://github.com/tenetlabsdev"}},"fonts":{"heading":{"family":"DM Sans"},"body":{"family":"IBM Plex Sans"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","add-mcp","cursor","vscode","windsurf"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tenetlabs","hasAudioNarration":false,"actualSubdomain":"tenetlabs","customDomains":["docs.tenetlabs.com"],"gitSource":{"type":"github","owner":"tenetlabsdev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10eb819ffae5051c4157e3"},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0c81caf742bc3f276814f0","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":42},{"language":"default","tag":"PII Engine (Enterprise)","count":30},{"language":"default","tag":"Tenet Guardrails","count":29},{"language":"default","tag":"API Reference","count":16},{"language":"default","tag":"Concepts","count":10},{"language":"default","tag":"Getting Started","count":9},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Operate","count":7},{"language":"default","tag":"Judge API","count":7},{"language":"default","tag":"PII Engine API","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"team@tenetlabs.com","showHelpButton":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":[{"_id":"6a29da138cafb8a43c371463","deploymentId":"6a14c5b5c81d589b95bf2b49","questionText":"How do I add guardrails to my agent?","status":"active","generatedBy":"manual","createdAt":"2026-06-10T21:41:39.491Z","updatedAt":"2026-06-10T21:41:39.491Z","__v":0}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"pii-engine/api-reference/detect-service/de-identify-text","slug":"/pii-engine/api-reference/detect-service/de-identify-text","pageMetadata":{"title":"De-identify text","description":"Replace every detected span with a typed placeholder (`[EMAIL_1]`, `[FIRST_NAME_1]`) and store the originals in the vault under a session, each sealed to the current vault key pair's public key. The detect service can't decrypt them. Omit `session_id` to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session's sliding TTL.","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json post /deidentify","href":"/pii-engine/api-reference/detect-service/de-identify-text","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Replace every detected span with a typed placeholder (\", _jsx(_components.code, {\n children: \"[EMAIL_1]\"\n }), \", \", _jsx(_components.code, {\n children: \"[FIRST_NAME_1]\"\n }), \") and store the originals in the vault under a session, each sealed to the current vault key pair’s public key. The detect service can’t decrypt them. Omit \", _jsx(_components.code, {\n children: \"session_id\"\n }), \" to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session’s sliding TTL.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"De-identify text","description":"Replace every detected span with a typed placeholder (`[EMAIL_1]`, `[FIRST_NAME_1]`) and store the originals in the vault under a session, each sealed to the current vault key pair's public key. The detect service can't decrypt them. Omit `session_id` to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session's sliding TTL.","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json post /deidentify","href":"/pii-engine/api-reference/detect-service/de-identify-text","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"De-identify text","operationId":"deidentify_endpoint_deidentify_post","requestBody":"21e52034-49a4-4441-98a9-8dbb4dcef35b","responses":{"200":"60c875d4-57b0-4850-b3b6-d8df28116b7b","400":"fdd1412d-1da7-44b8-818c-53c7cecd1f60","403":"c8b08a7f-e301-494c-ae04-f5b370115d37","404":"088faf51-7aa9-42d8-8d64-84ba8a028cfa","409":"9f61f0e6-62a3-42a2-988f-c46d9546df25","422":"ca35c5fc-83da-4127-baf1-de3ce2d28d1f"},"tags":["Detect service"],"security":["7fbbd33a-76d9-4e26-9513-d1f87afb4dde"],"servers":["d8ca15b4-3189-469c-929f-a07c8a3aec92"],"description":"Replace every detected span with a typed placeholder (`[EMAIL_1]`, `[FIRST_NAME_1]`) and store the originals in the vault under a session, each sealed to the current vault key pair's public key. The detect service can't decrypt them. Omit `session_id` to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session's sliding TTL.","method":"post","type":"path","path":"/deidentify","baseUrlOptions":["https://{detect_endpoint}"],"title":"De-identify text","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"text","typeLabel":"string"},"confidence_threshold":{"oneOf":[{"type":"number","title":"Confidence Threshold","uniqueKey":"confidence_threshold.oneOf.0","typeLabel":"number"},{"type":"null","title":"Confidence Threshold","uniqueKey":"confidence_threshold.oneOf.1","typeLabel":"null"}],"uniqueKey":"confidence_threshold","typeLabel":"number | null"},"code_filter":{"oneOf":[{"type":"boolean","title":"Code Filter","uniqueKey":"code_filter.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Code Filter","uniqueKey":"code_filter.oneOf.1","typeLabel":"null"}],"uniqueKey":"code_filter","typeLabel":"boolean | null"},"session_id":{"oneOf":[{"type":"string","title":"Session Id","uniqueKey":"session_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Session Id","uniqueKey":"session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"session_id","typeLabel":"string | null"}},"type":"object","required":["text"],"title":"DeidentifyRequest","uniqueKey":"","typeLabel":"DeidentifyRequest · object"},"examples":{"Example":{"title":"Example","value":{"text":"\u003cstring>","confidence_threshold":123,"code_filter":true,"session_id":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"60c875d4-57b0-4850-b3b6-d8df28116b7b":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"text","typeLabel":"string"},"session_id":{"type":"string","title":"Session Id","isRequired":true,"uniqueKey":"session_id","typeLabel":"string"},"expires_at":{"type":"number","title":"Expires At","isRequired":true,"uniqueKey":"expires_at","typeLabel":"number"},"findings":{"items":{"properties":{"label":{"type":"string","title":"Label","isRequired":true,"uniqueKey":"findings.items.[INDEX].label","typeLabel":"string"},"start":{"type":"integer","title":"Start","isRequired":true,"uniqueKey":"findings.items.[INDEX].start","typeLabel":"integer"},"end":{"type":"integer","title":"End","isRequired":true,"uniqueKey":"findings.items.[INDEX].end","typeLabel":"integer"},"confidence":{"type":"number","title":"Confidence","isRequired":true,"uniqueKey":"findings.items.[INDEX].confidence","typeLabel":"number"},"source":{"type":"string","title":"Source","isRequired":true,"uniqueKey":"findings.items.[INDEX].source","typeLabel":"string"}},"type":"object","required":["label","start","end","confidence","source"],"title":"FindingOut","uniqueKey":"findings.items.[INDEX]","typeLabel":"FindingOut · object"},"type":"array","title":"Findings","isRequired":true,"uniqueKey":"findings","typeLabel":"FindingOut · object[]"},"timings":{"properties":{"detect_ms":{"type":"number","title":"Detect Ms","isRequired":true,"uniqueKey":"timings.detect_ms","typeLabel":"number"},"vault_ms":{"type":"number","title":"Vault Ms","isRequired":true,"uniqueKey":"timings.vault_ms","typeLabel":"number"},"total_ms":{"type":"number","title":"Total Ms","isRequired":true,"uniqueKey":"timings.total_ms","typeLabel":"number"}},"type":"object","required":["detect_ms","vault_ms","total_ms"],"title":"DeidentifyTimings","description":"Server-side timing of a `/deidentify` call, in milliseconds: `detect_ms` for detection and placeholder replacement, `vault_ms` for the rest (opening the session, sealing and storing the values), and `total_ms` for the whole call, excluding network time.","isRequired":true,"uniqueKey":"timings","typeLabel":"DeidentifyTimings · object"}},"type":"object","required":["text","session_id","expires_at","findings","timings"],"title":"DeidentifyResponse","uniqueKey":"","typeLabel":"DeidentifyResponse · object"},"examples":{"Example":{"title":"Example","value":{"text":"\u003cstring>","session_id":"\u003cstring>","expires_at":123,"findings":[{"label":"\u003cstring>","start":123,"end":123,"confidence":123,"source":"\u003cstring>"}],"timings":{"detect_ms":123,"vault_ms":123,"total_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"fdd1412d-1da7-44b8-818c-53c7cecd1f60":{"description":"Malformed `session_id` (not an id the server issues), or the session reached its placeholder limit.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":"malformed session id: 'not-a-session'"},"examples":{"Example":{"title":"Example","value":{"detail":"malformed session id: 'not-a-session'"}}},"exampleType":"examples"}},"exampleType":"examples"},"c8b08a7f-e301-494c-ae04-f5b370115d37":{"description":"Refused. Either VPC Lattice denied the request under the service's auth policy (the caller's role isn't allowed this route and method, the request isn't SigV4-signed for `vpc-lattice-svcs`, the source VPC isn't allowed, or the approval tag is missing), or the service's own re-check refused it (peer outside the Lattice ranges, missing identity headers, another service's ARN, a non-canonical path, or a principal outside the route's allow-list). The service's refusal is the fixed body below and logs the reason at WARNING; Lattice's refusal carries Lattice's own body. Never retried by the client.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":"forbidden"},"examples":{"Example":{"title":"Example","value":{"detail":"forbidden"}}},"exampleType":"examples"}},"exampleType":"examples"},"088faf51-7aa9-42d8-8d64-84ba8a028cfa":{"description":"A client-supplied `session_id` that is unknown or expired.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":"unknown or expired session_id"},"examples":{"Example":{"title":"Example","value":{"detail":"unknown or expired session_id"}}},"exampleType":"examples"}},"exampleType":"examples"},"9f61f0e6-62a3-42a2-988f-c46d9546df25":{"description":"Two concurrent writers to one session. Retry the request.","content":{"application/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":"concurrent deidentify writes to one session; retry the request"},"examples":{"Example":{"title":"Example","value":{"detail":"concurrent deidentify writes to one session; retry the request"}}},"exampleType":"examples"}},"exampleType":"examples"},"ca35c5fc-83da-4127-baf1-de3ce2d28d1f":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7fbbd33a-76d9-4e26-9513-d1f87afb4dde":{"sigv4":{"type":"apiKey","in":"header","name":"Authorization","description":"AWS Signature Version 4 for service `vpc-lattice-svcs` in the service's Region, signed as the caller's own IAM role, with the header `x-amz-content-sha256: UNSIGNED-PAYLOAD` (plus `x-amz-security-token` for temporary credentials). Use the `tenet-pii-lattice` client or any SigV4 signer. The role needs `vpc-lattice-svcs:Invoke` in its own IAM policy and must be named in the service's auth policy.","scopes":[],"schemeName":"sigv4"}}},"servers":{"d8ca15b4-3189-469c-929f-a07c8a3aec92":{"url":"https://{detect_endpoint}","description":"Detect service: the `DetectEndpoint` output (Terraform `detect_endpoint`; EKS: the detect HTTPRoute's assigned domain name).","variables":{"detect_endpoint":{"default":"tenet-pii-detect-0123456789abcdef0.7d67968.vpc-lattice-svcs.us-east-1.on.aws"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"AWS Signature Version 4 for service `vpc-lattice-svcs` in the service's Region, signed as the caller's own IAM role, with the header `x-amz-content-sha256: UNSIGNED-PAYLOAD` (plus `x-amz-security-token` for temporary credentials). Use the `tenet-pii-lattice` client or any SigV4 signer. The role needs `vpc-lattice-svcs:Invoke` in its own IAM policy and must be named in the service's auth policy.","scopes":[],"schemeName":"sigv4"},"schema":{"title":"Authorization","type":"string","description":"AWS Signature Version 4 for service `vpc-lattice-svcs` in the service's Region, signed as the caller's own IAM role, with the header `x-amz-content-sha256: UNSIGNED-PAYLOAD` (plus `x-amz-security-token` for temporary credentials). Use the `tenet-pii-lattice` client or any SigV4 signer. The role needs `vpc-lattice-svcs:Invoke` in its own IAM policy and must be named in the service's auth policy.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"sigv4","name":"Authorization"}],"title":"sigv4"}]},"originalFileLocation":"pii-engine/api-reference/openapi.json"},"subdomain":"tenetlabs","siteName":"Tenet Labs","title":"De-identify text - Tenet Labs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T22:51:52.449Z","originalFileLocation":"pii-engine/api-reference/detect-service/de-identify-text.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=\"description\" content=\"Replace every detected span with a typed placeholder ([EMAIL_1], [FIRST_NAME_1]) and store the originals in the vault under a session, each sealed to the current vault key pair\u0026#x27;s public key. The detect service can\u0026#x27;t decrypt them. Omit session_id to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session\u0026#x27;s sliding TTL.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tenet Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_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/tenetlabs/KiptfhnHYoT5u1IQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"De-identify text - Tenet Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replace every detected span with a typed placeholder ([EMAIL_1], [FIRST_NAME_1]) and store the originals in the vault under a session, each sealed to the current vault key pair\u0026#x27;s public key. The detect service can\u0026#x27;t decrypt them. Omit session_id to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session\u0026#x27;s sliding TTL.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tenet Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tenetlabs.mintlify.site/_mintlify/api/og/v2?division=Detect+service\u0026amp;title=De-identify+text\u0026amp;description=Replace+every+detected+span+with+a+typed+placeholder+%28%60%5BEMAIL_1%5D%60%2C+%60%5BFIRST_NAME_1%5D%60%29+and+store+the+originals+in+the+vault+under+a+session%2C+each+sealed+to+the+cu\u0026amp;theme=391546b21e00cc0a494931a4\u0026amp;signature=721ba0474b6a5ea3e1bc4ec051b9530b6985198646e5fad39f81e82d611cb238\">\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=\"De-identify text - Tenet Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replace every detected span with a typed placeholder ([EMAIL_1], [FIRST_NAME_1]) and store the originals in the vault under a session, each sealed to the current vault key pair\u0026#x27;s public key. The detect service can\u0026#x27;t decrypt them. Omit session_id to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session\u0026#x27;s sliding TTL.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tenetlabs.mintlify.site/_mintlify/api/og/v2?division=Detect+service\u0026amp;title=De-identify+text\u0026amp;description=Replace+every+detected+span+with+a+typed+placeholder+%28%60%5BEMAIL_1%5D%60%2C+%60%5BFIRST_NAME_1%5D%60%29+and+store+the+originals+in+the+vault+under+a+session%2C+each+sealed+to+the+cu\u0026amp;theme=391546b21e00cc0a494931a4\u0026amp;signature=721ba0474b6a5ea3e1bc4ec051b9530b6985198646e5fad39f81e82d611cb238\">\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/tenetlabs/KiptfhnHYoT5u1IQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tenet Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#254BB0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pii-engine/api-reference/detect-service/de-identify-text.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tenetlabs.com/#organization\",\"name\":\"Tenet Labs\",\"url\":\"https://docs.tenetlabs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tenetlabs/Ux15lHnF6gElpQTR/logo/light.svg?fit=max\u0026auto=format\u0026n=Ux15lHnF6gElpQTR\u0026q=85\u0026s=ad2a07649adcf4d8be428b5187f69dd3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tenetlabs.com#website\",\"name\":\"Tenet Labs\",\"url\":\"https://docs.tenetlabs.com\",\"publisher\":{\"@id\":\"https://docs.tenetlabs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text#webpage\",\"url\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text\",\"name\":\"De-identify text\",\"description\":\"Replace every detected span with a typed placeholder ([EMAIL_1], [FIRST_NAME_1]) and store the originals in the vault under a session, each sealed to the current vault key pair's public key. The detect service can't decrypt them. Omit session_id to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session's sliding TTL.\",\"dateModified\":\"2026-11-11T22:51:52.449Z\",\"isPartOf\":{\"@id\":\"https://docs.tenetlabs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PII Engine API\",\"item\":\"https://docs.tenetlabs.com/pii-engine/api-reference/health/liveness\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Detect service\",\"item\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/detect-pii\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"De-identify text\",\"item\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text#apireference\",\"headline\":\"De-identify text\",\"name\":\"De-identify text\",\"description\":\"Replace every detected span with a typed placeholder ([EMAIL_1], [FIRST_NAME_1]) and store the originals in the vault under a session, each sealed to the current vault key pair's public key. The detect service can't decrypt them. Omit session_id to start a new session; pass a server-issued one to extend it. A value that recurs in a session reuses its placeholder. Every write extends the session's sliding TTL.\",\"url\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tenetlabs.com/pii-engine/api-reference/detect-service/de-identify-text#webpage\"},\"dateModified\":\"2026-11-11T22:51:52.449Z\",\"publisher\":{\"@id\":\"https://docs.tenetlabs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tenetlabs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tenet Labs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Tenet Labs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pii-engine/api-reference/detect-service/de-identify-text.md","siteName":"Tenet Labs","nav":{"global":null,"products":[{"product":"Tenet Guardrails","icon":"gavel","description":"Guardrails for agent tool calls, decided by the Judge","pages":[{"title":"Tenet Guardrails","href":""}]},{"product":"PII Engine (Enterprise)","icon":"shield-halved","description":"De-identification that runs in your AWS account","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/pii-engine/overview"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API overview","href":"/pii-engine/api-reference/introduction"}]},{"group":"PII Engine API","pages":[{"group":"Health","pages":[{"title":"Liveness","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json get /healthz","href":"/pii-engine/api-reference/health/liveness"},{"title":"Readiness","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json get /readyz","href":"/pii-engine/api-reference/health/readiness"}]},{"group":"Detect service","pages":[{"title":"Detect PII","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json post /detect","href":"/pii-engine/api-reference/detect-service/detect-pii"},{"title":"Redact text","description":"Detect, then rewrite the text with each span replaced by `strategy` (`mask`, `last_four`, `hash_prefix`, `drop`). Nothing is stored; the mapping is not recoverable.","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json post /redact","href":"/pii-engine/api-reference/detect-service/redact-text"},{"title":"De-identify text","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json post /deidentify","href":"/pii-engine/api-reference/detect-service/de-identify-text"},{"title":"Erase a session","description":"Erase a session and its stored values. Allowed only to roles in the erasure invoker list. Each erasure writes a `tenet.erasure-audit.v1` record before anything is deleted. Always 204, including for unknown or already-deleted ids.","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json delete /sessions/{session_id}","href":"/pii-engine/api-reference/detect-service/erase-a-session"}]},{"group":"Rehydrate service","pages":[{"title":"Re-identify text","deprecated":null,"version":null,"openapi":"/pii-engine/api-reference/openapi.json post /reidentify","href":"/pii-engine/api-reference/rehydrate-service/re-identify-text"}]}]}]}]}]},"basePath":"","title":"De-identify text - Tenet Labs","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}