API reference · Agents
A signed delivery that starts an agent's run
POST/api/agents/hooks/{trigger}No key
No session and no key: the body is signed with the trigger's secret in x-antimatter-signature (t=<unix seconds>,v1=<hex HMAC-SHA256 of t.body>), judged before the body is read whole; a signature already taken is refused. The run is billed to the agent. A 404 while hosted runs or triggers (ANTIMATTER_AGENT_TRIGGERS) are off on the deployment.
Parameters
| Field | Type | What it is |
|---|---|---|
| trigger (path)required | string | The trigger's id. |
Request body
application/json, optional
The document names no fields for this body.
Example
{}Answer 202
The run started.
The answer's fields are not named in the document.
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 402OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI shaped error.
- 413OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.
Request headers it reads (1)
| Field | Type | What it is |
|---|---|---|
| x-antimatter-signaturerequired | string | t=<unix seconds>,v1=<hex HMAC-SHA256 of t.body> |