---
title: "POST /ci/runs/{runId}/finish"
method: POST
path: "/ci/runs/{runId}/finish"
---

# POST /ci/runs/{runId}/finish

`POST /ci/runs/{runId}/finish`

## Request

- Base URL: `https://api.caveman.so/api/v1`
- URL: `https://api.caveman.so/api/v1/ci/runs/{runId}/finish`
- Auth: HTTP bearer

POST /api/v1/ci/runs/{runId}/finish on the Caveman Cloud control plane. Requires a GitHub Actions OIDC token issued for this API (Authorization: Bearer), from a workflow in a repository connected to the project. Not exposed to autonomous agents: Not RBAC-guarded: authenticated by the CI provider's OIDC token for one job. Agents never hold that token.

## 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)
