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

# Count Withdrawal Transactions

> Returns the number of withdrawal transactions matching the same filters as the list endpoint. Response is a raw number. Requires WITHDRAWS_READ.

<Info>
  **Note:** When using the production environment at [moonpay.hel.io](http://app.hel.io), set your API endpoint to `api.hel.io/v1` and generate API keys there. For the development environment, use `api.dev.hel.io/v1` and generate API keys from [moonpay.dev.hel.io](http://app.dev.hel.io).
</Info>

<Tip>
  The response body is a bare number (for example `42`), not an object like `{ "count": 42 }`.
</Tip>


## OpenAPI

````yaml GET /v1/withdrawal-transactions/api-key/count
openapi: 3.0.0
info:
  title: Helio Open API
  description: |-
    API schema and definitions for Helio API. <br/> 
          The API is using two types of Authentication, for dashboard endpoints we use <b>JSON Web Token (JWT)</b> that is generated by self custodial wallet signing a message from API.</br> 
          We also support authentication with <b>API Key and Secret</b> which can be generated on <a href='https://hel.io'>Helio dashboard</a>.
  version: 1.0.0
  contact: {}
servers:
  - description: Helio API (Mainnet)
    url: https://api.hel.io
  - description: Helio API (Devnet)
    url: https://api.dev.hel.io
security: []
tags:
  - name: Webhooks
  - name: Exports
  - name: Currencies
    description: >-
      Supported currencies endpoint, includes fiat and digital assets
      </br><i>Authentication: </i><b>None</b>
externalDocs:
  description: Helio product documentation
  url: https://docs.hel.io/
paths:
  /v1/withdrawal-transactions/api-key/count:
    get:
      tags:
        - Withdrawals
      summary: Count Withdrawal Transactions
      description: >-
        Returns the number of withdrawal transactions matching the same filters
        as the list endpoint. Requires an API key with the `WITHDRAWS_READ`
        permission. Response is a raw number (not wrapped in an object).
      operationId: WithdrawalTransactionsController_countWithApiKey
      parameters:
        - name: apiKey
          in: query
          required: true
          description: >-
            Your API key, which can be generated from the Helio Dashboard
            settings page.
          schema:
            type: string
        - name: startDate
          in: query
          required: false
          schema:
            type: string
          description: ISO 8601 start of `createdAt` range (inclusive).
        - name: endDate
          in: query
          required: false
          schema:
            type: string
          description: ISO 8601 end of `createdAt` range (inclusive).
        - name: state
          in: query
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/WithdrawalState'
          description: Filter by one or more withdrawal states.
          style: form
          explode: true
        - name: sourceChain
          in: query
          required: false
          schema:
            type: string
          description: Filter by source chain symbol (e.g. `SOL`, `ETH`).
        - name: destinationChain
          in: query
          required: false
          schema:
            type: string
          description: Filter by destination chain symbol.
        - name: withdrawalConfigId
          in: query
          required: false
          schema:
            type: string
          description: Filter by withdrawal config ID.
      responses:
        '200':
          description: Count retrieved successfully.
          content:
            application/json:
              schema:
                type: number
                description: Number of matching withdrawal transactions.
              examples:
                count:
                  summary: Successful count response
                  value: 42
        '401':
          description: Provided API key has no access to the resource.
          content:
            application/json:
              examples:
                unauthorized:
                  summary: Invalid or missing API key
                  value:
                    message: Api key or token is invalid
                    code: 401
      security:
        - bearer: []
components:
  schemas:
    WithdrawalState:
      type: string
      enum:
        - QUOTED
        - SUBMITTING
        - SUBMITTED
        - BRIDGING
        - COMPLETED
        - FAILED
        - FAILED_EXPIRED
        - EXPIRED
        - REFUNDED_BY_PROVIDER
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authentication using JWT token

````