Skip to content

chainabit approvals list ​

Published (2.2.0) ​

This command is not included in Published (2.2.0). It is available in Development (2.2.0).

Development (2.2.0) ​

List pending approvals

Synopsis ​

text
chainabit approvals list [options]

Options ​

OptionDescriptionDefault
--limit <n>Results per page"20"
--offset <n>Number of approvals to skip"0"
--exit-codeExit with code 1 if any approval is pending—

Inherited options ​

OptionDescriptionDefault
--workspace <id>Workspace ID—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Lists the pending approvals of the selected workspace: actions that an agent paused until you decide. Listing leaves every approval unchanged.

The workspace comes from --workspace, the environment or your local selection; with none of them the command stops and asks you to select a workspace.

--limit is a whole number from 1 to 100 (default 20) and --offset is a non-negative whole number (default 0); anything else is refused before the request is sent. When more approvals exist, the human output prints the --offset to use for the next page.

With --exit-code the command exits with code 1 when at least one approval is pending and with 0 when none is, which makes it usable as a check in scripts.

Output ​

A table with the approval ID, the requested tool, a summary of the request, the status and the deadline. With --json the output contains data, the array of approvals, and meta with total, limit, offset, hasNextPage and nextCursor. Exit codes are described in Exit codes.

Authentication and permissions ​

You must be signed in. Approvals are scoped to the selected workspace, and the service checks your membership.

Examples ​

bash
chainabit approvals list
chainabit approvals list --limit 50 --offset 50
chainabit approvals list --exit-code

Built with purpose. chainabit.com