Skip to main content

Overview

The Approvals API enables approval workflows where task attempts can request human approval before proceeding with critical operations like merging or deployment. Base URL: http://localhost:8887/api/approvals

Create Approval Request

Create a new approval request for a task attempt.

Request Body

Parameters

Example Response


Get Approval Status

Get detailed information about an approval request.

Example Response

Status Values

  • pending - Awaiting approval responses
  • approved - All required approvers approved
  • rejected - At least one approver rejected
  • expired - Expired before all approvals received
  • cancelled - Cancelled by requester

Respond to Approval

Approve or reject an approval request.

Request Body

Parameters

Example Response

Note: approvalStatus indicates the overall approval request status after this response.

Get Pending Approvals

List all pending approval requests for the current user.

Query Parameters


Approval Workflows

Merge Approval Workflow

Deployment Approval Workflow


SDK Examples

JavaScript/TypeScript

Python


Best Practices


Next Steps

Attempts API

Manage task attempts that require approval

Workflows

Approval workflow patterns

WebSockets

Real-time approval notifications

Tasks API

Create tasks that trigger approvals