Movabase Docs
Public API

Add language

Adds a new language to the project. Creates file_translation records for all existing files (and optionally additional file names). Defaults to `default.json` if no files exist. Requires `canEditTranslations` permission.

POST
/api/projects/{project-id}/languages

Authorization

sb-access-token<token>

Supabase Auth session cookie. Automatically set when users log in via the Movabase web app.

In: cookie

Path Parameters

project-id*string

Project ID

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/languages" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "name": "string",    "emoji": "string"  }'
{  "languages": [    {      "code": "string",      "name": "string",      "emoji": "string"    }  ]}