CDN

Read the latest published bundle

The newest published bundle for a locale.

GET
/v1/cdn/{project}/{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.

Authorization

headerX-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.

Path Parameters

project*integer

The numeric project id. It must be the project the CDN key belongs to; any other id answers 404.

locale*string

A locale configured on the project, for example fr or pt-BR.

Query Parameters

format?string

Optional 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.

Value in"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"

Header Parameters

If-None-Match?string

An ETag from an earlier response. When it still matches, the answer is 304 with no body.

Response Body

The bundle body in its published format; Content-Type follows the format, for example application/json for json_flat.

application/json
  1. response
[key: string]?any
curl -X GET 'https://api.transglot.ai/v1/cdn/0/string'
{  "checkout.submit": "Payer maintenant",  "checkout.error.declined": "Votre carte a été refusée."}