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

# Code Gen Callback

`POST /api/code-gen/callback`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/code-gen/callback`
- Auth: none declared

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.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
