GET
/
v1
/
translations
curl -X GET "https://api.unlingo.com/v1/translations?release=1.0.0&namespace=translation&lang=en" \
  -H "x-api-key: YOUR_API_KEY"
{
    "welcome": "Welcome to our application",
    "login": "Sign In",
    "logout": "Sign Out",
    "nav": {
        "home": "Home",
        "about": "About",
        "contact": "Contact"
    },
    "buttons": {
        "save": "Save",
        "cancel": "Cancel",
        "delete": "Delete"
    },
    "messages": {
        "success": "Operation completed successfully",
        "error": "An error occurred"
    }
}

Overview

This is the primary endpoint for fetching translations from Unlingo. It returns ready-to-use translation data that can be directly integrated with any i18n library.

Authentication

You can authenticate using either method:
x-api-key
string
Your API key passed in the header x-api-key: YOUR_API_KEY
Authorization
string
Bearer token with your API key Authorization: Bearer YOUR_API_KEY

Required Parameters

release
string
required
The release tag to fetch translations from Examples: 1.0.0, staging, production
namespace
string
required
The namespace containing your translations Examples: translation, auth, dashboard
lang
string
required
The language code for the translations Examples: en, es, fr, de, zh

Example Request

curl -X GET "https://api.unlingo.com/v1/translations?release=1.0.0&namespace=translation&lang=en" \
  -H "x-api-key: YOUR_API_KEY"

Response

The endpoint returns translation data as a JSON object ready for use with i18n libraries. No nested objects - just your translations exactly as they should be used.
{
    "welcome": "Welcome to our application",
    "login": "Sign In",
    "logout": "Sign Out",
    "nav": {
        "home": "Home",
        "about": "About",
        "contact": "Contact"
    },
    "buttons": {
        "save": "Save",
        "cancel": "Cancel",
        "delete": "Delete"
    },
    "messages": {
        "success": "Operation completed successfully",
        "error": "An error occurred"
    }
}