> ## 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 secrets

> Return the PAN and CVC of 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>

<Warning>
  This endpoint returns the full card number and CVC. Store these values securely and never log them. Handle them like your own card credentials.
</Warning>

Secrets are never returned while the card is `locked`.


## OpenAPI

````yaml api-reference/openapi.json GET /api/v1/cards/secrets
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/secrets:
    get:
      tags:
        - Cards
      summary: Get card secrets (PAN and CVC)
      description: >-
        Returns the full PAN and CVC for the authenticated user's primary card.
        Secrets are never returned for a locked card.
      operationId: getMyCardSecrets
      parameters:
        - name: cardId
          in: query
          required: false
          description: Target a specific card (Rain card id) instead of the primary card.
          schema:
            type: string
      responses:
        '200':
          description: Card secrets returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardSecretsResponse'
              examples:
                default:
                  summary: Card secrets
                  value:
                    cardId: 3c90c3cc-0d44-4b50-8888-8dd25736052a
                    last4: '8567'
                    cardNumber: '4111111111111111'
                    cvc: '123'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/CardNotFound'
      security:
        - bearerAuth: []
components:
  schemas:
    CardSecretsResponse:
      type: object
      properties:
        cardId:
          type: string
          format: uuid
        last4:
          type: string
          example: '8567'
        cardNumber:
          type: string
          example: '4111111111111111'
          description: Full PAN.
        cvc:
          type: string
          example: '123'
          description: Card verification code.
      required:
        - cardId
        - last4
        - cardNumber
        - cvc
  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

````