Create a translation
Create a translation using the Novu REST API. Requires your environment secret key in the Authorization header.
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
Headers
A header for idempotency purposes
Body
The resource ID to associate translation with. Accepts identifier or slug format
"welcome-email"
The resource type to associate translation with
workflow, layout Locale code (e.g., en_US, es_ES)
"en_US"
Translation content as JSON object
{
"welcome.title": "Welcome",
"welcome.message": "Hello there!"
}Response
Translation created or updated successfully
Resource identifier
"welcome-email"
Resource type
workflow, layout "workflow"
Locale code
"en_US"
Translation content as JSON object
{
"welcome.title": "Welcome",
"welcome.message": "Hello there!"
}Creation timestamp
"2024-01-01T00:00:00.000Z"
Last update timestamp
"2024-01-01T00:00:00.000Z"