Powering your Workflow.
Trepoo provides a robust API for programmatic access to your translation assets. Integrate Trepoo directly into your CI/CD pipelines or custom build scripts.
Authentication
All API calls require authentication via an API Key. You can generate and manage your API keys in the Organization Settings.
Note: API access is exclusively available for PRO and ENTERPRISE plans.
Endpoints
/api/translations/[org-slug]/[project-slug]Fetch all project translation files in a single request. Perfect for syncing keys during a frontend build process.
Query Parameters
- formatSet to
zipto receive an archive instead of JSON.
Response Example
{
"success": true,
"organization": "acme",
"project": "web-app",
"translations": {
"en.json": { "welcome": "Hello" },
"de.json": { "welcome": "Willkommen" }
}
}/api/translations/[org-slug]/[project-slug]Programmatically push new translation keys to Trepoo. This will merge new keys and update existing ones (Upsert).
JSON Payload Structure
{
"filePath": "en.json",
"data": {
"login": {
"title": "Welcome Back",
"button": "Sign In"
}
}
}-d '@translations.json' "https://trepoo.com/api/translations/acme/web"
Using ?format=zip will return a binary application/zip file. This is the recommended way to download large projects as it preserves the original directory structure (e.g., nested folders in your repo).
How to fetch data:
You can automate the download and extraction in your build script (e.g., in package.json or a CI pipeline):
High Performance
Optimized response times for massive JSON objects.
Strict Auth
Organization-level scoping for secure asset access.
Build Ready
Designed specifically for Next.js, React, and Vite CI pipelines.