---
title: "Regenerate manifest and create PR"
method: POST
path: "/api/v1/compiler/manifest/recovery-pr"
tags: ["compiler"]
---

# Regenerate manifest and create PR

`POST /api/v1/compiler/manifest/recovery-pr`

## Request

- Base URL: `https://api.kater.ai`
- URL: `https://api.kater.ai/api/v1/compiler/manifest/recovery-pr`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Regenerate manifest through compiler validation and open a PR.

This endpoint is remote-source only. It regenerates compiler artifacts
from the selected connection, then creates a GitHub PR with updated
`.kater/manifest.yaml` (and dependency graph when requested).

## Query parameters

- `source` string, nullable

## Headers

- `X-Kater-CLI-ID` string, nullable

## Request body

- ManifestRecoveryPrRequest: Request model for manifest recovery PR generation.
  - `connection_id` string, uuid, required: Connection kater_id to regenerate and commit manifest for
  - `include_dependency_graph` boolean: Also include .kater/dependency_graph.yaml in the PR when available.

## Response `200`

Successful Response

- ManifestRecoveryPrResponse: Response model for manifest recovery PR creation.
  - `branch_name` string, required: Remote branch name used for the PR
  - `pr_number` integer, required: Created pull request number
  - `pr_url` string, required: Created pull request URL

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error
- `500`: Internal Server Error

## Changes

- **2026-02-26** `bef1f3e205dd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kater-ai/apis/kater-api/changes/api/v1/compiler/manifest/recovery-pr/post.md)

---

[API](https://skmtc.dev/kater-ai/apis/kater-api.md) - [All operations](https://skmtc.dev/kater-ai/apis/kater-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kater-ai/apis/kater-api/revisions/6a140b82e07c?raw)
