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

# Get card details (PAN, CVV)

> Retrieve sensitive card details (PAN, CVV) after policy evaluation. Requires intent if policy mandates it.



## OpenAPI

````yaml openapi.json post /cards/{cardId}/details
openapi: 3.0.3
info:
  title: Proxy API
  description: >-
    Card issuance and transaction management API for AI agents and automation.
    Proxy enables customers to issue virtual cards with policy-based spending
    controls.
  version: 1.0.0
  contact:
    name: Proxy Support
    url: https://useproxy.ai
servers:
  - url: https://api.useproxy.ai/v1
    description: Production API
security:
  - BearerAuth: []
tags:
  - name: KYC
    description: Know Your Customer application management
  - name: Customers
    description: Manage customers who own agents and cards
  - name: Agents
    description: Manage autonomous agents that can spend on behalf of customers
  - name: Cards
    description: Manage virtual spending cards with policy controls
  - name: Intents
    description: Pre-transaction declarations for spend approval workflows
  - name: Spend
    description: Spend policy evaluation
  - name: Access Events
    description: Card credential access grants with attestation windows
  - name: Transactions
    description: View and manage transaction records
  - name: Balances
    description: View customer balances and funding instructions
  - name: Webhooks
    description: Configure outbound webhook subscriptions
paths:
  /cards/{cardId}/details:
    post:
      tags:
        - Cards
      summary: Get card details (PAN, CVV)
      description: >-
        Retrieve sensitive card details (PAN, CVV) after policy evaluation.
        Requires intent if policy mandates it.
      operationId: getCardDetails
      parameters:
        - $ref: '#/components/parameters/CardId'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessRequest'
      responses:
        '200':
          description: Card details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardDetails'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  reasons:
                    type: array
                    items:
                      $ref: '#/components/schemas/PolicyReason'
                required:
                  - error
                  - reasons
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    CardId:
      name: cardId
      in: path
      required: true
      description: Card ID (e.g., card_...)
      schema:
        type: string
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      description: Unique key for idempotent requests (24-hour cache)
      schema:
        type: string
  schemas:
    AccessRequest:
      type: object
      properties:
        intentId:
          type: string
          description: Intent ID to associate with this access
        purpose:
          type: string
          description: Purpose of access
        expectedAmount:
          type: number
          description: Expected amount in cents
        expectedCurrency:
          type: string
        merchantText:
          type: string
          description: Expected merchant name
        reason:
          type: string
        clientContext:
          type: object
          additionalProperties: true
    CardDetails:
      type: object
      properties:
        accessEventId:
          type: string
          description: Access event ID for this retrieval
        pan:
          type: string
          description: Full card number (PAN)
        cvv:
          type: string
          description: Card verification value
        expirationMonth:
          type: string
        expirationYear:
          type: string
        last4:
          type: string
        effectivePolicy:
          $ref: '#/components/schemas/Policy'
      required:
        - pan
        - cvv
    PolicyReason:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable reason code
        message:
          type: string
          description: Human-readable reason message
      required:
        - code
        - message
    Policy:
      type: object
      description: Spending policy controls
      properties:
        requireIntent:
          type: boolean
          description: Require an intent before card access
        requireAttestation:
          type: boolean
          description: Require attestation for card access
        requireApproval:
          type: boolean
          description: Require manual approval for intents
        autoApproveBelow:
          type: number
          description: Auto-approve intents below this amount (in cents)
        attestationWindowMinutes:
          type: number
          description: Minutes that access credentials remain valid
        cooldownMinutes:
          type: number
          description: Minimum minutes between transactions
        ttlMinutes:
          type: number
          description: Card time-to-live in minutes
        ttlDays:
          type: number
          description: Card time-to-live in days
        limits:
          type: object
          properties:
            perAuth:
              type: number
              description: Maximum amount per authorization (in cents)
            perDay:
              type: number
              description: Maximum daily spend (in cents)
            perMonth:
              type: number
              description: Maximum monthly spend (in cents)
        allowedMccs:
          type: array
          items:
            type: string
          description: Allowed merchant category codes
        blockedMccs:
          type: array
          items:
            type: string
          description: Blocked merchant category codes
        allowedMerchants:
          type: array
          items:
            type: string
          description: Allowed merchant names
        lockToFirstMerchant:
          type: boolean
          description: Lock card to first merchant used
    Error:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                details:
                  type: object
                  nullable: true
              required:
                - code
                - message
      required:
        - error
  responses:
    Unauthorized:
      description: Unauthorized - missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: unauthorized
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: not_found
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Include your API key in the Authorization header
        as `Bearer <api_key>`.

````