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

# Get token approvals granted by an account

> Lists the active token approvals an account has granted, newest first.

* `type` selects the standard: `erc20` (allowances, default), `erc721`, or `erc1155`.
* For `type=erc721`, `scope` selects per-NFT approvals (`token`, default) or collection-wide `ApprovalForAll` approvals (`operator`). `erc1155` approvals are always operator approvals.
* Allowances are the amounts approved on-chain, not the live remaining allowance.
* `summary` covers all of the account's approvals for the selected standard, not only the returned page.
* Pages hold 25 items. Request the next page while `hasMore` is `true`.


## OpenAPI

````yaml /api-reference/openapi.json get /contracts/{contractAddress}/approvals
openapi: 3.1.0
info:
  title: Voyager Public API
  version: 1.0.0
  description: Query aggregated data from Starknet via the Voyager API.
  termsOfService: https://voyager.online/terms-of-use
  contact:
    name: Voyager Support
    url: https://voyager.online
servers:
  - url: https://public-api.voyager.online/beta
    description: Mainnet
  - url: https://public-sepolia-api.voyager.online/beta
    description: Sepolia Testnet
security:
  - ApiKeyAuth: []
paths:
  /contracts/{contractAddress}/approvals:
    get:
      tags:
        - Contracts
      summary: Get token approvals granted by an account
      description: Lists the active token approvals an account has granted, newest first.
      operationId: getContractApprovals
      parameters:
        - schema:
            type: string
            pattern: ^(0x[0-9a-fA-F]{1,66})$
            description: Starknet contract address (0x-prefixed hex).
          required: true
          description: Starknet contract address (0x-prefixed hex).
          name: contractAddress
          in: path
        - schema:
            type: integer
            exclusiveMinimum: 0
            default: 1
            description: Page number. Defaults to 1.
          required: false
          description: Page number. Defaults to 1.
          name: page
          in: query
        - schema:
            type: integer
            description: Number of items per page. Only 25 is supported.
            enum:
              - 25
            default: 25
          required: false
          description: Number of items per page. Only 25 is supported.
          name: pageSize
          in: query
        - schema:
            type: string
            enum:
              - erc20
              - erc721
              - erc1155
            default: erc20
            description: 'Token standard: erc20 | erc721 | erc1155. Defaults to erc20.'
          required: false
          description: 'Token standard: erc20 | erc721 | erc1155. Defaults to erc20.'
          name: type
          in: query
        - schema:
            type: string
            enum:
              - token
              - operator
            default: token
            description: >-
              For type=erc721 only: 'token' (per-NFT approvals, default) or
              'operator' (ApprovalForAll approvals). Ignored for erc20 (always
              allowances) and erc1155 (always operator).
          required: false
          description: >-
            For type=erc721 only: 'token' (per-NFT approvals, default) or
            'operator' (ApprovalForAll approvals). Ignored for erc20 (always
            allowances) and erc1155 (always operator).
          name: scope
          in: query
      responses:
        '200':
          description: Successfully retrieved approvals
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListApprovalsResponse'
              example:
                items:
                  - ownerAddress: >-
                      0x07b7196ce28756a07a1e874947cce4696425060108fd2ca1cee054e46a00865b
                    spenderAddress: >-
                      0x04270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f
                    spenderAlias: 'AVNU: Exchange'
                    tokenAddress: >-
                      0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d
                    tokenSymbol: STRK
                    tokenLogo: >-
                      https://coin-images.coingecko.com/coins/images/26433/small/starknet.png?1696525507
                    verified: true
                    originalAllowance: '250.0'
                    originalAllowanceUnlimited: false
                    originalAllowanceUsd: 31.25
                    eventId: 1655799_12_3
                    blockNumber: 1655799
                    timestamp: 1753890591
                    txHash: >-
                      0x05e4a0a2f8ebf1b6d9dc3ea8e1b5a7d6c3f1e2d4b5a6978877665544332211aa
                  - ownerAddress: >-
                      0x07b7196ce28756a07a1e874947cce4696425060108fd2ca1cee054e46a00865b
                    spenderAddress: >-
                      0x04270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f
                    spenderAlias: 'AVNU: Exchange'
                    tokenAddress: >-
                      0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
                    tokenSymbol: ETH
                    tokenLogo: >-
                      https://coin-images.coingecko.com/coins/images/279/small/ethereum.png?1696501628
                    verified: true
                    originalAllowance: null
                    originalAllowanceUnlimited: true
                    originalAllowanceUsd: null
                    eventId: 1655120_4_1
                    blockNumber: 1655120
                    timestamp: 1753880112
                    txHash: >-
                      0x01b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90
                hasMore: false
                summary:
                  totalApprovals: 2
                  distinct: 2
                  valueAtRiskUsd: 31.25
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponse'
        '403':
          description: Forbidden - Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponse'
              example:
                message: Forbidden
        '429':
          description: Too Many Requests - Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitResponse'
              example:
                message: Limit Exceeded
components:
  schemas:
    ListApprovalsResponse:
      type: object
      properties:
        items:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  ownerAddress:
                    type: string
                  spenderAddress:
                    type: string
                  spenderAlias:
                    type:
                      - string
                      - 'null'
                    description: Curated name for the spender (e.g. 'Uniswap Permit2').
                  tokenAddress:
                    type: string
                  tokenSymbol:
                    type:
                      - string
                      - 'null'
                  tokenLogo:
                    type:
                      - string
                      - 'null'
                  verified:
                    type: boolean
                    description: True when the token is a curated/verified project.
                  originalAllowance:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Original allowance, decimal-scaled by tokenDecimals (human
                      value); null when it can't be computed (unknown decimals)
                      or when unlimited (see originalAllowanceUnlimited).
                  originalAllowanceUnlimited:
                    type: boolean
                    description: >-
                      True when the original allowance is an unlimited
                      (max-uint) approval.
                  originalAllowanceUsd:
                    type:
                      - number
                      - 'null'
                    description: >-
                      USD value of the original allowance; null when unlimited
                      or unpriced.
                  eventId:
                    type: string
                  blockNumber:
                    type: number
                  timestamp:
                    type:
                      - number
                      - 'null'
                    description: Block timestamp (epoch seconds).
                  txHash:
                    type: string
                required:
                  - ownerAddress
                  - spenderAddress
                  - spenderAlias
                  - tokenAddress
                  - tokenSymbol
                  - tokenLogo
                  - verified
                  - originalAllowance
                  - originalAllowanceUnlimited
                  - originalAllowanceUsd
                  - eventId
                  - blockNumber
                  - timestamp
                  - txHash
              - type: object
                properties:
                  tokenAddress:
                    type: string
                  tokenId:
                    type: string
                  collectionName:
                    type:
                      - string
                      - 'null'
                  collectionLogo:
                    type:
                      - string
                      - 'null'
                  itemImage:
                    type:
                      - string
                      - 'null'
                    description: Per-NFT image (nft_objects).
                  itemName:
                    type:
                      - string
                      - 'null'
                  verified:
                    type: boolean
                  ownerAddress:
                    type: string
                  spenderAddress:
                    type: string
                  spenderAlias:
                    type:
                      - string
                      - 'null'
                  eventId:
                    type: string
                  blockNumber:
                    type: number
                  timestamp:
                    type:
                      - number
                      - 'null'
                  txHash:
                    type: string
                required:
                  - tokenAddress
                  - tokenId
                  - collectionName
                  - collectionLogo
                  - itemImage
                  - itemName
                  - verified
                  - ownerAddress
                  - spenderAddress
                  - spenderAlias
                  - eventId
                  - blockNumber
                  - timestamp
                  - txHash
              - type: object
                properties:
                  ownerAddress:
                    type: string
                  operatorAddress:
                    type: string
                  operatorAlias:
                    type:
                      - string
                      - 'null'
                  tokenAddress:
                    type: string
                  collectionName:
                    type:
                      - string
                      - 'null'
                  collectionLogo:
                    type:
                      - string
                      - 'null'
                  verified:
                    type: boolean
                  eventId:
                    type: string
                  blockNumber:
                    type: number
                  timestamp:
                    type:
                      - number
                      - 'null'
                  txHash:
                    type: string
                required:
                  - ownerAddress
                  - operatorAddress
                  - operatorAlias
                  - tokenAddress
                  - collectionName
                  - collectionLogo
                  - verified
                  - eventId
                  - blockNumber
                  - timestamp
                  - txHash
        hasMore:
          type: boolean
        summary:
          type: object
          properties:
            totalApprovals:
              type: number
              description: Total active approvals for this owner + tab.
            distinct:
              type: number
              description: >-
                Distinct tokens (erc20) / collections / contracts the approvals
                span.
            valueAtRiskUsd:
              type:
                - number
                - 'null'
              description: >-
                ERC-20 only: summed USD of bounded (non-unlimited) allowances;
                null otherwise.
          required:
            - totalApprovals
            - distinct
            - valueAtRiskUsd
      required:
        - items
        - hasMore
        - summary
    BadRequestResponse:
      type: object
      properties:
        error:
          type: string
          description: Validation error message
      required:
        - error
    ForbiddenResponse:
      type: object
      properties:
        message:
          type: string
          description: Authentication error message
      required:
        - message
    RateLimitResponse:
      type: object
      properties:
        message:
          type: string
          description: Rate limit exceeded message
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Get your key at https://voyager.online/plans

````

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