Skip to main content
POST
/
languages
Enable a language for the firm
curl --request POST \
  --url https://api.contazen.ro/v1/languages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "en"
}'
{
  "success": true,
  "object": "language",
  "data": {
    "id": "<string>",
    "code": "en",
    "description": "English",
    "is_default": true
  },
  "created": true
}

Overview

Adds a firm_language row for the given ISO-639-1 two-letter code. The server lowercases the input and validates:
  • 400 invalid_code — code is not two alphabetic characters.
  • 400 unsupported_language — code is not in static_language.
The endpoint is idempotent: enabling an already-enabled language returns the existing row with created: false.

Authorizations

Authorization
string
header
required

Use your API key (sk_live_xxx or sk_test_xxx)

Body

application/json
code
string
required

Two-letter lowercase ISO-639-1 code.

Example:

"en"

Response

Language enabled or already present

success
boolean
object
enum<string>
Available options:
language
data
object
created
boolean