Legesher
Overview
Legesher Bridge API 0.1.0
Section titled “ Legesher Bridge API 0.1.0 ”Localize Python source between human languages over HTTP.
The Legesher Bridge API runs the open-source Legesher engine. It rewrites Python’s own words in another human language, reads the language packs, gathers the facts for explaining code in a language, and statically checks files, translated or not.
Privacy. Submitted source is never logged and never used for training.
Versioning. Every route lives under /v1. The versioning and deprecation
policy is at https://docs.legesher.io/api/versioning/.
Authentication. Send Authorization: Bearer <api key>. Keys are created
on the keys page at https://app.legesher.io, or by device sign-in
(/v1/oauth/*, RFC 8628) from a command line or editor. /v1/health and the
/v1/languages* listing need no key. /v1/translate, /v1/translate/snippet,
/v1/validate and /v1/explain also answer a caller without a key, on a small
anonymous trial. /v1/me requires a key; /v1/map and enhanced translation
require a paid plan.
Limits and usage. Responses from those routes, success and error alike,
carry X-RateLimit-Limit/-Remaining/-Reset and
X-Usage-Characters-Used/-Remaining. A request refused before the caller is
identified does not, and a plan with no limit leaves the matching set out. Every response
carries X-Request-ID.
A request over a limit gets 429 (there is no metered overage); only a
successfully served request is billed.
Errors use one envelope, {"error": {"code", "message"}}, that never
contains filesystem paths, stack traces, or submitted source.
Guides and this reference: https://docs.legesher.io/api/.