This endpoint retrieves a specific language variable using the default language.
Settings → Appearance.
GET /api/langvars/access_denied
This endpoint retrieves a specific language variable for a specific language using the language ID.
GET /api/languages/1/langvars/access_denied/
Alternatively, you can use the language code as a query parameter:
GET /api/langvars/access_denied/?sl=en
For both endpoints, a successful request will return HTTP/1.1 200 OK and JSON with the details of the language variable:
{
"lang_code": "en",
"name": "access_denied",
"value": "Access denied"
}
| Field | Type | Description |
|---|---|---|
| lang_code | string | The ISO language code (e.g., "en" for English) |
| name | string | The unique identifier of the language variable |
| value | string | The translated text value of the language variable |