Agent_API

Direct API exposing full management capabilities including wallet, history, custom checkout, domains, and VPS actions. The dashboard checkout uses the same quote and purchase payloads through an internal account-scoped checkout actor.

TypeScript
typescript
const apiKey = process.env.AGENT_STORE_AGENT_API_KEY;
 
const categories = await fetch('https://ag3n7.store/v1/agent/catalog/categories', {
headers: { Authorization: `Bearer ${apiKey}` },
}).then((res) => res.json());
 
const items = await fetch(
'https://ag3n7.store/v1/agent/catalog/items?category=domains&q=ai&limit=5',
{ headers: { Authorization: `Bearer ${apiKey}` } },
).then((res) => res.json());
 
const quote = await fetch('https://ag3n7.store/v1/agent/quotes', {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'content-type': 'application/json',
},
body: JSON.stringify({
catalogItemId: '<catalog-item-uuid>',
quantity: 1,
configuration: {
domainName: 'launchpad.com',
periodYears: 1,
autoRenew: true,
privacyProtection: true,
},
}),
}).then((res) => res.json());
 
const purchase = await fetch('https://ag3n7.store/v1/agent/purchases', {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'content-type': 'application/json',
},
body: JSON.stringify({
quoteId: quote.quote.id,
idempotencyKey: 'deploy-domain-1',
}),
}).then((res) => res.json());
cURL
bash
API_BASE_URL="https://ag3n7.store/v1/agent"
API_KEY="ask_live_xxxxx.yyyyy"
&nbsp;
curl -X POST "$API_BASE_URL/quotes" -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{
"catalogItemId": "<catalog-item-uuid>",
"quantity": 1,
"configuration": {
"domainName": "launchpad.com",
"periodYears": 1,
"autoRenew": true,
"privacyProtection": true
}
}'
&nbsp;
curl -X POST "$API_BASE_URL/purchases" -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{
"quoteId": "<quote-id>",
"idempotencyKey": "deploy-domain-1"
}'
Python
python
import os
import requests
&nbsp;
api_base_url = "https://ag3n7.store/v1/agent"
api_key = os.environ["AGENT_STORE_AGENT_API_KEY"]
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
}
&nbsp;
quote_response = requests.post(
f"{api_base_url}/quotes",
headers=headers,
json={
"catalogItemId": "<catalog-item-uuid>",
"quantity": 1,
"configuration": {
"domainName": "launchpad.com",
"periodYears": 1,
"autoRenew": True,
"privacyProtection": True,
},
},
timeout=30,
)
quote_response.raise_for_status()
quote = quote_response.json()
&nbsp;
purchase_response = requests.post(
f"{api_base_url}/purchases",
headers=headers,
json={
"quoteId": quote["quote"]["id"],
"idempotencyKey": "deploy-domain-1",
},
timeout=30,
)
purchase_response.raise_for_status()
purchase = purchase_response.json()

Endpoints: GET /v1/agent/catalog/categories, GET /v1/agent/catalog/items, GET /v1/agent/catalog/items/:catalogItemId/checkout, GET /v1/agent/wallet, GET /v1/agent/policies/effective, POST /v1/agent/quotes, POST /v1/agent/purchases, GET /v1/agent/purchases, GET /v1/agent/purchases/:purchaseId, GET /v1/agent/services, GET /v1/agent/services/:serviceId, domain endpoints under /v1/agent/services/:serviceId/domain, and server endpoints under /v1/agent/services/:serviceId/server.