Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: AgentPay Gateway Agent API
description: Buyer-side trust layer for x402 agents. verified_route ranks providers on paid delivery evidence and sybil-collapsed payer counts; pre_trade_check returns an ok/caution/avoid verdict before a trade; session_create opens a spend cap the gateway enforces for the paying wallet on Stacks and Base, with chain-verified receipts on a public ledger. USDC on Base and Stellar, sBTC or STX on Stacks (any Stacks x402 client).
contact:
name: AgentPay
url: https://agentpay.tools/
email: romudille@gmail.com
version: 0.1.0
tags:
- name: Agent
paths:
/v1/agent/register:
post:
summary: Register Agent
description: 'Mint a fresh wallet + session token. Free, no payment.
Returns the wallet (the agent keeps its own secret), a session_token, the
list of free tools it can call immediately, and pointers to the next two
calls. Designed so an agent goes from zero to a free tool call without any
human step.'
operationId: register_agent_v1_agent_register_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AgentRegisterRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
tags:
- Agent
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
AgentRegisterRequest:
properties:
label:
anyOf:
- type: string
- type: 'null'
title: Label
network:
type: string
title: Network
default: stellar
max_spend:
type: string
title: Max Spend
default: '0.10'
type: object
title: AgentRegisterRequest