x402 Facilitator

List x402 resources

Changed on

Lists all active discovered x402 resources. This endpoint returns resources that have been discovered and cached by the x402 facilitator, including their payment requirements and metadata. The response is paginated, and by default, returns 100 items per page.

get/v2/x402/discovery/resources

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP none

Query parameters

type, string
Example:http

Filter by protocol type (e.g., "http", "mcp"). Currently, the only supported protocol type is "http".

limit, integer

The number of discovered x402 resources to return per page.

offset, integer

The offset of the first discovered x402 resource to return.

Response

Successfully retrieved discovery list.

X402DiscoveryResourcesResponse required

Response containing discovered x402 resources.

x402Version, 1 | 2 required

The version of the x402 protocol.

items, X402DiscoveryResource[] required

List of discovered x402 resources.

pagination, object required

Pagination information for the response.

Example response

{
  "x402Version": 2,
  "items": [
    {
      "resource": "https://api.example.com/weather/forecast",
      "description": "Real-time weather forecast data.",
      "type": "http",
      "x402Version": 2,
      "lastUpdated": "2024-01-15T10:30:00Z",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "1000000",
          "payTo": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
          "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
          "maxTimeoutSeconds": 60
        }
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "GET"
            }
          },
          "schema": {}
        }
      },
      "quality": {
        "l30DaysTotalCalls": 42,
        "l30DaysUniquePayers": 15,
        "lastCalledAt": "2024-01-15T10:30:00Z"
      },
      "serviceName": "Weather API",
      "tags": [
        "weather",
        "data"
      ],
      "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/...",
      "curated": true,
      "skillUrl": "https://skills.cdp.coinbase.com/weather-api/SKILL.md"
    }
  ],
  "pagination": {
    "limit": 100,
    "offset": 0,
    "total": 1000
  }
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    1 more change in this revision