---
title: "Code Gen Callback"
method: POST
path: "/api/code-gen/callback"
---

# Code Gen Callback

`POST /api/code-gen/callback`

Callback for the codegen agent to report completion and update the original
"Creating PR..." Slack message with the PR link.

## Request body

- CodeGenCompletionRequest
  - `slack_channel_id` string, required
  - `slack_message_ts` string, required
  - `pr_url` string, required
  - `team_id` string, nullable
  - `message_prefix` string, nullable
  - `branch_name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deeptrace/apis/fastapi.md) · [All operations](https://skmtc.net/deeptrace/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrace/fastapi/versions/2e2a6de8aeda/schema)
