API referenceText
Detect Unicode or Zawgyi Myanmar text
Non-Myanmar spans are preserved in the input but omitted from encoding segments.
POST
/text/detectNon-Myanmar spans are preserved in the input but omitted from encoding segments.
Authorization
bearerApiKey AuthorizationBearer <token>
A MyanLex API key supplied as a bearer token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/text/detect" \ -H "Content-Type: application/json" \ -d '{ "text": "string" }'{ "input": "string", "encoding": "unicode", "confidence": 0, "profile": "zawgyi-unicode-v1", "segments": [ { "text": "string", "encoding": "unicode", "zawgyiProbability": 0, "start": 0, "end": 0 } ]}