Skip to content

Triggers

5 operations. {prefix} is the route prefix passed to MapAgentPrism; the template uses /agentprism.

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

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/jsonInboundTriggerResponse

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):

Response Body Headers
200 OK application/jsonInboundTriggerResponse

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/jsonInboundTriggerAcceptedResponse
400 Bad Request application/problem+jsonProblemDetails
401 Unauthorized application/problem+jsonProblemDetails
409 Conflict application/problem+jsonProblemDetails
413 Payload Too Large application/problem+jsonProblemDetails
429 Too Many Requests application/problem+jsonProblemDetails