curl examples
Complete, copy-pasteable curl examples for every endpoint.
Setup
Export your API key once in your shell session:
bash
export I18N_API_KEY="key_live_XXXX"Health check
bash
curl https://sapi.i18nme.com/healthManifest
bash
# Live
curl https://sapi.i18nme.com/v1/manifest \
-H "X-API-Key: $I18N_API_KEY"
# Cached
curl https://sapi.i18nme.com/v1/cached/manifest \
-H "X-API-Key: $I18N_API_KEY"Translations — all keys
bash
# All approved translations (live)
curl "https://sapi.i18nme.com/v1/translations/en" \
-H "X-API-Key: $I18N_API_KEY"
# Filter to draft only
curl "https://sapi.i18nme.com/v1/translations/en?status=draft" \
-H "X-API-Key: $I18N_API_KEY"
# Cached (recommended for production)
curl "https://sapi.i18nme.com/v1/cached/translations/en" \
-H "X-API-Key: $I18N_API_KEY"Translations — single group
bash
curl "https://sapi.i18nme.com/v1/translations/en/nav" \
-H "X-API-Key: $I18N_API_KEY"
# Cached
curl "https://sapi.i18nme.com/v1/cached/translations/en/nav" \
-H "X-API-Key: $I18N_API_KEY"Translations — single key
bash
curl "https://sapi.i18nme.com/v1/translations/en/nav/home" \
-H "X-API-Key: $I18N_API_KEY"
# Cached
curl "https://sapi.i18nme.com/v1/cached/translations/en/nav/home" \
-H "X-API-Key: $I18N_API_KEY"Pretty-print with jq
bash
curl -s "https://sapi.i18nme.com/v1/translations/en" \
-H "X-API-Key: $I18N_API_KEY" | jq .
# List available language codes
curl -s "https://sapi.i18nme.com/v1/manifest" \
-H "X-API-Key: $I18N_API_KEY" | jq '[.languages[].code]'