# Get wallet balance

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/wallet/balance:
    get:
      summary: Get wallet balance
      deprecated: false
      description: This endpoint retrieves the current wallet balance.
      tags:
        - payments & wallet
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: ' x-service-provider'
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  walletBalance:
                    type: integer
                    description: amount in USD ($)
                  autoRechargeEnabled:
                    type: boolean
                  autoRechargeDetails:
                    type: object
                    properties:
                      amount:
                        type: integer
                        description: amount in USD ($)
                      threshold:
                        type: integer
                        description: Amount in USD ($)
                    x-apidog-orders:
                      - amount
                      - threshold
                    required:
                      - threshold
                      - amount
                x-apidog-orders:
                  - message
                  - walletBalance
                  - autoRechargeEnabled
                  - autoRechargeDetails
                required:
                  - message
                  - walletBalance
                  - autoRechargeEnabled
                  - autoRechargeDetails
              example:
                message: Wallet balance fetched successfully
                walletBalance: 54
                autoRechargeEnabled: true
                autoRechargeDetails:
                  amount: 50
                  threshold: 20
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: payments & wallet
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13490707-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
