Skip to main content

List Languages

GET /api/v1/content/projects/:projectId/languages
Returns all languages configured for a project, including locale codes, display names, and which language is the default. Use this endpoint to discover available locales before requesting translated content.

Authentication

Requires a Content API key. See Authentication.

Path parameters

ParameterTypeRequiredDescription
projectIdstringYesThe project ID

Response

{
  "object": "list",
  "data": [
    {
      "code": "en-us",
      "name": "English (US)",
      "isDefault": true
    },
    {
      "code": "fr-fr",
      "name": "French (France)",
      "isDefault": false
    },
    {
      "code": "vi-vn",
      "name": "Vietnamese",
      "isDefault": false
    }
  ]
}

Response fields

FieldTypeDescription
objectstringAlways "list"
dataarrayArray of language objects
data[].codestringLocale code (e.g., en-us, fr-fr). Use this value as the locale parameter in other endpoints.
data[].namestringHuman-readable language name
data[].isDefaultbooleanWhether this is the project’s default language. The default language is listed first.
Pass the code value as the locale query parameter to:

Errors

CodeStatusWhen
UNAUTHORIZED401Missing or invalid API key
FORBIDDEN403API key does not have access to this project
PROJECT_NOT_FOUND404Project does not exist or was deleted
INVALID_PARAMS400Missing projectId
INTERNAL_ERROR500Unexpected server error

Examples

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://studio.weaverse.io/api/v1/content/projects/clx1abc23def456ghij/languages"