Get references
Question
Question Message
API Reference
Datasets
- GETGet datasets
- POSTCreate dataset
- GETGet dataset
- PUTUpdate dataset
- DELDelete dataset
- GETGet dataset files counts
- GETGet dataset files
- PUTUpdate dataset file
- POSTAdd file to dataset
- DELDelete dataset file
- PUTRefresh dataset file list
- PUTRefresh dataset upload file list
- PUTRefresh dataset upload file list
- POSTAdd link to dataset
- POSTUpdate Dataset Configs
- POSTBind dataset to ai
- DELUnbind dataset to ai
- GETGet ai datasets
- POSTAdd Lark files to dataset by appid, app secret and share urls
- GETget integration rules
GBase AI
Get AI
You can get an AI Info
GET
/
v1
/
ais
/
{ai_id}
Copy
curl --request GET \
--url https://api.gbase.ai/v1/ais/{ai_id}
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"discrible": "<string>",
"subject_name": "<string>",
"prompt": "<string>",
"robot_type": "rag",
"ai_type": "private",
"ai_model": "file",
"ai_status": "ready",
"user": {
"user_id": "<string>",
"email": "<string>",
"name": "<string>",
"salt": "<string>",
"picture": "<string>",
"locale": "<string>",
"corporate": false,
"is_independent": false
},
"apis": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"function_call_name": "<string>",
"openapi_url": "<string>",
"server_url": "<string>",
"path": "<string>",
"method": "<string>",
"header_authorization": "<any>",
"function_type": "<string>",
"function_status": "<string>",
"share_status": "<string>",
"user_id": "<string>",
"function_call_description": "<string>",
"matching_keywords": "<any>",
"llm_sta": true,
"body": "<any>",
"auth_token_curl": "<any>",
"body_required": "<any>",
"request_explanation": "<string>"
}
],
"datasets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"data_status": "init",
"name": "<string>",
"description": "<string>",
"metadata": "<any>",
"url_rules": "<any>",
"user_id": "<string>"
}
],
"questions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"question": "<string>",
"question_type": "generator"
}
],
"file_count": 123,
"configs": {}
}
Path Parameters
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request GET \
--url https://api.gbase.ai/v1/ais/{ai_id}
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"discrible": "<string>",
"subject_name": "<string>",
"prompt": "<string>",
"robot_type": "rag",
"ai_type": "private",
"ai_model": "file",
"ai_status": "ready",
"user": {
"user_id": "<string>",
"email": "<string>",
"name": "<string>",
"salt": "<string>",
"picture": "<string>",
"locale": "<string>",
"corporate": false,
"is_independent": false
},
"apis": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"function_call_name": "<string>",
"openapi_url": "<string>",
"server_url": "<string>",
"path": "<string>",
"method": "<string>",
"header_authorization": "<any>",
"function_type": "<string>",
"function_status": "<string>",
"share_status": "<string>",
"user_id": "<string>",
"function_call_description": "<string>",
"matching_keywords": "<any>",
"llm_sta": true,
"body": "<any>",
"auth_token_curl": "<any>",
"body_required": "<any>",
"request_explanation": "<string>"
}
],
"datasets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"data_status": "init",
"name": "<string>",
"description": "<string>",
"metadata": "<any>",
"url_rules": "<any>",
"user_id": "<string>"
}
],
"questions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"question": "<string>",
"question_type": "generator"
}
],
"file_count": 123,
"configs": {}
}
Assistant
Responses are generated using AI and may contain mistakes.