---
title: "Stop response."
method: POST
path: "/api/v1/projects/{projectId}/tasks/{taskId}/stop"
tags: ["Task Messages"]
---

# Stop response.

`POST /api/v1/projects/{projectId}/tasks/{taskId}/stop`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/tasks/{taskId}/stop`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/tasks/:taskId/stop/post.ts> (a function with typed inputs; its response is checked against the schema)

Stops the response a task is currently generating. Whatever already ran is still
saved and billed, and the plan is parked so the next message can pick it up.
Returns 204 No Content; poll the task for the settled result.

## Path parameters

- `projectId` integer, required
- `taskId` string, required

## Other responses

- `401`: API Token is either missing or invalid
- `402`: This feature is not available on your current plan. Upgrade your subscription or enable the required setting to use this endpoint.
- `404`: Agent not found
- `409`: Task is locked because a session is currently in progress. Retry after the active session completes.
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/tasks/:taskId/stop/post.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
