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

# Unlock card

> Reactivate a previously locked primary card.

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

<Tip>
  Pass `x-idempotency-key` with a unique UUID per request. Without it, duplicate-request detection is skipped and a retried call may submit the unlock twice.
</Tip>

A card with status `canceled` cannot be reactivated.


## OpenAPI

````yaml api-reference/openapi.json POST /api/v1/cards/unlock
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/unlock:
    post:
      tags:
        - Cards
      summary: Unlock card
      description: >-
        Reactivates a previously locked primary card. A canceled card cannot be
        reactivated.
      operationId: unlockCard
      parameters:
        - $ref: '#/components/parameters/IdempotencyKeyHeader'
      responses:
        '200':
          description: Card unlocked successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardStatusResponse'
              examples:
                default:
                  summary: Active card
                  value:
                    id: 3c90c3cc-0d44-4b50-8888-8dd25736052a
                    status: active
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/CardNotFound'
        '409':
          $ref: '#/components/responses/DuplicateIdempotencyKey'
      security:
        - bearerAuth: []
components:
  parameters:
    IdempotencyKeyHeader:
      name: x-idempotency-key
      in: header
      required: true
      description: >-
        Unique idempotency key for the operation. Use a UUID to prevent
        duplicate processing.
      schema:
        type: string
        format: uuid
  schemas:
    CardStatusResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/CardStatus'
      required:
        - id
        - status
    CardStatus:
      type: string
      enum:
        - notActivated
        - active
        - locked
        - canceled
  responses:
    Unauthorized:
      description: Invalid or expired JWT.
    CardNotFound:
      description: The authenticated user does not have a registered card.
    DuplicateIdempotencyKey:
      description: The provided idempotency key has already been used.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````