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

# Get an onboarding attempt

> Inspect an attempt's state while you wait for `connection.created`: whether the person has verified, whether the grant was already exchanged, and when the attempt expires. Only the client that created the attempt can read it.

## How it works

Read an attempt's state while you wait for the `connection.created` webhook:
`pending` means the person hasn't verified yet, `converted` means they have
(and `user_id` is present), `expired` means the link died unused, and
`exchanged` tells you whether the grant was already collected. Only the client
that created the attempt can read it; anything else answers the same `404` as
an unknown id.


## OpenAPI

````yaml openapi.json GET /api/v2/onboarding_attempts/{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.
  - name: Wallet funding
    description: >-
      Fund a connected user's wallet from your own UI — request a payment link,
      relay the phone verification code, and poll until the funds land.
  - name: Withdrawals
    description: >-
      Move money out of a connected user's wallet — to a saved bank account or a
      crypto address on Base. Transfers are processed manually by the Agentcard
      team, usually within 1-3 business days.
paths:
  /api/v2/onboarding_attempts/{id}:
    get:
      tags: []
      summary: Get an onboarding attempt
      description: >-
        Inspect an attempt's state while you wait for `connection.created`:
        whether the person has verified, whether the grant was already
        exchanged, and when the attempt expires. Only the client that created
        the attempt can read it.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The attempt id from the create response.
      responses:
        '200':
          description: The attempt.
          content:
            application/json:
              example:
                object: onboarding_attempt
                id: oa_1a2b3c4d5e6f7a8b9c0d1e2f
                status: pending
                phone_masked: +1•••••••0123
                external_user_id: your-internal-id
                created_at: '2026-08-23T00:00:00.000Z'
                expires_at: '2026-08-25T00:00:00.000Z'
                exchanged: false
                test_mode: true
        '404':
          description: '`not_found` — no such attempt for this client.'
components:
  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.

````