logo
On this page

Interrupt Agent Instance


Description

This API is used to interrupt the agent instance in a voice conversation.

Request prototype

  • Request method: POST
  • Request body format: JSON
  • Request URL: https://aigc-aiagent-api.zegotech.cn?Action=InterruptAgentInstance
  • Transmission protocol: HTTPS
  • QPS limit: 10 times/second

Request parameters

Listed below are the parameters specific to this request and part of the common request parameters. For the complete list of common request parameters, see Accessing Server APIs - Common request parameters.

ParameterTypeRequiredDescription
AgentInstanceIdStringYesThe unique identifier of the agent instance.

Request example

  • Request URL:

    Untitled
    https://aigc-aiagent-api.zegotech.cn?Action=InterruptAgentInstance
    &<Common request parameters>
    
    1
    Copied!
  • Request body:

    Untitled
    {
        "AgentInstanceId": "1907616178474336256"
    }
    
    1
    Copied!

Response parameters

ParameterTypeDescription
CodeNumberThe return code. 0 indicates success, and other values indicate failure. For error codes and response processing suggestions, see Return codes.
MessageStringThe description of the request result.
RequestIdStringThe request ID.

Response example

Untitled
{
    "Code": 0,
    "Message": "success",
    "RequestId": "6952809118452315328"
}
1
Copied!

Previous

Query The Status of An AI Agent Instance

Next

Get Agent Instance Context