Triggers
5 operations. {prefix} is the route prefix passed to
MapAgentPrism; the template uses /agentprism.
GET {prefix}/api/triggers
Section titled “GET {prefix}/api/triggers”Operation ID: AgentPrismListInboundTriggers
Lists a tenant’s inbound triggers.
The response carries no signing secret value, only the configuration key’s NAME and whether it currently resolves (‘resolved’) — the diagnosis path for ‘I set the secret but signatures still fail’.
Authorization: bearer authentication; Admin role policy when that policy is registered; PlatformRead API-key scope.
| Response | Body | Headers |
|---|---|---|
| 200 OK | application/json → array of InboundTriggerResponse |
— |
GET {prefix}/api/triggers/{name}
Section titled “GET {prefix}/api/triggers/{name}”Operation ID: AgentPrismGetInboundTrigger
Gets a single inbound trigger.
An unknown name returns 404.
Authorization: bearer authentication; Admin role policy when that policy is registered; PlatformRead API-key scope.
| Parameter | In | Required | Type | Description and rules |
|---|---|---|---|---|
name |
path | yes | string |
— |
| Response | Body | Headers |
|---|---|---|
| 200 OK | application/json → InboundTriggerResponse |
— |
PUT {prefix}/api/triggers/{name}
Section titled “PUT {prefix}/api/triggers/{name}”Operation ID: AgentPrismSaveInboundTrigger
Creates or updates an inbound trigger.
‘signingSecretConfigurationName’ carries only the configuration key’s NAME, never its value; the name must be under the configured allowed prefix (400 otherwise). ‘payloadPath’ is required when ‘payloadMode’ is ‘path’.
Authorization: bearer authentication; Admin role policy when that policy is registered; PlatformAdmin API-key scope.
| Parameter | In | Required | Type | Description and rules |
|---|---|---|---|---|
name |
path | yes | string |
— |
Request body (required):
application/json→InboundTriggerSaveRequest
| Response | Body | Headers |
|---|---|---|
| 200 OK | application/json → InboundTriggerResponse |
— |
DELETE {prefix}/api/triggers/{name}
Section titled “DELETE {prefix}/api/triggers/{name}”Operation ID: AgentPrismDeleteInboundTrigger
Deletes an inbound trigger.
After deletion, the accept endpoint returns 404 for this name. An unknown name returns 404.
Authorization: bearer authentication; Admin role policy when that policy is registered; PlatformAdmin API-key scope.
| Parameter | In | Required | Type | Description and rules |
|---|---|---|---|---|
name |
path | yes | string |
— |
| Response | Body | Headers |
|---|---|---|
| 204 No Content | — | — |
POST {prefix}/api/triggers/{tenantId}/{name}
Section titled “POST {prefix}/api/triggers/{tenantId}/{name}”Operation ID: AgentPrismAcceptInboundTrigger
Accepts a signed external event and queues a run.
No bearer token: the caller authenticates with an HMAC signature over the raw body (‘X-AgentPrism-Timestamp’ + ‘X-AgentPrism-Signature’, the same headers outbound webhooks send, in the reverse direction). The event is ALWAYS queued and this ALWAYS returns 202 — there is no synchronous mode; a long model call would otherwise fail the caller’s own webhook timeout. A missing or wrong signature, an unknown trigger, and a disabled trigger all return the SAME generic response so a caller cannot enumerate trigger names.
Authorization: anonymous.
| Parameter | In | Required | Type | Description and rules |
|---|---|---|---|---|
tenantId |
path | yes | string |
— |
name |
path | yes | string |
— |
| Response | Body | Headers |
|---|---|---|
| 202 Accepted | application/json → InboundTriggerAcceptedResponse |
— |
| 400 Bad Request | application/problem+json → ProblemDetails |
— |
| 401 Unauthorized | application/problem+json → ProblemDetails |
— |
| 409 Conflict | application/problem+json → ProblemDetails |
— |
| 413 Payload Too Large | application/problem+json → ProblemDetails |
— |
| 429 Too Many Requests | application/problem+json → ProblemDetails |
— |