---
title: "Cancel a queued task and refund points"
method: POST
path: "/api/v1/tasks/{task_id}/cancel"
tags: ["Tasks"]
---

# Cancel a queued task and refund points

`POST /api/v1/tasks/{task_id}/cancel`

## Request

- Base URL: `https://xcatcher.top`
- URL: `https://xcatcher.top/api/v1/tasks/{task_id}/cancel`
- Auth: HTTP bearer

## Path parameters

- `task_id` integer, required

## Response `200`

Cancelled

- AnyJson

## Other responses

- `400`: Task is no longer queued

---

[API](https://skmtc.dev/xcatcher/apis/xcatcher-agent-api.md) · [All operations](https://skmtc.dev/xcatcher/apis/xcatcher-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xcatcher/apis/xcatcher-agent-api/revisions/855ba4646e5a?raw)
