Request Body (application/json)
| Field | Type | Description |
| text |
string * |
Text to transliterate |
| mod |
string * |
lattocyr — Latin→Cyrillic cyrtolat — Cyrillic→Latin auto — auto-detect |
| ignoreHtml |
boolean |
Skip HTML tags during transliteration. Default: false |
Example Request
curl -X POST https://api.lotin.uz/api/translate \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text": "Salom dunyo", "mod": "lattocyr"}'
200 Response
{
"result": "Салом дунё",
"mod": "lattocyr"
}
Error Responses
| Status | Meaning |
| 401 | Missing or invalid token |
| 422 | Validation error (missing required fields) |
| 429 | Rate limit exceeded |