# Cancel a background response
URL: https://docs.munito.ai/api/cancelResponse

POST /responses/{response_id}/cancel

Cancels an in-progress response created with `background: true`. Returns the response object with status cancelled.

```json
{
  "operationId": "cancelResponse",
  "summary": "Cancel a background response",
  "tags": [
    "Responses"
  ],
  "description": "Cancels an in-progress response created with `background: true`. Returns the response object with status cancelled.",
  "parameters": [
    {
      "name": "response_id",
      "in": "path",
      "required": true,
      "description": "The background response to cancel.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "The cancelled response object.",
      "content": {
        "application/json": {
          "example": {
            "id": "resp_9f41c2d7b3a8",
            "object": "response",
            "status": "cancelled",
            "model": "qwen/qwen3.8-27b",
            "output": []
          }
        }
      }
    }
  }
}
```

# Shared API schemas
{
  "securitySchemes": {
    "BearerAuth": {
      "type": "http",
      "scheme": "bearer",
      "description": "Your Munito API key."
    },
    "ApiKeyAuth": {
      "type": "apiKey",
      "in": "header",
      "name": "x-api-key",
      "description": "Your Munito API key."
    }
  }
}