Skip to main content
GET
/
v1
/
voice-agents
/
conversation
/
{conversationId}
/
terminate
Terminate conversation
curl --request GET \
  --url https://api.tryhamsa.com/v1/voice-agents/conversation/{conversationId}/terminate \
  --header 'Authorization: <api-key>'
{
  "success": true,
  "message": "Conversation terminated successfully.",
  "messageKey": "ConversationTerminatedSuccessfully"
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Path Parameters

conversationId
string<uuid>
required

UUID of the conversation to terminate.

Example:

"849e77c6-5cb3-479a-a985-7fab630e2c78"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"

messageKey
string
Example:

"OPERATION_SUCCESSFUL"