Zect is in active development — docs evolve fast.
API reference

API reference

Base URL: https://api.zect.io

The Zect API turns plain-language intent into a ranked list of executable routes aggregated across many providers. Public endpoints need no auth; account and admin endpoints use a bearer token.

Authentication

# email
curl -X POST https://api.zect.io/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{ "email": "you@example.com", "password": "..." }'
# → { ok, token, user }

Send the token as Authorization: Bearer <token> on authed routes. Developers can mint API keys in the developer portal.

Resolve an intent

POST /v1/intent
{ "say": "swap 100 USDT to ARB, cheapest" }

Response (abridged):

{
  "ok": true,
  "headline": "You'll get about 90.9 ARB",
  "priority": "cheapest",
  "flow": { "payToken": "USDT", "getToken": "ARB", "getAmount": "90.9" },
  "routes": [
    { "protocol": "Across → Jupiter", "logo": "across", "out": "90.9 ARB",
      "fee": "$0.29", "time": "~25s", "privacy": 30, "best": true, "tags": ["cheapest"] }
  ],
  "facts": [ { "label": "Arrives in", "value": "~25 seconds" } ]
}

Build an executable transaction (EVM)

POST /v1/transaction
{ "say": "swap 0.05 ETH to USDC on Base", "fromAddress": "0x..." }
# → { ok, transactionRequest: { to, data, value, chainId }, estimate }

The returned transactionRequest is signed and broadcast by the user’s wallet — Zect never holds funds.

Public endpoints

MethodPathDescription
POST/v1/intentResolve intent → ranked routes
POST/v1/transactionBuild an executable EVM transaction
GET/v1/chainsSupported chains
GET/v1/tokensSupported tokens
GET/v1/pay/{slug}Resolve a payment link

Account endpoints (bearer token)

MethodPathDescription
GET/v1/meCurrent user
GET/v1/account/overviewStats + recent activity
GET/v1/account/historySwap history
GET/v1/account/swaps/{id}A single receipt
GET/v1/account/rewardsZECT rewards + referral
GET/POST/DELETE/v1/account/linksPayment links
GET/POST/DELETE/v1/account/keysAPI keys

The API is evolving quickly during the beta. Endpoints and shapes may change.