Skip to main content
POST
/
v1
/
{workspace}
/
translation
/
content
/
{locale_file}
/
Add Translation
curl -X POST "https://management-api.suprsend.com/v1/{workspace}/translation/content/{locale_file}/" \
  --header 'Authorization: ServiceToken <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "content": {
      "welcome": "Bienvenue",
      "goodbye": "Au revoir"
    }
  }'
{
  "filename": "fr.json",
  "locale": "fr",
  "locale_name": "French",
  "namespace": null,
  "action": "updated",
  "updated_at": "2025-10-29T17:14:33.048313Z",
  "content": {
    "task_created": "Tâche créée",
    "task_completed": "Tâche terminée",
    "task_due": "Tâche due",
    "task_assigned": "Tâche assignée"
  }
}

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required

Workspace slug (staging, production, etc.)

locale_file
string
required

Locale file name (e.g., "fr.json", "es-MX.json", "auth.en.json")

Body

application/json
locale
string
required

Locale file name (e.g., "fr.json", "es-MX.json", "auth.en.json")

Example:

"fr.json"

content
object
required

Translation key-value pairs in JSON format

Response

Translation file successfully updated

filename
string

Name of the translation file

Example:

"fr.json"

locale
string

Locale code for the translation file

Example:

"fr"

locale_name
string

Human-readable name of the locale

Example:

"French"

namespace
string | null

Namespace for the translation file, if any. Namespace can be used to group translations by feature or module.

Example:

null

action
enum<string>

action done in the version compared to last commit.

Available options:
added,
updated,
deleted,
unchanged
Example:

"updated"

updated_at
string<date-time>

When the translation file was last updated

content
object

Translation key-value pairs