---
title: "POST /code/runtime/pull-requests"
method: POST
path: "/code/runtime/pull-requests"
---

# POST /code/runtime/pull-requests

`POST /code/runtime/pull-requests`

## Request

- Base URL: `https://api.caveman.so/api/v1`
- URL: `https://api.caveman.so/api/v1/code/runtime/pull-requests`
- Auth: HTTP bearer

POST /api/v1/code/runtime/pull-requests on the Caveman Cloud control plane. Requires a Caveman Code runtime token (Authorization: Bearer ccrt_...), minted by POST /code/runtimes/{runtimeId}/token. Not exposed to autonomous agents: Not RBAC-guarded — authenticated by a Caveman Code runtime token, for a live automation run whose session is on that runtime's computer and whose approved revision declares a github.pull_request output (ADR 0133), or for a person's own chat on that Cloud computer, from the chat's own caveman/* branch, on the repository Cloud made the computer for, whose person GitHub confirms may push to it, on a computer no other person's work shares (ADR 0136); Cloud opens it with the GitHub App. Agents authenticate through a scoped control-plane session and never touch these directly.

## Response `2XX`

Successful response. Exact status depends on synchronous or durable delivery outcome.

## Other responses

- `4XX`: Structured failure. `error.code` is stable; `error.request_id` is echoed in the x-cave-request-id header.
- `5XX`: Structured failure. `error.code` is stable; `error.request_id` is echoed in the x-cave-request-id header.

---

[API](https://skmtc.dev/caveman/apis/caveman-cloud-api.md) - [All operations](https://skmtc.dev/caveman/apis/caveman-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caveman/apis/caveman-cloud-api/revisions/508312d01cfc?raw)
