---
title: "Interrupts an ongoing code generation for the specified chat session."
method: POST
path: "/code/interrupt-generation"
tags: ["code"]
---

# Interrupts an ongoing code generation for the specified chat session.

`POST /code/interrupt-generation`

This sets an interrupt flag that will cause the generation to stop gracefully
at the next checkpoint (before publishing the next event).

## Request body

- InterruptGenerationRequest
  - `chatSessionId` string, uuid, required

## Response `200`

Interrupt signal sent successfully

---

[API](https://skmtc.dev/structifyai/apis/structify.md) · [All operations](https://skmtc.dev/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/structifyai/structify/revisions/1364930b6980/schema)
