Get Individual Translation
const url = 'https://app.lionrapid.com/api/integrations/translations/example?format=content_unit&include_drafts=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.lionrapid.com/api/integrations/translations/example?format=content_unit&include_drafts=false'Get individual translation by encoded key.
Supports the LionRapid individual key lookup pattern.
Args: encoded_key: URL-encoded translation key (e.g., “en%3Aapp%3Awelcome”) api_key: Integration API key for authentication format: Response format - content_unit (default), html, or text
Returns: Single translation result
HTTP Status: - 200: Translation found and ready - 404: Translation doesn’t exist - 422: Invalid format parameter - 423: Translation exists but not ready for delivery
Raises: authentication_error: Invalid API key (401) validation_error: Invalid key format (400) translation_locked: Translation exists but not ready (423) not_found: Translation not found (404)
Example: GET /translations/en%3Aapp%3Auser.profile.name → Returns: {“meta”: {…}, “schema”: {…}, “translations”: {“user.profile.name”: “Name”}}
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Response format for translation retrieval.
Controls how translation values are formatted in GET responses:
- content_unit: Default indexed tags format (SDK-compatible)
- html: HTML strings with semantic elements
- text: Plain text without any formatting
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
Standard response for all translation requests (namespace and individual).
translations is a FLAT map of dotted keys → ContentUnit — the same shape
the write (sync) accepts. There is no nesting and no bare strings: every
value is {"text": ..., "styles": {...}} with styles always present
(empty when the string has no inline styling). A key with dots
(“user.profile.name”) stays a single flat key; clients must NOT re-nest it.
(html / text formats replace each ContentUnit leaf with a string but keep the same flat keys.)
Example ContentUnit with styles: {“text”: “Click <1>here</1>”, “styles”: {“1”: [“hyperlink:/home”]}}
object
Response metadata
object
API version
Target locale
Translation namespace
ISO timestamp of response generation
ICU parameter schema mapping (flat) keys to parameter lists
object
Flat map of dotted keys → ContentUnit (content_unit format) or string (html/text formats). No nesting.
object
Example
{ "meta": { "generated_at": "2025-10-02T12:00:00Z", "locale": "en", "namespace": "app", "source_context": "eng", "version": "1.0.0" }, "schema": { "item": [ "count" ], "user.profile.name": [], "welcome": [] }, "translations": { "item": { "styles": {}, "text": "{count, plural, =0 {no items} one {# item} other {# items}}" }, "link": { "styles": { "1": [ "hyperlink:/home" ] }, "text": "Click <1>here</1>" }, "user.profile.email": { "styles": {}, "text": "Email Address" }, "user.profile.name": { "styles": {}, "text": "Name" }, "welcome": { "styles": {}, "text": "Welcome to our app!" } }}Validation Error
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}