sk_test_ operate in test mode: they issue test cards with no real money ever charged.
Base URL
There is one base URL for all requests, in both test and live mode:sk_test_ key:
sk_live_ key against the same URL operates on real cards. Nothing else in your request changes.
Test mode vs live mode
| Test mode | Live mode | |
|---|---|---|
| Base URL | https://api.agentcard.sh | https://api.agentcard.sh |
| API key prefix | sk_test_ | sk_live_ |
| Payments | Sandbox (no real charges) | Live (real charges) |
| Cards | Test cards (no real charges) | Real Visa cards |
mode or sandbox field in your requests — the API infers it from the key and returns "mode": "test" (or "live") on the resources it creates.
Getting started
- Install the admin CLI and log in
- Create an organization and API key
- Use
https://api.agentcard.shas your base URL for all API calls
sk_test_ keys by default, so you start in test mode with no extra configuration.
All examples in this documentation use
api.agentcard.sh. Use a sk_test_ key while developing; swap in a sk_live_ key against the same URL when you’re ready to go live.Going to production
When you’re ready to use real Visa cards:- Subscribe to a paid plan —
agent-cards-admin subscribe - Switch to production mode —
agent-cards-admin env production(requires an active subscription) - Create a production API key —
agent-cards-admin keys create(will producesk_live_*) - Swap the
sk_test_key in your integration for thesk_live_key — the base URL stayshttps://api.agentcard.sh