Skip to main content
post/v2/translations
Request example
Response
post/v2/translations

Authorization

Authorizationstringheaderrequired#
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

1 alternative authorization method available — see the spec for details.

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
resourceIdstringrequired#
The resource ID to associate translation with. Accepts identifier or slug format

Example:"welcome-email"

resourceTypeenum<string>required#
The resource type to associate translation with
Options:workflowlayout
localestringrequired#
Locale code (e.g., en_US, es_ES)

Example:"en_US"

contentobjectrequired#
Translation content as JSON object
Example:

Responses

application/json
200
Translation created or updated successfully
resourceIdstringrequired#
Resource identifier

Example:"welcome-email"

resourceTypeenum<string>required#
Resource type
Options:workflowlayout

Example:"workflow"

localestringrequired#
Locale code

Example:"en_US"

contentobjectrequired#
Translation content as JSON object
Example:
createdAtstringrequired#
Creation timestamp

Example:"2024-01-01T00:00:00.000Z"

updatedAtstringrequired#
Last update timestamp

Example:"2024-01-01T00:00:00.000Z"