1. Get your credentials
You need an Agentcard organizationclient_id and client_secret from the dashboard. Exchange them for an access token:
$ORG_TOKEN. Sandbox credentials create sandbox users and test cards. Start there.
2. Authenticate a user
Send the user a one-time code, then verify it. In sandbox the code is always111111.
user.id names the user on every call your server makes. access_token is the connection token: it acts as the user, and it is what your agent will create and use cards with.
Record consent once:
3. Complete KYC
Issued cards require identity verification. Read the status, and hand the user the hosted page it returns:identity.verification.updated or by reading the status again. In sandbox nothing is reviewed, so approve the test user directly:
4. Fund the balance and issue a card
Cards draw on the user’s balance. Your agent does both steps through the Agentcard MCP server, connected with the user’s connection token:add_funds with an amount. It returns a single-use Apple Pay / Google Pay link. The user pays in their own browser. Then create the card:
create_card may first return kyc_required or wallet_funding_required, which point back to steps 3 and 4.
More on issuing →
5. Use the card
Ask for the credentials when your agent is at the checkout, not before:transaction.authorized tells your server money moved.
More on using cards →
What’s next
Authenticating a user
Tokens, consent, refresh, and what each credential may call.
Completing a KYC
Hosted or custom verification, statuses, sandbox simulation.
Issuing a card
Funding, single-use and multi-use cards, merchant locks.
Using the cards
Reading credentials, paying, pausing, closing, webhooks.