Skip to main content
Paste this into your AI assistant for full AgentPay context:

1. Create an account

Save the api_key from the response — you’ll need it for all subsequent calls.

2. Add a payment method

Visit agentpay.la/setup and add a debit or credit card. This is used to fund your virtual cards via authorize-capture (you’re only charged for actual spend).

3. Create a card

The response includes the card id and status: "active".

4. Get card details

Returns pan, cvv, expiry_month, expiry_year — everything needed to make a purchase.

5. Close the card

Captures the actual spend + fee, releases unused funds.

Connect to your AI agent