---
title: "Wait for a push decision"
method: GET
path: "/v1/cloud-coding/gateway/push-approvals/{approvalId}"
tags: ["Internal"]
---

# Wait for a push decision

`GET /v1/cloud-coding/gateway/push-approvals/{approvalId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/cloud-coding/gateway/push-approvals/{approvalId}`
- Auth: HTTP bearer

## Path parameters

- `approvalId` string, required

## Response `200`

Wait for a push decision

- object
  - `approval` CloudCodingPushApproval, required
    - `id` string, required
    - `taskId` string, required
    - `agentId` string, nullable
    - `agentName` string, nullable
    - `status` 'pending' | 'approved' | 'denied' | 'pushed' | 'expired' | 'superseded', required
    - `repositoryFullName` string, required
    - `branch` string, required
    - `baseBranch` string, required
    - `headSha` string, nullable, required
    - `title` string, required
    - `files` CloudCodingFileChange[], required
      - `path` string, required
      - `change` 'added' | 'modified' | 'deleted', required
    - `fileCount` integer, required
    - `tests` CloudCodingTestReport, required
      - `status` 'passed' | 'failed' | 'not_run', required
      - `command` string, nullable, required
      - `summary` string, nullable, required
    - `requestedAt` string, date-time, required
    - `expiresAt` string, date-time, required
    - `decidedAt` string, date-time, nullable, required
    - `pullRequest` object, nullable, required
      - `number` integer, required
      - `url` string, uri, required
      - `state` 'open' | 'merged' | 'closed', required

## Other responses

- `401`: This task has ended or expired.
- `403`: Cloud coding is not available for this task.
- `404`: The approval was not found.
- `409`: The branch or approval is not available.
- `422`: This change could not be accepted.
- `502`: GitHub could not complete the request.

## Changes

- **2026-12-02** `1c1cd9580c18`: 2 info
  - added the optional property `approval/agentId` to the response with the `200` status
  - added the optional property `approval/agentName` to the response with the `200` status
- **2026-11-30** `46df230c9438`: 1 breaking, 1 info
  - response property `approval/headSha` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - the `approval/headSha` response's property pattern `^[0-9a-f]{40}$` was removed for the status `200`
- **2026-11-29** `8a5cecbbb048`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/cloud-coding/gateway/push-approvals/:approvalId/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
