Quick Start
What You’ll LearnIn this guide, you’ll:
- Get your API key from the dashboard
- Create a user and initiate KYC verification
- Create an agent for your AI workflow
- Issue your first virtual card
- Retrieve card credentials for a purchase
Prerequisites
- A Proxy account (sign up here)
- An API key from your dashboard
Step 1: Get Your API Key
1
Log into Dashboard
Go to app.useproxy.ai and sign in.
2
Create API Key
Navigate to Settings > API Keys and click Create Key.
3
Copy Your Key
Copy your API key. It starts with
lk_dev_ for sandbox or lk_live_ for production.Step 2: Create a User
Users fund card spending. Start by creating a user:Step 3: Initiate KYC Verification
The user must complete KYC before using cards:verificationUrl before they can use cards.
Step 4: Register an Agent
Once the user is approved, register an agent.Why register an agent? Agents are the identity layer between users (who fund) and cards (which spend). A user can have multiple agents - whether that’s different AI assistants, sub-agents, or separate workflows:
- Each agent gets its own spending limits and cards
- Track spending per agent separately
- Suspend one agent without affecting others
- Issue scoped agent tokens instead of sharing your API key
externalId is your unique identifier for this agent (e.g., a UUID from your system). See Agents concept for more details.Step 5: Issue a Card
Now create a virtual card for the agent:Step 6: Get Card Details
To make a purchase, retrieve the card credentials:The
accessEventId creates an audit trail linking this credential access to your attestation.Step 7: Card Lifecycle
After use, manage your card with action endpoints:Troubleshooting
Error: 'Invalid API key'
Error: 'Invalid API key'
Check:
- Verify the key in your dashboard matches what you’re using
- Ensure you’re using
lk_dev_for sandbox,lk_live_for production - Check for extra whitespace or newlines in the key
User stuck in 'pending' verification
User stuck in 'pending' verification
Cause: KYC may require manual review or document re-upload.Solution: Check verification status via API:
Card creation fails with 'Insufficient balance'
Card creation fails with 'Insufficient balance'
Cause: User’s available balance is less than card’s
maxAmount.Solution: Check balance and either reduce maxAmount or have user deposit more funds: