OceanAlt X402 API
The X402 API from OceanAlt — 1 operation(s) for x402.
The X402 API from OceanAlt — 1 operation(s) for x402.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/oceanalt-com:oceanalt-com-x402-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: OceanAlt — compliance layer for agent payments X402 API
version: 1.0.0
summary: Before your agent pays, call OceanAlt once.
description: 'Free, no-signup, CORS-enabled compliance screening and payment decisions for autonomous agents.
Every verdict comes with verifiable evidence — which sanctions list, which issuer freeze, which on-chain path — so an agent (or its auditor) can check the reasoning rather than trust a score.
Coverage: 8 EVM chains (ethereum, base, bsc, polygon, arbitrum, optimism, avalanche, arc) + TRON + Bitcoin + Solana.
The compliance gateway runs 11 gates before settlement: Attribution (KYA) → Revocation check → Identity proof (anti-impersonation) → KYC gate (optional) → Per-payment limit → Daily cumulative limit → Payee allowlist → Mandate-intent match (anti prompt-injection) → AML sanctions & risk screening → Behavioral anomaly detection (optional) → Replay & double-spend prevention.
Language: human-readable fields default to English. Pass `lang=zh` for Chinese. `signal_keys` is language-independent — branch on it.
Limits of the claim: compliance screening is not full or licensed AML compliance, and a `clear` / `allow` result is not proof of safety — absence of evidence is not evidence of absence. Enforce your own mandate regardless.
API keys: optional and only ever raise limits (POST /api/access-keys). A key''s holder may additionally restrict it — scopes (screen_address, screen_endpoint, decide, payee_decide, batch_screen, trace_funds, evidence_bundle, intent_check, baseline_lookup), a source-IP allowlist, and an expiry — in which case a call outside those limits is refused 403 with reason_code key_scope_denied or key_ip_denied, and a call with an expired key is served at the anonymous level with key_rejected: expired. Keys with no restrictions set, and calls with no key at all, are unaffected. See /api/access-keys/settings.
Idempotency: the POST /api/pay payment call and `rotate` accept an `Idempotency-Key` header (semantics per draft-ietf-httpapi-idempotency-key-header). Same credential + same key + same JSON body within 24 hours returns the original status and body with `Idempotent-Replayed: true`; nothing runs twice and the retry is not recorded as a replay attack. Keep the same nonce when retrying. Calls without the header are unchanged.
Webhooks: notifications to a URL configured in the console are signed per Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature = v1,base64 HMAC-SHA256). Reject timestamps more than 300 seconds away. Failed deliveries are retried up to 5 attempts with the same webhook-id. See the top-level `webhooks` section.'
contact:
name: OceanAlt
url: https://oceanalt.com
email: business@oceanalt.com
license:
name: Free tier — fair use
url: https://oceanalt.com/en/api-docs
servers:
- url: https://oceanalt.com
tags:
- name: X402
paths:
/api/x402/credits:
get:
operationId: getCreditBalance
summary: Remaining calls on a credit token
parameters:
- name: X-OceanAlt-Credit
in: header
required: true
schema:
type: string
description: The credit token returned once when the pack was bought.
responses:
'200':
description: Balance of the credit token.
content:
application/json:
schema:
oneOf:
- type: object
description: 'No X-OceanAlt-Credit header: product description'
required:
- product
properties:
product:
type: string
price_usd:
type: number
credits:
type: integer
per_call_usd:
type: number
single_call_price_usd:
type: number
valid_days:
type: integer
buy:
type: string
use:
type: string
balance:
type: string
activation:
type: string
- type: object
description: 'With X-OceanAlt-Credit header: balance'
required:
- status
- remaining
properties:
status:
type: string
enum:
- pending
- active
- failed
- revoked
credits:
type: integer
used:
type: integer
remaining:
type: integer
expires_at:
type: string
'404':
description: Unknown credit token.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResult'
tags:
- X402
components:
schemas:
ErrorResult:
type: object
properties:
error:
type: string
description: Human-readable message, or a short machine code on some endpoints.
reason_code:
type: string
description: Present on decision endpoints, e.g. invalid_input or idempotency_key_invalid. Table at /api/contract.
retry:
type: string
enum:
- non_retryable
- not_applicable
- policy_dependent_backoff
- retry_after_authorization
- retry_after_fix
- retryable_after_funding
accepted_formats:
type: array
items:
type: string
enum:
- evm_0x
- tron_T
- solana_base58
- bitcoin
- xrpl_r
- monero
- bitcoin_cash_cashaddr
- litecoin_ltc1
- bnb_beacon_bnb1
description: Address formats accepted, on invalid-address errors. monero, bitcoin_cash_cashaddr, litecoin_ltc1 and bnb_beacon_bnb1 are list matching only.
code:
type: string
description: 'Short machine code on some errors. On the network field: unknown_network (not a network we recognise) or network_address_mismatch (the network does not fit the address format). Both come with reason_code invalid_input and retry retry_after_fix, and nothing was screened or charged.'
signal_class:
type: string
description: client_error on input errors.
accepted_networks:
type: array
items:
type: string
description: 'Present with code unknown_network or network_address_mismatch: the network names accepted (EVM chains, tron, solana, bitcoin). CAIP-2 mainnet ids such as eip155:8453 or solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp and common aliases such as bnb are also accepted; Solana devnet/testnet and TRON testnet CAIP-2 ids are unknown_network.'
note:
type: string
required:
- error
securitySchemes:
ApiKeyBearer:
type: http
scheme: bearer
description: Optional registered API key (POST /api/access-keys). It raises limits; it is never required.
ApiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: The same key, for clients that prefer a custom header.
externalDocs:
description: RAP — Responsible Agentic Payments framework
url: https://oceanalt.com/en/rap