Obul Proxy (x402)

v1.0.0

USE THIS SKILL WHEN: the user wants to proxy a request through Obul, call an x402 API directly, or needs to understand the Obul proxy URL pattern. Handles x4...

0· 292· 1 versions· 0 current· 0 all-time· Updated 6h ago· MIT-0
bydefault@notbdu

Install

openclaw skills install obul-proxy

Obul Proxy

Proxy any upstream request through Obul; Obul handles x402 discovery and payment flow automatically.

Authentication

All requests route through the Obul proxy. Include your Obul API key in every request:

{
  "headers": {
    "Content-Type": "application/json",
    "x-obul-api-key": "{{OBUL_API_KEY}}"
  }
}

Base URL: https://proxy.obul.ai/proxy/{scheme}/{host}

Common Operations

Health Check

Verify the Obul proxy is operational.

Pricing: $0.00

{
  "method": "GET",
  "url": "https://proxy.obul.ai/healthz",
  "headers": {
    "Content-Type": "application/json",
    "x-obul-api-key": "{{OBUL_API_KEY}}"
  }
}

Response: Returns {"status":"ok"} when the proxy is healthy.

Proxy a Request

Forward any HTTP request through the Obul proxy. The proxy handles x402 payment negotiation automatically.

Pricing: Varies based on upstream endpoint

{
  "method": "POST",
  "url": "https://proxy.obul.ai/proxy/https/x402.browserbase.com/browser/session/create",
  "headers": {
    "Content-Type": "application/json",
    "x-obul-api-key": "{{OBUL_API_KEY}}"
  },
  "body": {}
}

Response: The proxied response from the upstream x402 endpoint.

Endpoint Pricing Reference

EndpointPricePurpose
GET /healthz$0.00Health check
/*VariesProxy any upstream x402 request

When to Use

  • Calling x402 endpoints — Route any x402-enabled API call through Obul without handling payments manually.
  • Unified API access — Use a single Obul API key to access multiple x402-enabled services.
  • Automatic payment handling — Let Obul negotiate and process payments for per-request micropayments.

Best Practices

  • Never reveal your API key — Keep OBUL_API_KEY secure and never expose it in logs or client-side code.
  • Use environment variables — Store your API key in OBUL_API_KEY env var and reference {{OBUL_API_KEY}} in requests.
  • Check health before use — Verify the proxy is operational with /healthz if you encounter issues.

Error Handling

ErrorCauseSolution
401 UnauthorizedMissing or invalid API keyVerify OBUL_API_KEY is set and valid.
402 Payment RequiredUpstream requires paymentEnsure your Obul account has sufficient balance.
403 ForbiddenAPI key lacks permissionsCheck your key has the required scopes.
404 Not FoundInvalid upstream URLVerify the upstream endpoint URL is correct.
429 Too Many RequestsRate limit exceededAdd a short delay between requests.
500 Internal Server ErrorObul proxy issueRetry the request. If persistent, check status at https://proxy.obul.ai/healthz.
503 Service UnavailableProxy temporarily downWait a few seconds and retry.

Version tags

latestvk97296gqd1b8tb0q47hb094prx829wzb