Help Center/ Cloud Search Service_KooSearch/ API Reference/ API/ APIs/ Model Management/ Obtain all intents of a specified model.
Updated on 2025-08-13 GMT+08:00

Obtain all intents of a specified model.

Function

Obtain all intents of a specified model.

URI

GET /v1/{project_id}/applications/{application_id}/uni-search/models/{model_name}/intents

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

Constraints:

N/A

Value range:

The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter.

Default value:

N/A

application_id

Yes

String

Definition:

Application ID. For details about how to obtain the application ID, see Obtaining an Application ID.

Constraints:

Character string

Value range:

The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter.

Default value:

N/A

model_name

Yes

String

Definition:

Model name.

Constraints:

N/A

Value range:

Only letters, digits, underscores (_), and hyphens (-) are allowed.

Default value:

N/A

Request Parameters

Table 2 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 3 Response body parameters

Parameter

Type

Description

intents

Array of Intent objects

Definition:

Intent list.

Value range:

N/A

Table 4 Intent

Parameter

Type

Description

name

String

Definition:

Intent name.

Value range:

N/A

labels

Array of strings

Definition:

Intent label.

Value range:

N/A

Status code: 400

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

Status code: 500

Table 6 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

None

Example Responses

Status code: 200

Model list.

{
  "intents" : [ {
    "name" : "main",
    "labels" : [ "Persona", "Weather", "Industry knowledge", "Industry knowledge - manufacturing", "Industry knowledge - medical", "Industry knowledge - government services", "Industry knowledge - finance", "Language task", "General knowledge", "Chitchat" ]
  }, {
    "name" : "calculation",
    "labels" : [ "Computing", "Non-computing" ]
  }, {
    "name" : "timeliness",
    "labels" : [ "Time-sensitive", "Time-insensitive" ]
  } ]
}

Status Codes

Status Code

Description

200

Model list.

400

Incorrect request body.

500

Internal error

Error Codes

See Error Codes.