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

# Get card details

> Return masked details for the authenticated user's primary card.

<Note>
  Requires `Authorization: Bearer <user-access-token>` — the token from [Verify login code](/api-reference/users/verify-otp).
</Note>

This endpoint returns masked card data only. PAN and CVC are not returned.


## OpenAPI

````yaml api-reference/openapi.json GET /api/v1/cards/details
openapi: 3.1.0
info:
  title: QASH API
  description: >-
    QASH endpoints for exchange rates, cards, and partner-facing financial
    workflows.
  version: 1.0.0
servers:
  - url: https://api.qash.ai
    description: Partner API (Production)
  - url: https://staging.qash.ai
    description: Staging
  - url: https://app.qash.ai
    description: Production
security: []
tags:
  - name: Exchange rates
    description: Public endpoints for supported assets and TRM-based quotes.
  - name: Cards
    description: >-
      Authenticated partner endpoints for card state, controls, limits, and
      balances.
  - name: Users
    description: Admin endpoints for user provisioning and account management.
paths:
  /api/v1/cards/details:
    get:
      tags:
        - Cards
      summary: Get card details
      description: >-
        Returns masked details for the authenticated user's primary card. PAN
        and CVC are never returned by this endpoint.
      operationId: getCardDetails
      responses:
        '200':
          description: Masked card details returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardDetailsResponse'
              examples:
                default:
                  summary: Virtual card
                  value:
                    id: 3c90c3cc-0d44-4b50-8888-8dd25736052a
                    type: virtual
                    status: active
                    last4: '8567'
                    expirationMonth: '08'
                    expirationYear: '31'
                    limit:
                      amount: 1000
                      frequency: per24HourPeriod
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/CardNotFound'
      security:
        - bearerAuth: []
components:
  schemas:
    CardDetailsResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          example: virtual
        status:
          $ref: '#/components/schemas/CardStatus'
        last4:
          type: string
        expirationMonth:
          type: string
        expirationYear:
          type: string
        limit:
          $ref: '#/components/schemas/CardLimit'
      required:
        - id
        - type
        - status
        - last4
        - expirationMonth
        - expirationYear
        - limit
    CardStatus:
      type: string
      enum:
        - notActivated
        - active
        - locked
        - canceled
    CardLimit:
      type: object
      properties:
        amount:
          type: number
        frequency:
          $ref: '#/components/schemas/LimitFrequency'
      required:
        - amount
        - frequency
    LimitFrequency:
      type: string
      enum:
        - per24HourPeriod
        - perWeek
        - perMonth
        - allTime
  responses:
    Unauthorized:
      description: Invalid or expired JWT.
    CardNotFound:
      description: The authenticated user does not have a registered card.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````