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

# Get delegations

> Retrieve active delegations for a specific subaccount.
Shows delegated accounts and their associated permissions.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/delegations
openapi: 3.1.0
info:
  title: Decibel Trading API
  description: >-
    RESTful API for Decibel. Provides read-only endpoints for market data,
    trading operations, positions, and analytics.
  contact:
    name: Decibel Team
    url: https://decibel.trade/
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.mainnet.aptoslabs.com/decibel
    description: Mainnet
  - url: https://api.testnet.aptoslabs.com/decibel
    description: Testnet
security:
  - bearerAuth: []
tags:
  - name: Market Data
    description: Market information and real-time data endpoints
  - name: User
    description: User information and account management
  - name: Trades
    description: Trading operations and history
  - name: Positions
    description: User position management
  - name: Orders
    description: Order management and history
  - name: TWAP
    description: Time-weighted average price orders
  - name: Bulk Orders
    description: Bulk order management
  - name: Vaults
    description: Vault operations and management
  - name: Analytics
    description: Analytics and performance metrics
  - name: Predeposit Rewards
    description: Season 0 predeposit USDC rewards
  - name: Referrals
    description: Referral code management and tracking
paths:
  /api/v1/delegations:
    get:
      tags:
        - User
      summary: Get delegations
      description: |-
        Retrieve active delegations for a specific subaccount.
        Shows delegated accounts and their associated permissions.
      operationId: handle_delegations
      parameters:
        - name: subaccount
          in: query
          description: Subaccount address
          required: true
          schema:
            type: string
          example: 0x123...
      responses:
        '200':
          description: Delegations retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DelegationDto'
        '500':
          description: Database error
components:
  schemas:
    DelegationDto:
      type: object
      description: Represents a delegation for a subaccount
      required:
        - delegated_account
        - permission_type
      properties:
        delegated_account:
          type: string
          description: The address of the delegated account
          example: 0x123...
        expiration_time_s:
          type:
            - integer
            - 'null'
          format: int64
          description: The expiration time in seconds (optional, None means no expiration)
          example: 1736326800000
          minimum: 0
        permission_type:
          type: string
          description: The permission type that was granted
          example: TradePerpsAllMarkets
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from Geomi. See
        [Authentication](/api-reference/rest/authentication) for setup
        instructions.

````