> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whirl.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# List pending actions

> Actions an agent is waiting for someone to decide on.



## OpenAPI

````yaml GET /tasks/{taskId}/pending-actions
openapi: 3.1.0
info:
  title: Whirl API
  version: 1.0.0
  description: >-
    Read and change Whirl workspaces, tasks, reminders, agents' instructions and
    approvals as the signed-in user. The same operations are available as tools
    on the MCP server at /mcp.
servers:
  - url: https://api.whirl.sh/api/v1
security:
  - oauth2: []
paths:
  /tasks/{taskId}/pending-actions:
    get:
      tags:
        - workspace
      summary: List pending actions
      description: >-
        List the actions an agent proposed on a task (emails and messages to
        send, records to change in connected tools, tasks for a person,
        questions for you), newest first. By default only actions waiting for a
        decision. Each item's `decision` says which tool resolves it. Get task
        ids from list_tasks or search_tasks; a task's agentSummary mentions when
        actions are pending approval.
      operationId: list_pending_actions
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 64
            description: Task id from list_tasks or search_tasks.
        - name: status
          in: query
          required: false
          schema:
            default: pending
            description: >-
              Only actions in this status (default 'pending': waiting for a
              decision). 'reviewing' means auto-approval rules are still
              checking it. 'any' lists every non-archived action.
            type: string
            enum:
              - pending
              - reviewing
              - approved
              - rejected
              - executing
              - completed
              - failed
              - executed
              - paused
              - any
        - name: cursor
          in: query
          required: false
          schema:
            description: >-
              Pagination cursor from a previous response's nextCursor. Omit for
              the first page.
            type: string
            maxLength: 2000
        - name: limit
          in: query
          required: false
          schema:
            default: 20
            description: Maximum results to return (default 20, max 50).
            type: integer
            minimum: 1
            maximum: 50
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
      security:
        - oauth2:
            - workspace:read
components:
  responses:
    Problem:
      description: RFC 9457 problem details
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
      required:
        - title
        - status
        - code
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.whirl.sh/oauth/authorize
          tokenUrl: https://api.whirl.sh/oauth/token
          refreshUrl: https://api.whirl.sh/oauth/token
          scopes:
            workspace:read: >-
              Workspaces, tasks, notes, messages, reminders, and pending
              approvals.
            workspace:write: Create and update tasks, notes, tags, reminders, and workspaces.
            agents:read: >-
              Agents, their runs, instructions, handbook, knowledge, and
              scheduled tasks.
            agents:write: >-
              Edit instructions, handbook, knowledge, and scheduled tasks, and
              give agents tasks.
            approvals:write: Approve, reject, or edit actions agents want to take.
            offline_access: >-
              Keep access without asking you to sign in again, until you
              disconnect it.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.