cURL
curl --request DELETE \ --url https://api.starleads.co/Agent/{agentId}/chat \ --header 'X-Api-Key: <api-key>'
{ "success": true }
Detaches the currently connected knowledge base chat from an agent. The chat itself is not deleted. The agent must belong to the same company as the API key used for authentication.
Api key to pass as a X-Api-Key request header.
X-Api-Key
ID of the agent.
Chat detached from agent successfully
Generic success response
Indicates the operation was successful