List Languages
Authentication
Requires a Content API key. See Authentication.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The project ID |
Response
Response fields
| Field | Type | Description |
|---|---|---|
object | string | Always "list" |
data | array | Array of language objects |
data[].code | string | Locale code (e.g., en-us, fr-fr). Use this value as the locale parameter in other endpoints. |
data[].name | string | Human-readable language name |
data[].isDefault | boolean | Whether this is the project’s default language. The default language is listed first. |
Errors
| Code | Status | When |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid API key |
FORBIDDEN | 403 | API key does not have access to this project |
PROJECT_NOT_FOUND | 404 | Project does not exist or was deleted |
INVALID_PARAMS | 400 | Missing projectId |
INTERNAL_ERROR | 500 | Unexpected server error |
Examples
- cURL
- TypeScript
- Python