Updated on 2025-08-13 GMT+08:00

Obtain the language list.

Function

Obtain the language list.

URI

GET /v1/applications/uni-search/languages

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition:

Token used for API authentication. For details about how to obtain the token, see Obtaining an IAM User Token.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

data

Array of LanguageInfo objects

Definition:

List of supported languages.

Value range:

N/A

Table 3 LanguageInfo

Parameter

Type

Description

id

String

Definition:

Language ID.

Value range:

N/A

locale

String

Definition:

Language name.

Value range:

N/A

language

String

Definition:

Language name.

Value range:

  • zh==CHINESE

  • en==ENGLISH

  • th==THAI

  • ar==ARABIC

  • es==SPANISH

  • pt==PORTUGUESE.

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Definition:

Error Code.

Value range:

N/A

error_msg

String

Definition:

Error message.

Value range:

N/A

Status code: 500

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Definition:

Error Code.

Value range:

N/A

error_msg

String

Definition:

Error message.

Value range:

N/A

Example Requests

Obtaining a Prompt by prompt_id

/v1/applications/uni-search/languages

Example Responses

Status code: 200

Response body for modifying a prompt.

{
  "data" : [ {
    "id" : "zh",
    "locale" : "en",
    "language" : "CHINESE"
  }, {
    "id" : "en",
    "locale" : "en",
    "language" : "ENGLISH"
  }, {
    "id" : "ar",
    "locale" : "en",
    "language" : "ARABIC"
  }, {
    "id" : "th",
    "locale" : "en",
    "language" : "THAI"
  }, {
    "id" : "es",
    "locale" : "en",
    "language" : "SPANISH"
  }, {
    "id" : "pt",
    "locale" : "en",
    "language" : "PORTUGUESE"
  } ]
}

Status Codes

Status Code

Description

200

Response body for modifying a prompt.

400

Incorrect request body parameter.

500

Internal error.

Error Codes

See Error Codes.