TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sagar-grv/ayush-synapse/llms.txt
Use this file to discover all available pages before exploring further.
/translate endpoint performs a concept lookup against the loaded mappings, returning the matched ICD-11 code for a given NAMASTE source code. This endpoint is rate limited to 30 requests per minute per IP address.
Endpoint
Method:POSTPath:
/translateAuth: None (demo mode)
Rate Limit: 30 requests per minute
Request Body
The NAMASTE code to translate. Must be a string value (e.g.
"NAM-001").The coding system of the source code. Must be
"NAMASTE".Response
The NAMASTE code that was submitted for translation.
The matched ICD-11 code (e.g.
"TM2-001" or "BM-001").The ICD-11 system the target code belongs to. Either
"ICD-11 TM2" or "ICD-11 Biomedicine".The mapping type. One of
equivalent, equal, wider, or subsumes.A float from
0.0 to 1.0 representing the accuracy of the mapping.Error Responses
| Status | Condition |
|---|---|
400 Bad Request | sourceCode or sourceSystem is missing or empty — returns "Validation failed" with a details array. |
400 Bad Request | sourceCode or sourceSystem is present but not a string type — returns "Invalid input format". |
404 Not Found | No mapping exists for the provided sourceCode / sourceSystem pair. |
400 from missing or empty fields includes a details array listing each validation failure:
400 — Validation Error
400 from a non-string value returns a flat error object (no details array):
400 — Invalid Input Format
404 — No Mapping Found
Examples
Response
Validation
BothsourceCode and sourceSystem are validated in two sequential steps before the lookup is performed:
- Presence check — Both fields must exist in the request body and must not be empty. Failures here return
{"error": "Validation failed", "details": [...]}with an array that names every missing field. - Type check — Both values must be strings. Passing a number,
null, or any non-string type triggers a separate{"error": "Invalid input format"}response with nodetailsarray.
Currently only the NAMASTE → ICD-11 translation direction is supported. Reverse lookups (ICD-11 → NAMASTE) are not yet implemented and will return a
404 if attempted.