API Reference

Translato provides a RESTful API for custom integrations and automation. This document lists the primary endpoints and their functions.

1. Authentication

All requests must include either a session cookie (for the web app) or an X-API-Key header (for CLI/SDKs).

curl -H "X-API-Key: tlto_live_..." https://api.yourdomain.com/api/projects

2. Endpoints Catalog

Authentication (/api/auth)

MethodPathDescription
POST/loginLogin (returns 2FA challenge if enabled)
POST/refreshRotate access + refresh tokens
GET/meGet current user details
POST/logoutLogout the current session

Projects (/api/projects)

MethodPathDescription
GET/List all projects you have access to
POST/Create a new project
GET/:idGet project details, languages, and stats
PATCH/:idUpdate project settings
DELETE/:idDelete a project

Terms & Translations

MethodPathDescription
GET/api/projects/:projectId/termsList all keys (paginated)
POST/api/projects/:projectId/termsCreate or upsert terms
GET/api/projects/:projectId/translationsGet values for a specific language
POST/api/projects/:projectId/translationsCreate or update translations

VCS & Automation

MethodPathDescription
POST/api/projects/:projectId/vcs/syncTrigger a manual repository sync
POST/api/projects/:projectId/vcs/pushPush translations and create a PR
GET/api/projects/:projectId/tm/suggestGet Translation Memory suggestions

3. POEditor Compatibility

Translato offers a drop-in replacement for the POEditor v2 API. Simply point your existing tools to /api/v2.

  • POST /api/v2/projects/list
  • POST /api/v2/terms/add
  • POST /api/v2/projects/export

4. Swagger / OpenAPI

For a complete, interactive list of all endpoints, parameters, and response schemas, visit:

https://api.yourdomain.com/documentation