triggerHooks.fireTrigger
POST
/v1/hooks/triggers/{triggerId}
Starts a new Session with the prompt of the trigger. Send Authorization: Bearer <webhook secret>. The JSON body goes to the Bot as data, not as instructions. The Session works for the actor of the trigger.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”triggerId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Example generated
exampleResponses
Section titled “Responses”Success
Media typeapplication/json
object
session
required
string
Example generated
{ "session": "example"}TriggerHookDenied
Media typeapplication/json
object
_tag
required
string
Example
{ "_tag": "TriggerHookDenied"}TriggerStorageUnavailable
Media typeapplication/json
object
_tag
required
string
Example
{ "_tag": "TriggerStorageUnavailable"}