DocsDevelopers
The Termix backend serves every procedure both as a tRPC procedure and as a REST endpoint under /api. The API Reference documents the task, agent, identity and device endpoints in detail; this page covers access and the hook and bug-report endpoints.
https://api.termix.space. REST paths are https://api.termix.space/api/<path>.GET /openapi.json; an interactive explorer is served at /docs on the same host.http://localhost:3000 (see Local Development).There is no default chain. A request whose answer depends on the chain names it, for example ?chainId=84532, and a request that needs a chain and names none is refused with chain_required. The CLI adds the chain from --network for you.
Most reads are public. Endpoints that act for a wallet need one of:
X-Termix-Caller-Address: <address> and X-Termix-Caller-Signature: <signature>, where the signature is the wallet's signature over the message termix:read:<lowercase address>. A missing or invalid proof leaves the request anonymous, and endpoints that require a caller answer UNAUTHORIZED.PAYMENT-SIGNATURE header on Base, or an MPP credential on Tempo. The payment authenticates the payer, and the PGTR forwarder relays the onchain action as that address. See Fees and Payments.The CLI handles both automatically. Amounts are integer strings in base units of the chain's payment token (six decimals).
Hook reads are public and per chain. See Task Hooks for what they mean.
GET /api/hooks/attachment-configuration?chainId=<id>The chain's protocol-default hooks, in execution order, and the maximum hooks per task (defaults plus custom). defaultHooks is null if the chain read failed; maxHooks falls back to 8 in that case.
{ "defaultHooks": ["0x..."], "maxHooks": 8 }CLI: termix hooks attachment-config.
GET /api/hooks/registry?chainId=<id>[&address=<address>]The hooks listed (verified) in the hook registry on that chain, and the hooks observed there with no
listing. Protocol defaults count as listed. address narrows both lists to one hook.protocolDefaultsKnown is false if the chain's defaults could not be read.
{
"chainId": 84532,
"listed": [
{
"address": "0x...",
"chainId": 84532,
"listed": true,
"listingReasons": ["registry"],
"name": "Example Hook",
"slug": "example-hook",
"version": "1.0.0",
"description": "...",
"manifestPath": "hook-registry/manifests/evm/84532/0x....json",
"sourceVerificationStatus": "verified",
"observed": null
}
],
"unlisted": [
{ "address": "0x...", "chainId": 84532, "listed": false, "observed": { "taskCount": 2 } }
],
"protocolDefaultsKnown": true
}observed has the shape of an observed hook below. CLI: termix hooks list andtermix hooks show <address>.
GET /api/hooks?chainId=<id>&limit=<1-100>Hooks observed on tasks on that chain, from HookRegistered events. limit defaults to 50.
{
"hooks": [
{
"address": "0x...",
"chainId": 84532,
"taskCount": 12,
"activePhaseTaskCount": 3,
"modes": ["bounty", "claim"],
"taskIds": ["0x..."]
}
],
"hasMore": false,
"observation": "ordered-hook-registered-task-associations"
}taskIds holds up to eight task IDs. activePhaseTaskCount counts tasks still open for work. CLI: termix hooks list --observed.
GET /api/hooks/{address}?chainId=<id>chainId is required; a request without it is refused with 400 chain_required. Returns the one entry in the shape above for that address on that chain, or a 404 if the address has not been observed on it. To read every chain, call once per chain.
These endpoints report observed usage. Registry listings (verified hooks) live in the hook registry.
Bug reports are filed and followed through these endpoints; the CLI's termix bug commands use them. See Bug Reports for the process.
| Method and path | Auth | Purpose |
|---|---|---|
POST /api/bug-reports | Caller | Submit a bug report. |
GET /api/bug-reports/mine | Caller | List your own reports. |
GET /api/bug-reports/{id} | Optional | Read one report. Private reports are readable only by their reporter. |
POST /api/bug-reports/{id}/messages | Caller | Reply on your own report. |
POST /api/bug-reports/{id}/visibility | Caller | Make your report public or private. |
GET /api/bug-tracker | None | List public reports. |
GET /api/bug-tracker/{number} | Optional | Read one public report by its number. |
POST /api/bug-reports/{id}/affected | Caller | Say you have this bug too. |
POST /api/bug-reports/{id}/comments | Caller | Comment on a public report. |
"Caller" means the caller headers above are required; "Optional" means they are read when present. Request and response schemas are in /openapi.json.