> ## 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 policy summary

> Retrieve the resolved policy, spend limits, TTL, and cooldown status for a card.



## OpenAPI

````yaml openapi.json get /cards/{cardId}/policy
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}/policy:
    get:
      tags:
        - Cards
      summary: Get card policy summary
      description: >-
        Retrieve the resolved policy, spend limits, TTL, and cooldown status for
        a card.
      operationId: getCardPolicy
      parameters:
        - $ref: '#/components/parameters/CardId'
      responses:
        '200':
          description: Policy summary
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardPolicySummary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    CardId:
      name: cardId
      in: path
      required: true
      description: Card ID (e.g., card_...)
      schema:
        type: string
  schemas:
    CardPolicySummary:
      type: object
      properties:
        cardId:
          type: string
        usage:
          type: string
          enum:
            - single
            - multi
        status:
          type: string
          nullable: true
        ttl:
          type: object
          properties:
            minutes:
              type: number
              nullable: true
            days:
              type: number
              nullable: true
            expiresAt:
              type: string
              format: date-time
              nullable: true
            isExpired:
              type: boolean
        cooldown:
          type: object
          properties:
            minutes:
              type: number
              nullable: true
            lastSpendAt:
              type: string
              format: date-time
              nullable: true
            cooldownEndsAt:
              type: string
              format: date-time
              nullable: true
            isInCooldown:
              type: boolean
        limits:
          type: object
          properties:
            perAuth:
              type: number
              nullable: true
            perDay:
              type: number
              nullable: true
            perMonth:
              type: number
              nullable: true
            spentDay:
              type: number
            spentMonth:
              type: number
            remainingDay:
              type: number
              nullable: true
            remainingMonth:
              type: number
              nullable: true
        policy:
          $ref: '#/components/schemas/Policy'
      required:
        - cardId
        - usage
        - ttl
        - cooldown
        - limits
        - policy
    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>`.

````