Read one published version
One exact published version.
One exact published version. Its body never changes, so it is served with Cache-Control: public, max-age=31536000, immutable. Only the 20 most recent versions of a locale are kept, so pin a recent one. Authenticated with a CDN key.
X-Transglot-Cdn-Key<token>A read-only CDN key (taicdn_...), minted under Settings, Developer, Runtime delivery (CDN). It can only read this project's published bundles. Prefer the header; it keeps the key out of URLs and logs.
project*integerThe numeric project id. It must be the project the CDN key belongs to; any other id answers 404.
locale*stringA locale configured on the project, for example fr or pt-BR.
version*integerformat?stringOptional assertion of the published format. A version is published in exactly one format; naming a different one answers 404 not-published, and an unknown format answers 422 invalid-format.
"json_flat""json_nested""android_xml""ios_strings""ios_stringsdict""flutter_arb""laravel_php""laravel_json""xliff_12""ios_xcstrings""gettext_po""yaml""csv""xlsx""xliff_20""java_properties""resx""markdown""unity_csv""unreal_po"If-None-Match?stringAn ETag from an earlier response. When it still matches, the answer is 304 with no body.
The bundle body in its published format; Content-Type follows the format, for example application/json for json_flat.
application/json- response
[key: string]?anycurl -X GET 'https://api.transglot.ai/v1/cdn/0/string/v0'{ "checkout.submit": "Payer maintenant", "checkout.error.declined": "Votre carte a été refusée."}