Skip to content

Delete agent

View .md
DELETE

Delete the agent created on this sender. A sender that is only connected to an agent through POST /v1/agents/{agentId}/senders is refused with 409: deleting there would remove the agent from every sender it answers on. Disconnect it with DELETE /v1/agents/{agentId}/senders/{senderId}, or delete the agent with DELETE /v1/agents/{agentId}.

Authorization

  • Authorizationheaderrequired

    Bearer YOUR_API_KEY. Create a key in the dashboard.

Path parameters

  • senderIdstringrequired

Responses

204Agent deleted.
401Unauthorized.
  • codestringrequired
  • messagestringrequired
  • detailsobject
404Sender or agent not found.
  • codestringrequired
  • messagestringrequired
  • detailsobject
409The sender is connected to an agent it does not own.
  • codestringrequired
  • messagestringrequired
  • detailsobject