The flow you implement
Four steps, in order. Each page contains a paste-ready instruction block for your coding agent plus the underlying API calls.1
User authentication
Connect the user to Agentcard from inside your own app. Your backend
triggers a one-time code and receives the user’s
user_id and connection
tokens — no redirects, no hosted sign-in page.
Implement user authentication →2
KYC
Verify the user’s identity: upload the front and back of their ID, confirm
the extracted details, and run a short face scan. Ask for the ID photos
first — the upload responses prefill the details form.
Implement identity verification →
3
MCP server
Point your agent at the Agentcard MCP server with the user’s connection
token. The card tools load automatically —
create_card issues cards
against the wallet balance.
Wire up the MCP server →4
Funding a wallet
When the balance is short, create a funding session and hand the user a
checkout link — Apple Pay, Google Pay, or card. Funding reuses the
completed KYC; an unverified user is refused with
kyc_required.
Implement wallet funding →