Overview
AI Agents are services that users can access through payment plans. The Agents API allows you to:- Register new agents with associated payment plans
- Register agents and plans together in a single operation
- Update agent metadata and endpoints
- Manage plan associations
Agents API
Access the Agents API throughpayments.agents:
Register Agents
Basic Agent Registration
Register an agent and associate it with existing payment plans:Register Agent and Plan Together
Create both an agent and a payment plan in a single operation:Agent Configuration
AgentMetadata Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | str | Yes | Agent display name |
description | str | No | Agent description |
author | str | No | Author/company name |
tags | list[str] | No | Categorization tags |
license | str | No | License information |
sample_link | str | No | Link to demo/sample |
api_description | str | No | API documentation |
AgentAPIAttributes Fields
| Field | Type | Required | Description |
|---|---|---|---|
endpoints | list[dict] | Yes | List of endpoint configurations |
agent_definition_url | str | Yes | URL to OpenAPI/MCP/A2A spec |
open_endpoints | list[str] | No | Endpoints without auth |
auth_type | AuthType | No | Authentication type |
Endpoint Configuration
Endpoints are defined as dictionaries with HTTP verb as key and URL as value::agentId and :taskId placeholders will be replaced with actual values during request validation.
Retrieve Agents
Get a Single Agent
Get Plans for an Agent
Update Agents
Update Agent Metadata
Manage Plan Associations
Add a Plan to an Agent
Remove a Plan from an Agent
Complete Example
Next Steps
Publishing Static Resources
Publish files and datasets
Querying an Agent
Learn how to access agents