Skip to main content
The 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

url
string
required
The origin URL to discover endpoints on (e.g., https://stableenrich.dev).

Response

origin
string
The origin that was queried.
endpoints
object[]
List of discovered endpoints.
instructions
string
Usage instructions from the origin, if provided.

Behavior

  1. Fetches /.well-known/x402 from the origin
  2. Parses the OpenAPI-based discovery document
  3. Returns endpoints with their descriptions and pricing

Known origins

These origins are pre-indexed and available by default:
  • stableenrich.dev
  • stablesocial.dev
  • stablestudio.dev
  • stableupload.dev
  • stableemail.dev

Example

Ask your agent:
Discover all available endpoints on stableenrich.dev using AgentCash.