Read the latest published bundle
The newest published bundle for a locale.
The newest published bundle for a locale. Authenticated with a CDN key, not a deploy token. Responses carry Cache-Control: public, max-age=60, must-revalidate, an ETag and Access-Control-Allow-Origin: *, so a browser, an app or an edge cache can fetch it directly. Rate limited to 300 requests per minute per key and client address.
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.
format?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'{ "checkout.submit": "Payer maintenant", "checkout.error.declined": "Votre carte a été refusée."}