Skip to main content

GET /api/chain/{slug}/events

Read-only feed over contract_events for one slug.

Filterable by event name + a since_zeqond watermark + a limit. Auth-gated by canRead so only the machine's members can tail. Emit is the only writer (M).

MethodGET
Path/api/chain/{slug}/events
Feature areaChain & state
TagChain & State
Authmachine key — Authorization: Bearer $ZEQ_KEY
Tierauthenticated (machine-control)

Parameters

Path parameters

NameTypeRequiredDescription
slugstringyes

Query parameters

NameTypeRequiredDescription
eventstringno
limitstringno
since_zeqondstringno

No header parameters are published for this operation.

Request body

This operation takes no request body.

Responses

StatusMeaning
200OK
401Missing or invalid credentials
403Forbidden — authenticated, but not permitted for this resource
404Not found
500Server error

401 body

FieldTypeRequiredDescription
okboolean — one of falseyes
errorstringnoHuman-readable message.
codestringnoStable machine-readable code, e.g. ADMIN_REQUIRED, INVALID_ZID, ZID_NOT_LINKED.

403 body

FieldTypeRequiredDescription
okboolean — one of falseyes
errorstringnoHuman-readable message.
codestringnoStable machine-readable code, e.g. ADMIN_REQUIRED, INVALID_ZID, ZID_NOT_LINKED.

404 body

FieldTypeRequiredDescription
okboolean — one of falseyes
errorstringnoHuman-readable message.
codestringnoStable machine-readable code, e.g. ADMIN_REQUIRED, INVALID_ZID, ZID_NOT_LINKED.

500 body

FieldTypeRequiredDescription
okboolean — one of falseyes
errorstringnoHuman-readable message.
codestringnoStable machine-readable code, e.g. ADMIN_REQUIRED, INVALID_ZID, ZID_NOT_LINKED.

Call it

curl -sS -X GET https://zeq.me/api/chain/your-machine/events?event=example&limit=example \
-H "Authorization: Bearer $ZEQ_KEY"

Needs a machine key. Mint one: curl -sS -X POST https://zeq.me/api/demo-key/mint, then spin up your machine.


Generated from the live OpenAPI description (https://zeq.me/openapi.json, spec version 1.287.0) by scripts/generate-reference.mjs. Do not edit — this file is rewritten on every run.