# Get User Token Balance

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/credits:
    get:
      summary: Get User Token Balance
      deprecated: false
      description: >-
        This API allows you to retrieve the Token balance of a user account,
        including total and remaining Tokens. It requires authorization via a
        Bearer token.
      tags:
        - Reference
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer <your api key>
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Status code; "000".
                  msg:
                    type: string
                    description: Response message.
                  data:
                    type: object
                    properties:
                      businessId:
                        type: string
                        description: Reserved for future use or enterprise ID.
                      total:
                        type: integer
                        description: Total tokens allocated to the account.
                      remaining:
                        type: integer
                        description: Remaining tokens.
                    required:
                      - businessId
                      - total
                      - remaining
                    x-apifox-orders:
                      - businessId
                      - total
                      - remaining
                    description: Token information object.
                required:
                  - code
                  - msg
                  - data
                x-apifox-orders:
                  - code
                  - msg
                  - data
              example:
                code: '000'
                msg: success
                data:
                  businessId: ''
                  total: 92000
                  remaining: 90272
          headers: {}
          x-apifox-name: success
      security: []
      x-apifox-folder: Reference
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5562290/apis/api-319822170-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api-b.fotor.com
    description: 正式环境
security: []

```
