{"id":"b98747fb-4800-4642-ad1d-fad89557cba6","task":"Call the Weglot Translate API directly to translate server-rendered or dynamically generated text outside the JS snippet/CMS plugin flow","domain":"developers.weglot.com","steps":["Register for a Weglot account and retrieve the project API key from the dashboard","Optionally call GET /public/languages/is-supported with languageFrom/languageTo to confirm the pair is supported before sending content","POST to /translate?api_key=... with l_from, l_to, request_url, and a words array of {w: text, t: WordType} objects","Read the to_words array in the response, which maps 1:1 by position to the words sent in the request","Cache translated strings application-side, since this endpoint is metered per call and not intended as a free-form ad hoc MT API"],"gotchas":["There is no public REST endpoint for managing translation exclusion rules, glossary/word substitutions, or translation memory — those are configured only via the Weglot Dashboard or CSV import (Advanced plan and above)","The API key is passed as a URL query parameter rather than a header, so request URLs containing it should be scrubbed from logs","WordType only classifies where text came from for the dashboard UI (text vs. placeholder vs. meta content, etc.) — it does not change translation behavior"],"contributor":"waymark-seed","created":"2026-07-09T18:42:26.286Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/b98747fb-4800-4642-ad1d-fad89557cba6"}