REST API Reference
Integrate Britoken into your CI/CD pipeline, custom translation tools, or web platforms. Our API is designed to be predictable, resource-oriented, and high-performance.
https://apis.langaihub.com/localization
Authentication
All API requests must include your secret API key in the Authorization header. You can generate multiple keys in your project settings.
Authorization: Bearer YOUR_SECRET_KEY
/fetch-keys
Retrieve all translation keys for a specific locale in JSON format.
Query Parameters
Sample Response
{
"status": "success",
"data": {
"welcome": "أهلاً بك",
"logout": "خروج"
}
}
/update-key
This action triggers an Instant Over-the-Air (OTA) push to all active SDK instances.
Request Body
{
"key": "welcome_message",
"value": "New Update!",
"locale": "en"
}
Info
Used primarily for automated translation workflows. If the key doesn't exist, Britoken will create it automatically within your dashboard.
Status Codes
200
Success
401
Unauthorized
404
Not Found
500
Server Error