Skip to main content
POST
TypeScript

Authorizations

Authorization
string
header
required

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

Headers

idempotency-key
string

A header for idempotency purposes

Body

application/json
resourceId
string
required

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

Example:

"welcome-email"

resourceType
enum<string>
required

The resource type to associate translation with

Available options:
workflow,
layout
locale
string
required

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

Example:

"en_US"

content
object
required

Translation content as JSON object

Example:

Response

200 - application/json

Translation created or updated successfully

resourceId
string
required

Resource identifier

Example:

"welcome-email"

resourceType
enum<string>
required

Resource type

Available options:
workflow,
layout
Example:

"workflow"

locale
string
required

Locale code

Example:

"en_US"

content
object
required

Translation content as JSON object

Example:
createdAt
string
required

Creation timestamp

Example:

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

updatedAt
string
required

Last update timestamp

Example:

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