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

# List approval delegations

> Retrieve approval delegations, scheduled and active ones by default.



## OpenAPI

````yaml get /v1/approvals/delegations
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/approvals/delegations:
    get:
      tags:
        - Approval > Delegations
      summary: List approval delegations
      description: Retrieve approval delegations, scheduled and active ones by default.
      operationId: listApprovalDelegations
      parameters:
        - schema:
            type:
              - number
              - 'null'
            minimum: 0
            maximum: 100
            default: 50
          required: false
          name: take
          in: query
        - schema:
            type:
              - number
              - 'null'
            minimum: 0
            default: 0
          required: false
          name: skip
          in: query
        - schema:
            type: string
            description: Comma-separated IDs of the delegations to return.
          required: false
          description: Comma-separated IDs of the delegations to return.
          name: id__in
          in: query
        - schema:
            type: string
            description: ID of the delegator whose delegations to return.
          required: false
          description: ID of the delegator whose delegations to return.
          name: delegator_id
          in: query
        - schema:
            type: string
            description: ID of the delegate whose delegations to return.
          required: false
          description: ID of the delegate whose delegations to return.
          name: delegate_id
          in: query
        - schema:
            anyOf:
              - type: boolean
              - type: string
                enum:
                  - 'true'
                  - 'false'
            description: >-
              Also return revoked and expired delegations. By default, only
              scheduled and active ones are returned.
            example: false
          required: false
          description: >-
            Also return revoked and expired delegations. By default, only
            scheduled and active ones are returned.
          name: include_inactive
          in: query
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedApprovalDelegation'
      security:
        - bearer: []
components:
  schemas:
    PaginatedApprovalDelegation:
      type: object
      properties:
        meta:
          type: object
          properties:
            total:
              type: number
              description: Total of existing items.
              example: 1
            taken:
              type: number
              description: Number of items returned.
              example: 1
            skipped:
              type: number
              description: Number of items skipped.
              example: 0
          required:
            - total
            - taken
            - skipped
        data:
          type: array
          items:
            $ref: '#/components/schemas/ApprovalDelegation'
          description: List of ApprovalDelegation.
      required:
        - meta
        - data
    ApprovalDelegation:
      type: object
      properties:
        id:
          type: string
          description: Approval delegation ID.
          example: apd_9dKs02LmPq1a3Z
        status:
          type: string
          enum:
            - scheduled
            - active
            - expired
            - revoked
          description: >-
            Lifecycle status: `scheduled` before `starts_at`, `active` between
            `starts_at` and `ends_at`, `expired` after `ends_at`, `revoked` once
            revoked.
          example: active
        delegator_id:
          type: string
          description: >-
            ID of the user whose approvals are delegated, typically the one out
            of office.
          example: usr_4sYw1nB8xKe0Qm
        delegate_id:
          type: string
          description: ID of the user who approves on behalf of the delegator.
          example: usr_7GhT2pLq9ZcV3r
        starts_at:
          type: string
          format: date-time
          description: UTC timestamp when the delegation starts.
          example: '2026-12-21T00:00:00Z'
        ends_at:
          type: string
          format: date-time
          description: UTC timestamp when the delegation ends. Must be in the future.
          example: '2027-01-04T00:00:00Z'
        reason:
          type:
            - string
            - 'null'
          description: Free-text reason, such as an out-of-office period.
          example: Christmas holidays
        created_at:
          type: string
          format: date-time
          description: UTC timestamp when the delegation was created.
          example: '2024-12-20T16:04:11Z'
        revoked_at:
          type:
            - string
            - 'null'
          format: date-time
          description: UTC timestamp when the delegation was revoked, or null.
          example: '2024-12-20T16:04:11Z'
      required:
        - id
        - status
        - delegator_id
        - delegate_id
        - starts_at
        - ends_at
        - reason
        - created_at
        - revoked_at
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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