Developer Tool · x402

Safe4 payment authorization decision

Safe4 payment authorization decision

by api.safe4.ai · discovered, not yet claimed by its owner · updated 2026-08-30

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Safe4 payment authorization decision

Tags: bazaar

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/9046.json for the price and payment options.
  3. Pay. Call GET https://api.safe4.ai/v1/authorize. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base Sepolia, eip155:5042002, Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
see accepts
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base Sepolia, eip155:5042002, Base
Uptime
1 of the last 1 checks answered
Calls (30d)
99 · 4 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase Sepolia
eip155:84532
USDC100000x1ffc103849B7Ad8866A151149290f6F496e9b439604900s
exacteip155:5042002
eip155:5042002
0x3600000000000000000000000000000000000000100000x1ffc103849B7Ad8866A151149290f6F496e9b439604900s
exactBase Sepolia
eip155:84532
USDC100000x1ffc103849B7Ad8866A151149290f6F496e9b439600s
exactBase
eip155:8453
USDC100000x1ffc103849B7Ad8866A151149290f6F496e9b439600s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:84532",
    "payTo": "0x1ffc103849B7Ad8866A151149290f6F496e9b439",
    "asset": "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
    "amount": "10000",
    "maxTimeoutSeconds": 604900
  },
  {
    "scheme": "exact",
    "network": "eip155:5042002",
    "payTo": "0x1ffc103849B7Ad8866A151149290f6F496e9b439",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "10000",
    "maxTimeoutSeconds": 604900
  },
  {
    "scheme": "exact",
    "network": "eip155:84532",
    "payTo": "0x1ffc103849B7Ad8866A151149290f6F496e9b439",
    "asset": "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
    "amount": "10000",
    "maxTimeoutSeconds": 600
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x1ffc103849B7Ad8866A151149290f6F496e9b439",
    "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
    "amount": "10000",
    "maxTimeoutSeconds": 600
  }
]

Schemas

Output schema (JSON Schema)
{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "agent_id": "agent-research-01",
          "allowed_service_categories": [
            "market-data",
            "research"
          ],
          "amount": "25.00",
          "counterparty": "market-data-provider.example",
          "currency": "USDC",
          "purchase": "Market data API subscription",
          "purchase_purpose": "Pull competitor pricing data for the research",
          "service_category": "market-data",
          "task": "Research competitor pricing for the Q4 strategy deck",
          "task_id": "task-4417"
        },
        "bodyType": "json",
        "method": "POST",
        "type": "http"
      },
      "output": {
        "example": {
          "audit": {
            "entry_hash": "9f2c1d0a7b5e4c3f8a6d2b1e0c9f8a7d6b5e4c3f2a1d0b9c8e7f6a5d4c3b2a19",
            "previous_hash": "3b1a9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a09",
            "recorded_at": "2026-08-19T10:32:04.117Z",
            "sequence_number": 1841
          },
          "decision": "ALLOW",
          "evaluator_version": "safe4-task-bound-v1",
          "match_score": 0.75,
          "matched_concepts": [
            "competitor",
            "pricing",
            "research"
          ],
          "payment": {
            "amount": "10000",
            "network": "eip155:8453",
            "payer": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
            "transaction": "a7f3c9e2-4b1d-4f8a-9c2e-6d5b4a3f2e1c"
          },
          "reason": "The proposed purchase matches the submitted task context.",
          "reason_code": "TASK_PURCHASE_MATCH"
        },
        "type": "json"
      }
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "input": {
          "additionalProperties": false,
          "properties": {
            "body": {
              "additionalProperties": false,
              "properties": {
                "agent_id": {
                  "anyOf": [
                    {
                      "maxLength": 200,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "allowed_counterparties": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "allowed_service_categories": {
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "amount": {
                  "anyOf": [
                    {
                      "exclusiveMinimum": 0,
                      "maximum": 1000000000000,
                      "type": "number"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "counterparty": {
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "currency": {
                  "default": "USDC",
                  "maxLength": 10,
                  "minLength": 2,
                  "type": "string"
                },
                "purchase": {
                  "maxLength": 2000,
                  "minLength": 1,
                  "type": "string"
                },
                "purchase_purpose": {
                  "maxLength": 2000,
                  "minLength": 1,
                  "type": "string"
                },
                "service_category": {
                  "maxLength": 80,
                  "minLength": 1,
                  "type": "string"
                },
                "task": {
                  "maxLength": 2000,
                  "minLength": 1,
                  "type": "string"
                },
                "task_id": {
                  "anyOf": [
                    {
                      "maxLength": 200,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                }
              },
              "required": [
                "task",
                "purchase",
                "purchase_purpose",
                "amount",
                "counterparty",
                "service_category",
                "allowed_service_categories"
              ],
              "type": "object"
            },
            "bodyType": {
              "enum": [
                "json",
                "form-data",
                "text"
              ],
              "type": "string"
            },
            "headers": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "method": {
              "enum": [
                "POST",
                "PUT",
                "PATCH"
              ],
              "type": "string"
            },
            "queryParams": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": {
              "const": "http",
              "type": "string"
            }
          },
          "required": [
            "type",
            "method",
            "bodyType",
            "body"
          ],
          "type": "object"
        },
        "output": {
          "properties": {
            "example": {
              "type": "object"
            },
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}
Example shape — generated from the schema, not a captured live response
null

Examples

curl
curl "https://api.safe4.ai/v1/authorize"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.safe4.ai/v1/authorize");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://api.safe4.ai/v1/authorize")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.safe4.ai
Endpoint
https://api.safe4.ai/v1/authorize
Machine-readable
/resources/9046.json