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

# List Pending Approvals

> Approvals inbox listing.

``status=pending`` (default) returns open requests; ``status=decided``
returns resolved ones (approved/rejected/timed_out) sorted by decision
time descending. Every item is enriched with ``workflow_name``,
``requested_by`` (email when resolvable) and a redacted one-line
``context_summary``.

API key permission: Agents (Admin also opens it).



## OpenAPI

````yaml /api-reference/openapi.json get /workflows/approvals/pending
openapi: 3.1.0
info:
  title: Neural Factory API
  version: 0.1.0
  description: >-
    The endpoints a program can call with an API key. Exchange the key's secret
    for a token at POST /apikeys/token and send it as a Bearer token.
servers:
  - url: https://api.neuralfactory.ai
    description: SaaS
  - url: https://{apiHost}
    description: 'Enterprise: the API address of your own deployment'
    variables:
      apiHost:
        default: api.example.com
        description: Your deployment's API host
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Chat
  - name: Runs
  - name: Agents
  - name: Workflows
  - name: Schedules
  - name: Knowledge bases
  - name: Documents
  - name: Search
  - name: Skills
  - name: Toolkits
  - name: Files
  - name: Interactions
  - name: Usage and billing
  - name: Catalogue
  - name: Browser
  - name: Users
  - name: Groups
  - name: Builds
paths:
  /workflows/approvals/pending:
    get:
      tags:
        - Workflows
      summary: List Pending Approvals
      description: |-
        Approvals inbox listing.

        ``status=pending`` (default) returns open requests; ``status=decided``
        returns resolved ones (approved/rejected/timed_out) sorted by decision
        time descending. Every item is enriched with ``workflow_name``,
        ``requested_by`` (email when resolvable) and a redacted one-line
        ``context_summary``.

        API key permission: Agents (Admin also opens it).
      operationId: list_pending_approvals_workflows_approvals_pending_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Page Size
        - name: status
          in: query
          required: false
          schema:
            type: string
            pattern: ^(pending|decided)$
            default: pending
            title: Status
        - name: env
          in: query
          required: false
          schema:
            title: Env
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApprovalList:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ApprovalEntry'
          type: array
          title: Items
        meta:
          additionalProperties: true
          type: object
          title: Meta
      type: object
      required:
        - items
        - meta
      title: ApprovalList
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApprovalEntry:
      properties:
        id:
          type: string
          title: Id
        execution_id:
          type: string
          title: Execution Id
        workflow_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Id
        step_id:
          type: string
          title: Step Id
        step_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Step Name
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
        status:
          type: string
          title: Status
        approver_role:
          anyOf:
            - type: string
            - type: 'null'
          title: Approver Role
        requested_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Requested At
        expires_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Expires At
        decision:
          anyOf:
            - type: string
            - type: 'null'
          title: Decision
        approver_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Approver Id
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
        evidence:
          anyOf:
            - type: string
            - type: 'null'
          title: Evidence
        context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context
        workflow_name:
          type: string
          title: Workflow Name
          default: ''
        requested_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Requested By
        context_summary:
          type: string
          title: Context Summary
          default: ''
        decided_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Decided At
        allow_self_approval:
          type: boolean
          title: Allow Self Approval
          default: false
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
      type: object
      required:
        - id
        - execution_id
        - step_id
        - status
      title: ApprovalEntry
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The access_token returned by POST /apikeys/token for an API key's
        secret.

````

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