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

# List all cards for the authenticated wallet



## OpenAPI

````yaml /openapi.yaml get /api/cards
openapi: 3.1.0
info:
  title: mag3nt API
  version: '2026-07-16'
  description: >
    Payment infrastructure for AI agents. Issue virtual cards backed by
    credentials, pay for API access via x402/AP2/MPP protocols, and settle in
    USDC on Base. Also covers Native Token Rails membership and recurring
    billing agreements, ERC-20 project token registration (including B20) and
    prepaid MAG3NT fee metering for DIRECT (non-custodial) settlement, the
    credential marketplace and Credential Token (CT) markets, account-wide token
    holdings, and signed webhooks for payment and subscription lifecycle events.
  contact:
    name: mag3nt
    url: https://mag3nt.com
  license:
    name: Proprietary
    url: https://github.com/mag3nt-com/mag3nt-node/blob/main/LICENSE
servers:
  - url: https://mag3nt.com
    description: Production
  - url: https://staging.mag3nt.com
    description: Staging, Base mainnet
security:
  - ApiKeyAuth: []
tags:
  - name: Payments
    description: Universal outbound protocol payments
  - name: Cards
    description: Virtual payment card lifecycle
  - name: Keys
    description: Developer API key management
  - name: Funding
    description: Treasury deposits and balances
  - name: x402
    description: HTTP 402 payment protocol
  - name: AP2
    description: Agent-to-Agent Payment Protocol
  - name: MPP
    description: Micropayment Protocol with streaming
  - name: Pay Links
    description: Shareable payment URLs
  - name: Withdrawals
    description: Withdraw unspent funds back to wallet
  - name: Settlement
    description: On-chain settlement status
  - name: Webhooks
    description: Signed payment and subscription lifecycle notifications for sellers
  - name: Status
    description: System health and configuration
  - name: Membership
    description: Native Token Rails membership tiers, checkout, and auto-renew
  - name: Billing
    description: Recurring billing agreements funded by AP2 open mandates
  - name: Tokens
    description: >-
      Register an ERC-20 contract (including B20 tokens) for DIRECT credential
      settlement
  - name: Fees
    description: Prepaid MAG3NT fee meter for DIRECT settlement overage
  - name: Marketplace
    description: >-
      List and transfer credential businesses (proof of record) on the mag3nt
      marketplace
  - name: Credential Tokens
    description: Credential Token (CT) launch and Uniswap V4 markets
  - name: Holdings
    description: Account-wide Credential Token balances
externalDocs:
  description: mag3nt documentation
  url: https://docs.mag3nt.com
paths:
  /api/cards:
    get:
      tags:
        - Cards
      summary: List all cards for the authenticated wallet
      operationId: cardsList
      responses:
        '200':
          description: Cards list
          content:
            application/json:
              schema:
                type: object
                properties:
                  cards:
                    type: array
                    items:
                      $ref: '#/components/schemas/Card'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Card:
      type: object
      properties:
        id:
          type: string
          example: sx_a66a6666-1234-5678-9abc-def012345678
        token:
          type: string
          example: tok_3b9fe670-abcd-efgh-ijkl-mnopqrstuvwx
        purpose:
          type: string
          example: Research Agent
        limit_amount:
          type:
            - number
            - string
          example: 50
        status:
          type: string
          enum:
            - ACTIVE
            - FROZEN
            - EXPIRED
            - USED
            - CLOSED
            - PENDING_FUNDING
            - FUNDING_FAILED
          example: ACTIVE
        mcc_locks:
          type: string
          example: ''
        single_use:
          type: integer
          enum:
            - 0
            - 1
          example: 0
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
        funding_network:
          type: string
          example: eip155:8453
        funding_asset:
          type: string
          example: USDC
        wallet_address:
          type: string
          example: 0x1234...abcd
        balance:
          type:
            - number
            - string
          example: 0
        remaining:
          type:
            - number
            - string
          example: 50
        settlement_mode:
          type: string
          enum:
            - CUSTODIAL
            - DIRECT
          default: CUSTODIAL
          description: >
            CUSTODIAL cards hold a platform ledger balance funded from your
            treasury. DIRECT cards are non-custodial: they accept a registered
            project token straight to an on-chain holder, have limit_amount
            forced to 0, and require an active Native Token Rails membership to
            settle. DIRECT is set at issuance via settlement_mode in POST
            /api/issue and cannot be changed after creation.
        custody_mode:
          type: string
          enum:
            - CUSTODIAL
            - SELF
          default: CUSTODIAL
          description: >-
            SELF credentials bind holder_address to a wallet you control
            (holder_mode "external" at issuance). CUSTODIAL uses a
            mag3nt-managed CDP smart account.
        holder_address:
          type: string
          description: >-
            The credential's on-chain holder address. For DIRECT + custody_mode
            SELF this is the receive_address you provided; otherwise a
            mag3nt-provisioned smart account.
          example: 0xabc1...def2
        chain_status:
          type: string
          enum:
            - NONE
            - PROVISIONED
            - ACTIVE
            - PROVISION_FAILED
            - EXTERNAL
          description: >-
            On-chain provisioning status of holder_address. EXTERNAL means the
            holder is a wallet you control (nothing for mag3nt to provision).
        balance_source:
          type: string
          enum:
            - ledger
            - onchain
          description: >-
            Present on DIRECT cards. "onchain" means
            balance/remaining/limit_amount are a live balanceOf() read of the
            funding asset at holder_address, not a platform ledger sum.
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Card not found
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key prefixed with 'Bearer sx_live_...'

````