API reference

The control-plane API. Base URL: your deployment (e.g. https://chainship-dashboard.vercel.app). Auth is a Bearer account token (from chainship login) or the browser session cookie. Most endpoints accept either.

Auth

Method & pathBodyReturns
POST /api/auth/challenge{ address }{ nonce, message } to sign
POST /api/auth/verify{ address, nonce, signature }{ token, account } + session cookie
POST /api/auth/magic/request{ email }sends a magic link
GET /api/auth/magic/verify?token=nonesets session cookie → redirects
POST /api/auth/logoutnoneclears the session

Account

Method & pathAuthReturns
GET /api/meaccount{ account, capabilities }
GET /api/creditsaccount{ balanceUsd, ledger }
POST /api/credits/redeemaccountverify a Base USDC tx → credits

Deploy

Method & pathAuthNotes
GET /api/deploymentsaccount (without one, a hosted dashboard returns an empty list)list deployments
POST /api/deploymentsaccount/tokenrecord a deploy (CLI BYO-key sync)
POST /api/deployaccountmanaged gasless deploy: { files: [{ path, contentBase64 }] }
POST /api/x402/deploynonepay-per-deploy: 402 challenge → retry with X-PAYMENT and X-PAYMENT-SIGNATURE

Delivery & analytics

Method & pathNotes
GET /c/<txId>/<path>edge-cached Arweave proxy (warm = fast)
GET /p/<linkId>?k=<token>token-gated protected preview
POST /api/analytics/collectpublic (the a.js script posts here), no PII
GET /api/analyticsaccount (paid): pageviews + vitals

Admin (operator token)

POST /api/admin/plan, POST /api/admin/credit, GET /api/admin/treasury are guarded by CHAINSHIP_API_TOKEN.