Domain name for API request: adp.intl.tencentcloudapi.com.
Create session
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: CreateConversation. |
| Version | Yes | String | Common Params. The value used for this API: 2026-05-20. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| Type | Yes | Integer | Session type. Enumeration values: 0-CONVERSATION_TYPE_UNSPECIFIED (unspecified; means all in list query), 1-CONVERSATION_TYPE_VISITOR (visitor trial), 2-CONVERSATION_TYPE_EVALUATION (evaluation), 5-CONVERSATION_TYPE_API (API integration), 10-CONVERSATION_TYPE_WORKFLOW (workflow debugging), 20-CONVERSATION_TYPE_SHARE (share a link) |
| AppId | No | String | App ID |
| AppKey | No | String | Required when Type=CONVERSATION_TYPE_API. Application key |
| LoginSubAccountUin | No | String | User Sub-account logged in (required in integrator mode) |
| LoginUin | No | String | User Main Account logged in (required in integrator mode) |
| ShareCode | No | String | Required when Type=CONVERSATION_TYPE_SHARE. Share code |
| UserId | No | String | Required when Type=CONVERSATION_TYPE_API. Visitor ID |
| AgentId | No | String | Client-side AgentId, available when "modify configuration dynamically in conversation" is enabled in Claw mode |
| Parameter Name | Type | Description |
|---|---|---|
| ConversationId | String | Conversation ID |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: adp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateConversation
<Common request parameters>
{
"Type": 2,
"AppId": "2049148302274678336"
}
{
"Response": {
"ConversationId": "dd6a4e74-b2d4-463f-ba01-429304a4a142",
"RequestId": "f408c5a9-e87b-4d86-baa6-c2b950c5d047"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
피드백