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

# List approvals

> List the approvals this app has submitted. Requires the `approvals:read` scope.



## OpenAPI

````yaml /api-reference/openapi.json get /api/approvals
openapi: 3.1.0
info:
  title: ego API
  version: 0.0.0
  description: >-
    Preview specification for the ego API. ego sits between your data and the
    agents that read it, granting access one scope at a time. Each endpoint
    requires the native scope named in its description, granted on the consent
    screen and carried on the bearer token.
servers:
  - url: https://api.myego.dev
    description: Preview — not yet live
security:
  - bearerAuth: []
paths:
  /api/approvals:
    get:
      tags:
        - Approvals
      summary: List approvals
      description: >-
        List the approvals this app has submitted. Requires the `approvals:read`
        scope.
      operationId: listApprovals
      parameters:
        - name: status
          in: query
          required: false
          description: Filter by approval status.
          schema:
            type: string
            enum:
              - pending
              - resolved
      responses:
        '200':
          description: The app's submitted approvals.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    ApprovalList:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Approval'
    Approval:
      type: object
      required:
        - _id
        - _creationTime
        - clientId
        - question
        - options
        - status
      properties:
        _id:
          type: string
          description: Identifier of the approval.
          examples:
            - k1722abcd
        _creationTime:
          type: number
          description: Creation timestamp, in epoch milliseconds.
        clientId:
          type: string
          description: The app that submitted the approval.
        question:
          type: string
          examples:
            - Ship the 2.0 release?
        options:
          type: array
          items:
            $ref: '#/components/schemas/ApprovalOption'
        backgroundContext:
          type: string
        recommendation:
          type: string
        status:
          type: string
          enum:
            - pending
            - resolved
        resolution:
          $ref: '#/components/schemas/ResolvedResolution'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A human-readable error message.
          examples:
            - Unauthorized
    ApprovalOption:
      type: object
      required:
        - id
        - label
      properties:
        id:
          type: string
          description: Stable identifier for the option, returned in the resolution.
          examples:
            - ship
        label:
          type: string
          description: Human-readable label shown to the owner.
          examples:
            - Ship it
        note:
          type: string
          description: Optional detail shown beneath the label.
    ResolvedResolution:
      type: object
      required:
        - kind
        - resolvedBy
        - resolvedAt
      description: >-
        The resolution recorded on a resolved approval. `resolvedBy` is the role
        that resolved it, never an identity.
      properties:
        kind:
          type: string
          enum:
            - option
            - other
        optionId:
          type: string
          description: The chosen option's `id`, present when `kind` is `option`.
        otherText:
          type: string
          description: Free-text answer, present when `kind` is `other`.
        note:
          type: string
        resolvedBy:
          type: string
          description: The role that resolved the approval.
          enum:
            - owner
            - api
        resolvedAt:
          type: integer
          description: Resolution timestamp, in epoch milliseconds.
  responses:
    BadRequest:
      description: The request was malformed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Bad request
    Unauthorized:
      description: The token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
    Forbidden:
      description: The token lacks the scope this endpoint requires.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Forbidden
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your ego access token as a bearer token: `Authorization: Bearer
        <token>`. The token carries the scopes granted on the consent screen.

````