Skip to main content
DELETE
/
workspaces
/
{id}
/
agents
/
{agentId}
Unassign Agent
curl --request DELETE \
  --url https://api.kakiyo.com/v1/workspaces/{id}/agents/{agentId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Agent unassigned from workspace",
  "agentId": "agent_abc123",
  "propagated": {
    "campaigns": 5,
    "chats": 150,
    "prospects": 150
  }
}
Agency Plan Required - This endpoint is only available for teams on the Agency plan.

Endpoint

DELETE https://api.kakiyo.com/v1/workspaces/:workspaceId/agents/:agentId

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesThe workspace ID
agentIdstringYesThe agent ID to unassign

Response

{
  "message": "Agent unassigned from workspace",
  "agentId": "69724b7100331796aae2",
  "propagated": {
    "campaigns": 5,
    "chats": 150,
    "prospects": 150
  }
}

Example Request

curl -X DELETE "https://api.kakiyo.com/v1/workspaces/69724d900007cfde1d88/agents/69724b7100331796aae2" \
  -H "Authorization: Bearer YOUR_API_KEY"
The agent is not deleted, only unassigned. Client permissions are automatically removed from all associated campaigns, chats, and prospects.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Workspace ID

agentId
string
required

Agent ID to unassign

Response

Agent unassigned successfully

message
string
Example:

"Agent unassigned from workspace"

agentId
string
Example:

"agent_abc123"

propagated
object