Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Get supported entities

Returns the PII entity types Presidio Analyzer can detect for the requested language.

Privacy
GET/supportedentities

GetSupportedEntities queries the internal Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs Analyzer sidecar (GET /supportedentities) to list the PII entity types the analyzer can detect for a language. This endpoint reports upstream Analyzer capability; BookWorm’s runtime PII middleware calls only POST /analyze.

Overview

PropertyValue
Bounded ContextData Privacy (External Integration)
Owner ServicePresidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs (presidio-analyzer)
Protocol / FormatHTTP GET /supportedentities, application/json response
Gateway EndpointInternal sidecar GET /supportedentities (not exposed via API Gateway)
Authentication & AuthorizationNone (internal service-to-service network boundary)
Idempotency / ConcurrencyRead-only and naturally idempotent
Rate Limit / CachingNone (sidecar)
Contract Version1.0.0
Note

Capability discovery only: The returned list describes Presidio Analyzer capability rather than a BookWorm allowlist. At runtime, BookWorm calls Analyze textCommandv1.0.0Analyze textDetects PII entities in one text string or a batch, returning entity types, text offsets, confidence scores, and optiona...Ownerplatform-engineering-teamSchemaDiagramOpen docs (language: "en") without an entities filter and replaces all detected spans via Anonymize textCommandv1.0.0Anonymize textReplaces or transforms detected PII in text using the supplied analysis results and configured anonymization operators.Ownerplatform-engineering-teamSchemaDiagramOpen docs.

Request & Response Contract

Query Parameters

NameTypeRequiredConstraintsDescription
languagestringNoTwo-character ISO 639-1 code (e.g., en)Filters returned PII entity types to those supported for the specified language

Success Response (200 OK)

NameTypeRequiredConstraintsDescription
Root valuestring[]YesArray of uppercase entity type identifiersPII entity types Presidio Analyzer can detect (e.g., EMAIL_ADDRESS, PERSON, PHONE_NUMBER)

Behavior & Side Effects

  • Read-only discovery: Returns supported entity type identifiers from the sidecar without mutating state.

Error Responses

Status / CodeConditionClient Recovery Action
500 Internal Server ErrorUnsupported language ("No matching recognizers were found to serve the request.") or sidecar errorSupply a supported ISO 639-1 language code (e.g., en)

Get supported entities schema

0 properties
Array Schemaarray[object]

This schema defines an array of objects. Each item in the array has the properties shown below.

PII entity types supported by Presidio Analyzer for the requested language.

This array contains items of type: string