---
title: "Trigger repository scaffolding"
method: POST
path: "/api/v1/github/scaffold"
tags: ["github", "github-scaffold"]
---

# Trigger repository scaffolding

`POST /api/v1/github/scaffold`

Create the Kater folder structure and PR in the selected repository.

## Response `200`

Successful Response

- ScaffoldTriggerResponse — Response from triggering scaffolding.
  - `branch` string, nullable
  - `error` string, nullable
  - `message` string, required
  - `pr_number` integer, nullable
  - `pr_url` string, nullable
  - `status` string, required
  - `success` boolean, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[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-service-production.skmtc.workers.dev/v1/apis/kater-ai/kater-api/revisions/d2a2a2d0775e/schema)
