Api
Upsert a manual translation override by sourceText + language + projectId. Creates if not found.
Authorization
apiKey x-api-key<token>
API key from the LangRelay dashboard. Org-level keys can access all projects; project-scoped keys are restricted to one project.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://api.langrelay.com/v1/translations" \ -H "Content-Type: application/json" \ -d '{ "projectId": "proj_abc123", "sourceText": "Get started", "language": "fr", "translatedText": "Commencer" }'{
"id": "translation_xyz789",
"segmentId": "string",
"sourceText": "Hello world",
"language": "fr",
"translatedText": "Bonjour le monde",
"source": "ai",
"confidence": 0.95,
"approved": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}