HTTP API

The SDK wraps these. Use them directly from any language.

Send JSON, and your key as Authorization: Bearer uc_live_.... Every write takes a ref; the same ref returns the first result. Errors come back as { "error": "...", "code": "..." }, see Errors.

App routes

Need your API key.

Method and pathWhat it does
GET /v1/appYour app: payout, fee, prices, earnings, profile
PATCH /v1/profile{ name?, description?, logoUrl?, website?, category? }, your listing in the directory
GET /v1/prices, PUT /v1/pricesRead or replace the price list
GET /v1/quote?action=&quantity=Price, fee and what you earn
GET /v1/users/:accountA user's balance and limit for your app
POST /v1/connect/exchange{ code } to { user }
POST /v1/charges{ user, action | credits, quantity?, ref }
POST /v1/holds{ user, action | credits, quantity?, ref, ttlSeconds? }
GET /v1/holds/:holdIdA hold and its status
POST /v1/holds/:holdId/capture{ credits? }
POST /v1/holds/:holdId/releaseReturns the whole hold
POST /v1/refunds{ user, credits, ref }
PUT /v1/exchange-rate, POST /v1/convertLight mode
POST /v1/payoutPays unpaid earnings in USDT
GET /v1/activity, GET /v1/export.csv, GET /v1/gasReporting
PUT /v1/webhook, GET /v1/webhook/deliveriesWebhooks
POST /v1/sandbox/resetTest keys only: reset every test user

Public routes

No key needed.

Method and pathWhat it does
GET /v1/healthChain, vault, relayer and indexer status
GET /v1/reservesThe vault's USDT against everything it owes
GET /v1/statsNetwork totals
GET /v1/directoryEvery app, with prices and profile
GET /v1/claims/:claimKeyWhat a claim link holds

Dashboard routes

Used by the dashboard, signed in with the company owner's email login rather than an API key. Every app route above also works under /v1/me/apps/:id/... for the owner.

Method and pathWhat it does
GET /v1/me/company, PUT /v1/me/companyCompany profile
GET /v1/me/apps, POST /v1/me/appsList and register apps
PATCH /v1/me/apps/:id/profileApp name, description, website, logo, category
GET /v1/me/apps/:id/keys, POST /v1/me/apps/:id/keysList and create API keys
DELETE /v1/me/apps/:id/keys/:keyIdRevoke a key
GET /v1/me/apps/:id/statsRevenue, earnings, refunds, paying users, gas