discover_api_endpoints tool fetches the discovery document from an x402-compatible origin and returns a list of all available endpoints.
Equivalent CLI command: npx agentcash discover <url>
Parameters
The origin URL to discover endpoints on (e.g.,
https://stableenrich.dev).Response
The origin that was queried.
List of discovered endpoints.
Usage instructions from the origin, if provided.
Behavior
- Fetches
/.well-known/x402from the origin - Parses the OpenAPI-based discovery document
- Returns endpoints with their descriptions and pricing
Known origins
These origins are pre-indexed and available by default:stableenrich.devstablesocial.devstablestudio.devstableupload.devstableemail.dev
Example
Ask your agent:Discover all available endpoints on stableenrich.dev using AgentCash.