nomiqon.agents
Full reference for the agents namespace: create, list, update, pause, terminate.
Runtime
nomiqon.agents.create()
POST
/v1/agents| Parameter | Type | Default | Description | |
|---|---|---|---|---|
| name | string | required | — | Human-readable agent identifier. 1–64 characters. |
| policy | Policy | required | — | Spending policy applied to this agent. |
| caid | object | optional | auto-generated | Bring-your-own keypair: { publicKey: string }. |
| metadata | object | optional | {} | Key-value string pairs, max 32 entries. |
typescriptnomiqon.com
const agent = await nomiqon.agents.create({
name: "summariser-v2",
policy: {
dailyCap: "5.00",
totalCap: "100.00",
allowlist: ["api.openai.com"],
},
metadata: { env: "production", team: "nlp" },
});nomiqon.agents.list()
GET
/v1/agentstypescriptnomiqon.com
const { data, meta } = await nomiqon.agents.list({
status: "active",
limit: 50,
after: "ag_cursor...",
metadata: { team: "nlp" },
});nomiqon.agents.get()
GET
/v1/agents/:idtypescriptnomiqon.com
const agent = await nomiqon.agents.get("ag_01jx...");nomiqon.agents.update()
PATCH
/v1/agents/:idtypescriptnomiqon.com
await nomiqon.agents.update("ag_01jx...", {
policy: { dailyCap: "20.00", frozen: false },
metadata: { version: "2.0" },
});nomiqon.agents.pause() / resume()
typescriptnomiqon.com
await nomiqon.agents.pause("ag_01jx...");
await nomiqon.agents.resume("ag_01jx...");nomiqon.agents.terminate()
DELETE
/v1/agents/:idtypescriptnomiqon.com
await nomiqon.agents.terminate("ag_01jx...");
// Remaining wallet balance is returned to the account treasury.nomiqon.agents.getSpendHeaders()
typescriptnomiqon.com
const headers = await nomiqon.agents.getSpendHeaders("ag_01jx...");
// {
// "x-nomiqon-agent-id": "ag_01jx...",
// "x-nomiqon-spend-token": "spt_eyJ...",
// }