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

# Get a funding session

> Read where a funding session stands.

Where a funding session stands.


## OpenAPI

````yaml openapi.json GET /api/v2/wallet/fund/{session_id}
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/wallet/fund/{session_id}:
    get:
      tags:
        - User balance
      summary: Get a funding session
      description: Where a funding session stands.
      operationId: walletFundGet
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The funding session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundingSession'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: '`not_found`: no funding session with that id.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - platformToken: []
components:
  schemas:
    FundingSession:
      type: object
      required:
        - object
        - id
        - user_id
        - status
        - amount_cents
      properties:
        object:
          type: string
          description: Always `funding_session`.
          enum:
            - funding_session
        id:
          type: string
          description: The session's id.
        user_id:
          type: string
          description: The connected user.
        status:
          type: string
          description: >-
            Where the payment stands: `pending`, `processing`, `completed`,
            `failed` or `expired`.
        livemode:
          type: boolean
          description: '`false` on a sandbox user.'
        amount_cents:
          type: integer
          description: What the user receives.
        currency:
          type: string
          description: '`USD`.'
        payment_method:
          type: string
          description: '`apple_pay` or `google_pay`.'
        checkout_url:
          type:
            - string
            - 'null'
          description: The link the user pays. Null in sandbox.
        expires_at:
          type: string
          description: When the link stops working.
          format: date-time
    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.