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

# Read card credentials

> Read a card's number, expiry and CVC at the payment form.

The number, expiry and CVC to key into a checkout. Read them at the payment
form, never store them, and keep them out of your logs and error reports. Each
read is audited.


## OpenAPI

````yaml openapi.json GET /api/v2/cards/{card_id}/credentials
openapi: 3.1.0
info:
  title: Agentcard API
  version: 2.0.0
  description: >-
    The Agentcard v2 API — connect your users and verify their identity from
    your own backend. Every call is authenticated with a platform access token
    minted from your `client_id` + `client_secret`.
servers:
  - url: https://api.agentcard.sh
    description: >-
      There is one base URL. Sandbox vs production is decided by the client
      credential you use, never by the host.
security:
  - platformToken: []
tags:
  - name: Authentication
    description: >-
      Exchange your client credentials for a platform access token, and
      introspect what a token acts as.
  - name: Connect
    description: >-
      Connect a user to your platform: send a one-time code, verify it, record
      consent, and keep the connection alive.
  - name: Identity verification
    description: >-
      Verify a connected user's identity: upload their ID, submit any extra
      fields we ask for, then show a short face scan.
paths:
  /api/v2/cards/{card_id}/credentials:
    get:
      tags:
        - Cards
      summary: Read card credentials
      description: >-
        The number, expiry and CVC to key into a checkout. Read them at the
        payment form, never store them, and keep them out of your logs. Each
        read is audited.
      operationId: cardCredentials
      parameters:
        - name: card_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardCredentials'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            `credentials_protected`: the user approves each read.
            `policy_denied`: a card rule refuses this read now.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            `card_not_found`: no such card on your company, in this credential's
            mode.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: '`card_closed`: a closed card has no credentials. Issue a new one.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - platformToken: []
components:
  schemas:
    CardCredentials:
      type: object
      required:
        - object
        - id
        - number
        - exp_month
        - exp_year
        - cvc
        - last4
      properties:
        object:
          type: string
          description: Always `card_credentials`.
          enum:
            - card_credentials
        id:
          type: string
          description: The card's id.
        number:
          type: string
          description: The card number.
        exp_month:
          type: string
          description: Expiry month.
        exp_year:
          type: string
          description: Expiry year, four digits.
        cvc:
          type: string
          description: The CVC.
        last4:
          type: string
          description: The last four digits.
        cardholder_name:
          type: string
          description: The name on the card.
        billing_address:
          type: string
          description: The billing address.
    Error:
      type: object
      description: Every v2 error uses the same envelope.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: A stable, machine-readable string (snake_case). Branch on this.
            message:
              type: string
              description: A human-readable explanation, safe to log.
            docs:
              type: string
              description: A link back to the reference.
            field_errors:
              type: object
              additionalProperties:
                type: string
              description: Only on `invalid_fields` — names each field to fix.
            warnings:
              type: array
              items:
                type: string
              description: >-
                Only on document upload errors — actionable feedback safe to
                show the user.
  responses:
    Unauthorized:
      description: >-
        `unauthorized` — the platform access token is missing or expired.
        Exchange your client credentials for a fresh one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    platformToken:
      type: http
      scheme: bearer
      description: >-
        A platform access token. Get one on the **Create an access token**
        endpoint by exchanging your `client_id` + `client_secret`, then send it
        as `Authorization: Bearer <token>`. Tokens live one hour.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.