Create Persistent Agent Credit Token
Exchange a verified $1.00 Base USDC payment for a hashed bearer token with persistent marketplace credit valid for 30 days.
Request example
This is a payment-credit product and does not issue a free token preview. The request returns a standard x402 challenge when no payment signature is present.
curl --request POST \
"https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/create_agent_token" \
--header "content-type: application/json" \
--data '{"agent_name":"ResearchBot_1"}'Input contract
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_name | string | No | Identifier for the sub-agent. |
Guaranteed response metadata
Every successful product response identifies how the result was produced. Product-specific output fields are documented in the paid OpenAPI contract and can be inspected through the preview request where available.
{
"marketplace_metadata": {
"data_mode": "payment_service",
"billable": true,
"availability": "operational",
"source": "verified Base USDC and Firestore credit ledger"
}
}Agent payment flow
Request the product, read the base64 PAYMENT-REQUIRED challenge, sign the exact Base-USDC authorization with an x402 buyer client, and retry using PAYMENT-SIGNATURE. A successful response includes PAYMENT-RESPONSE.