# Tencent Cloud Data Analysis Agent API

> Tencent Cloud Data Analysis Agent API on Apizie: 23 endpoints (Add Chunk, Append Knowledge Task, Chat AI, Create Data Agent Session, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/cloud:tencent-dataagent/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:tencent-dataagent`
- Category: Cloud
- Status: byok
- Source: https://www.tencentcloud.com/document/api
- Page: https://apizie.tech/api/cloud/tencent-dataagent
- OpenAPI: https://apizie.tech/api/cloud/tencent-dataagent/openapi.json

Tencent Cloud API 3.0 for Data Analysis Agent (dataagent). Every call is signed with TC3-HMAC-SHA256 using your SecretId and SecretKey.

## Endpoints

### Add Chunk
`POST https://apizie.tech/v1/cloud:tencent-dataagent/add-chunk` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |
| FileId | string | yes |  |
| BeforeChunkId | string | no |  |
| InsertPos | integer | no |  |
| Content | string | no |  |
| AfterChunkId | string | no |  |
| KnowledgeBaseId | string | no |  |

### Append Knowledge Task
`POST https://apizie.tech/v1/cloud:tencent-dataagent/append-knowledge-task` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |
| KnowledgeBaseId | string | no |  |
| FileId | string | no |  |
| Documents | array | no |  |

### Chat AI
`POST https://apizie.tech/v1/cloud:tencent-dataagent/chat-ai` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| SessionId | string | no |  |
| InstanceId | string | no |  |
| Question | string | no |  |
| Context | string | no |  |
| Model | string | no |  |
| DeepThinking | boolean | no |  |
| DataSourceIds | array | no |  |
| AgentType | string | no |  |
| OldRecordId | string | no |  |
| KnowledgeBaseIds | array | no |  |
| ArchVersion | string | no |  |

### Create Data Agent Session
`POST https://apizie.tech/v1/cloud:tencent-dataagent/create-data-agent-session` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |

### Delete Chunk
`POST https://apizie.tech/v1/cloud:tencent-dataagent/delete-chunk` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |
| FileId | string | yes |  |
| ChunkIds | array | yes |  |
| KnowledgeBaseId | string | no |  |

### Delete Data Agent Session
`POST https://apizie.tech/v1/cloud:tencent-dataagent/delete-data-agent-session` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |
| SessionId | string | no |  |
| SessionIds | array | no |  |

### Execute Agent Api
`POST https://apizie.tech/v1/cloud:tencent-dataagent/execute-agent-api` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| RequestPath | string | no |  |
| RequestData | string | no |  |
| RequestType | string | no |  |

### Execute Agent Api V1
`POST https://apizie.tech/v1/cloud:tencent-dataagent/execute-agent-api-v1` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| RequestPath | string | no |  |
| RequestType | string | no |  |

### Get Jobs By Knowledge Base Id
`POST https://apizie.tech/v1/cloud:tencent-dataagent/get-jobs-by-knowledge-base-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |
| KnowledgeBaseId | string | no |  |

### Get Knowledge Base File List
`POST https://apizie.tech/v1/cloud:tencent-dataagent/get-knowledge-base-file-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |
| Page | integer | no |  |
| PageSize | integer | no |  |
| KnowledgeBaseId | string | no |  |

### Get Knowledge Base List
`POST https://apizie.tech/v1/cloud:tencent-dataagent/get-knowledge-base-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |

### Get Upload Job Details
`POST https://apizie.tech/v1/cloud:tencent-dataagent/get-upload-job-details` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |
| JobId | string | no |  |

### Get User Instance List
`POST https://apizie.tech/v1/cloud:tencent-dataagent/get-user-instance-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |

### Modify Chunk
`POST https://apizie.tech/v1/cloud:tencent-dataagent/modify-chunk` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |
| FileId | string | yes |  |
| ChunkId | string | no |  |
| Content | string | no |  |
| Summary | string | no |  |
| KnowledgeBaseId | string | no |  |

### Modify Knowledge Base
`POST https://apizie.tech/v1/cloud:tencent-dataagent/modify-knowledge-base` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |
| OperateType | string | yes |  |
| KnowledgeBaseId | string | no |  |
| KnowledgeBaseName | string | no |  |
| KnowledgeBaseDesc | string | no |  |
| UseScope | integer | no |  |
| AuthorityUins | array | no |  |
| Config | object | no |  |

### Modify User Authority
`POST https://apizie.tech/v1/cloud:tencent-dataagent/modify-user-authority` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |
| Module | string | yes |  |
| ObjectId | string | yes |  |
| UseScope | integer | no |  |
| AuthorityUins | array | no |  |

### Query Chunk List
`POST https://apizie.tech/v1/cloud:tencent-dataagent/query-chunk-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| Page | integer | no |  |
| PageSize | integer | no |  |
| KnowledgeBaseId | string | no |  |

### Query Knowledge Task
`POST https://apizie.tech/v1/cloud:tencent-dataagent/query-knowledge-task` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |
| KnowledgeBaseId | string | no |  |
| FileIds | array | no |  |

### Query Models
`POST https://apizie.tech/v1/cloud:tencent-dataagent/query-models` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |

### Query User Authority
`POST https://apizie.tech/v1/cloud:tencent-dataagent/query-user-authority` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | yes |  |
| Module | string | yes |  |
| ObjectId | string | yes |  |

### Query User Session Detail
`POST https://apizie.tech/v1/cloud:tencent-dataagent/query-user-session-detail` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| SessionId | string | no |  |
| Limit | integer | no |  |
| Offset | integer | no |  |
| InstanceId | string | no |  |

### Stop Chat AI
`POST https://apizie.tech/v1/cloud:tencent-dataagent/stop-chat-ai` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| SessionId | string | no |  |
| InstanceId | string | no |  |

### Upload And Commit File
`POST https://apizie.tech/v1/cloud:tencent-dataagent/upload-and-commit-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InstanceId | string | no |  |
| CosFiles | array | no |  |
| KnowledgeBaseId | string | no |  |

## Example
```
curl "https://apizie.tech/v1/cloud:tencent-dataagent/add-chunk" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Tencent Cloud Data Analysis Agent API?
Create a free Apizie key, then send POST https://apizie.tech/v1/cloud:tencent-dataagent/add-chunk with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Tencent Cloud Data Analysis Agent API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Tencent Cloud Data Analysis Agent itself also needs your own key from tencentcloudapi.com.

### Can AI agents use the Tencent Cloud Data Analysis Agent API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:tencent-dataagent.

### What is the status of the Tencent Cloud Data Analysis Agent API?
Needs your own provider key (bring your own key)
