---
title: "Unassign the agent"
url: https://docs.gleap.ai/en/reference/rest-api/unassign-agent
method: POST
path: "/hard-tickets/tickets/{ticketId}/unassign-agent"
api: "API Reference"
tag: "HardTickets"
operationId: "UnassignAgent"
updatedAt: "2026-11-03T17:10:00.738Z"
language: en
---

# Unassign the agent

`POST https://api.gleap.io/v3/hard-tickets/tickets/{ticketId}/unassign-agent`

Unassign the agent: it stops at once (the episode bump first; a hosted run is cancelled, an app's session gets STOP on its next Gleap call). The human owner drives.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `ticketId` (string, required)

## Headers

- `project` (string, required)

## Example request

```bash
curl --request POST \
  --url 'https://api.gleap.io/v3/hard-tickets/tickets/{ticketId}/unassign-agent' \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>'
```

## Responses

### 200 (`application/json`)

Ok
