get_service_descriptor
Get the L402/x402 service descriptor for endpoints, billing, schemas, error codes, and test endpoints. Use it to learn API call and payment requirements, pricing, and failure semantics.
Instructions
Fetch the machine-readable service descriptor for an L402/x402 service. Returns the full descriptor including endpoints, billing details, request/response schemas, stale times, error codes, refund policies, and test endpoints. Use this when you need structured metadata about how to call and pay for an API — billing units, pricing, failure semantics, and preflight verification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Service slug from the directory (e.g., 'satoshi-dispatches'). Used to look up the service URL if service_url is not provided. | |
| service_url | No | Base URL of the service (e.g., 'https://dispatches.mystere.me'). The descriptor will be fetched from {service_url}/.well-known/l402-descriptor.json |