Verifying an Application
Function
Verifies an application.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
POST /v1/{project_id}/digital-human-chat/robot/validate
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain the token by calling the IAM API used to obtain a user token. Value of X-Subject-Token in the response header. |
|
Authorization |
No |
String |
Authentication information. This parameter is mandatory for AK/SK authentication. |
|
X-Sdk-Date |
No |
String |
Time when a request is sent. This parameter is mandatory for AK/SK authentication. |
|
X-Project-Id |
No |
String |
Project ID. This parameter is mandatory for AK/SK authentication. |
|
X-App-UserId |
No |
String |
Third-party user ID, which does not allow Chinese characters. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
app_type |
Yes |
Integer |
Third-party application vendor. Options:
NOTE:
0: iFLYTEK AIUI; 1: Huawei Cloud CBS; 2: iFLYTEK Spark Cognitive Model; 6: Third-party Language Model; 7: AI Assistant; 8: Mobvoi
Value range: 0~32 |
|
huawei_ei_cbs |
No |
HuaweiEiCbs object |
Huawei Cloud CBS application configuration |
|
iflytek_aiui_config |
No |
IflytekAiuiConfig object |
iFLYTEK AIUI application configuration |
|
iflytek_spark |
No |
IflytekSpark object |
iFLYTEK Spark Cognitive Model application configuration |
|
third_party_model_config |
No |
ThirdPartyModelConfig object |
Third-party language model configuration |
|
mobvoi_config |
No |
MobvoiConfig object |
AI Ask application configuration |
|
wise_brain_config |
No |
WiseBrainConfig object |
AI assistant application configuration |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
app_id |
No |
String |
CBS application ID. |
|
region |
No |
Integer |
Region where CBS is Value range: 0~32 |
|
cbs_project_id |
No |
String |
Project ID of the region where CBS is |
|
sis_region |
No |
Integer |
Region where SIS is Value range: 0~32 |
|
sis_project_id |
No |
String |
Project ID of the region where SIS is |
|
enable_hot_words |
No |
Boolean |
Whether to enable the keyword function |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
app_id |
No |
String |
AIUI application ID. |
|
app_key |
No |
String |
AIUI application key. |
|
api_secret |
No |
String |
AIUI API key. |
|
is_production |
No |
Boolean |
Whether it is a production environment Default value: false |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
app_id |
No |
String |
iFLYTEK Spark Cognitive Model application ID. |
|
app_key |
No |
String |
iFLYTEK Spark Cognitive Model application key. |
|
api_secret |
No |
String |
iFLYTEK Spark Cognitive Model API key. |
|
is_production |
No |
Boolean |
Whether it is a production environment Default value: false |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
app_id |
No |
String |
Third-party language model application ID. |
|
app_key |
No |
String |
Third-party language model application key. |
|
llm_url |
No |
String |
Third-party language model URL. |
|
is_stream |
No |
Boolean |
Whether streaming response is used. Default value: false |
|
chat_rounds |
No |
Integer |
Number of supported multi-round dialogs. If the value is greater than 1, historical dialog information is carried when a third-party language model is requested. Value range: 1~10 Default value: 1 |
|
sis_region |
No |
Integer |
Region where SIS is Value range: 0~32 |
|
sis_project_id |
No |
String |
Project ID of the region where SIS is |
|
enable_hot_words |
No |
Boolean |
Whether to enable keywords (This parameter is valid when asr_type is set to EI_SIS). |
|
asr_type |
No |
String |
Interconnected ASR vendor type
|
|
asr_account |
No |
String |
ASR account (This parameter is not required when asr_type is set to EI_SIS.) |
|
asr_secret |
No |
String |
ASR key (This parameter is not required when asr_type is set to EI_SIS.) |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
app_key |
No |
String |
AI Ask application account. |
|
app_secret |
No |
String |
AI Ask application secret. |
|
role_id |
No |
String |
AI Ask role ID. |
|
sis_region |
No |
Integer |
Region where SIS is Value range: 0~32 |
|
sis_project_id |
No |
String |
Project ID of the region where SIS is |
|
enable_hot_words |
No |
Boolean |
Whether to enable the keyword function |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Request ID. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Example Requests
POST https://metastudio.cn-north-4.myhuaweicloud.com/v1/70b76xxxxxx34253880af501cdxxxxxx/digital-human-chat/robot/validate
{
"app_type" : 0,
"iflytek_aiui_config" : {
"app_id" : "e1xxxecf",
"app_key" : "xxxxxxxxxx",
"api_secret" : "xxxxxxxxxx",
"is_production" : false
}
}
Example Responses
Status code: 400
Parameters error, including the error code and its description.
{
"error_code" : "MSS.00000003",
"error_msg" : "Invalid parameter"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Returned when the request succeeded. |
|
400 |
Parameters error, including the error code and its description. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot