Base URL
https://{tenant}.logzi.com/api/language/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0.
/api/language/get
Retrieve a single language by ID.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the language |
Example Request
GET /api/language/get?id=1
X-API-KEY: {your_api_key}
/api/language/list
Paginated retrieval of the language list with filtering options.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | array | Array of filter conditions |
Example Request
GET /api/language/list?list_offset=0
X-API-KEY: {your_api_key}
/api/language/save
Create or update a language. For a new record use data[id] = 0.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new language, >0 = update | |
name | string | Name of the language (e.g. "Magyar") | |
iso | string | ISO 639-1 code (e.g. "hu") |
Example Request
POST /api/language/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"name": "Magyar",
"iso": "hu"
}
}
/api/language/delete
Delete a language by ID.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the language to delete |
Example Request
POST /api/language/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!