v4

OpenAPI 3.0.0MIT2026-07-311494532.1 MB
Translations

Create a translation

Create a translation for a specific workflow and locale, if the translation already exists, it will be updated

post/v2/translations

Headers

idempotency-keystring

A header for idempotency purposes

Request body

resourceIdstring required

The resource ID to associate translation with. Accepts identifier or slug format

resourceType'workflow' | 'layout' required

The resource type to associate translation with

localestring required

Locale code (e.g., en_US, es_ES)

contentobject required

Translation content as JSON object

Example request

{
  "resourceId": "welcome-email",
  "locale": "en_US",
  "content": {
    "welcome.title": "Welcome",
    "welcome.message": "Hello there!"
  }
}

Response

Translation created or updated successfully

resourceIdstring required

Resource identifier

resourceType'workflow' | 'layout' required

Resource type

localestring required

Locale code

contentobject required

Translation content as JSON object

createdAtstring required

Creation timestamp

updatedAtstring required

Last update timestamp

Example response

{
  "resourceId": "welcome-email",
  "resourceType": "workflow",
  "locale": "en_US",
  "content": {
    "welcome.title": "Welcome",
    "welcome.message": "Hello there!"
  },
  "createdAt": "2024-01-01T00:00:00.000Z",
  "updatedAt": "2024-01-01T00:00:00.000Z"
}