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

> Return the PIN 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>

Returns the PIN for the primary card. If the card is `locked`, the PIN is not returned.


## OpenAPI

````yaml api-reference/openapi.json GET /api/v1/cards/pin
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/pin:
    get:
      tags:
        - Cards
      summary: Get card PIN
      description: Returns the PIN for the authenticated user's primary card.
      operationId: getMyCardPin
      responses:
        '200':
          description: Card PIN returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardPinResponse'
              examples:
                default:
                  summary: Card PIN
                  value:
                    pin: '1234'
                    cardId: 3c90c3cc-0d44-4b50-8888-8dd25736052a
                    last4: '8567'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/CardNotFound'
      security:
        - bearerAuth: []
components:
  schemas:
    CardPinResponse:
      type: object
      properties:
        pin:
          type: string
          example: '1234'
          description: The card PIN.
        cardId:
          type: string
          format: uuid
          description: Rain card id the PIN was resolved for.
        last4:
          type: string
          example: '8567'
      required:
        - pin
  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

````