v106

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-02160524464.6 KB
Runs

Create Run Pull Request

Creates a pull request for a completed run on GitHub and persists the record on the server.

post/api/v1/runs/{id}/pull_request

Path parameters

idstring required

Unique run identifier (ULID).

Request body

forceboolean required

Create the pull request even if the run did not finish with succeeded or partially_succeeded.

modelstring nullable

Optional model override for generating the pull request description.

Example request

{
  "model": "claude-sonnet-4-6"
}

Response

Pull request created

ownerstring required
repostring required
numberinteger required
html_urlstring uri required

Computed GitHub web URL for the pull request.

Example response

{
  "owner": "fabro-sh",
  "repo": "fabro",
  "number": 123,
  "html_url": "https://github.com/fabro-sh/fabro/pull/123"
}