Triggers
Fire a trigger now
Queues one firing now (allowed while paused), with an optional payload rendered into the prompt like a webhook body. 409 trigger_busy while a firing is still pending or running.
POST
/
v1
/
triggers
/
{trigger_id}
/
run
Fire a trigger now
curl --request POST \
--url https://api.veri.studio/v1/triggers/{trigger_id}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payload": "<unknown>"
}
'import requests
url = "https://api.veri.studio/v1/triggers/{trigger_id}/run"
payload = { "payload": "<unknown>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({payload: '<unknown>'})
};
fetch('https://api.veri.studio/v1/triggers/{trigger_id}/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"trigger_id": "<string>",
"kind": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"delivery_id": "<string>",
"session_id": "<string>",
"failure_reason": "<string>",
"payload_excerpt": "<string>",
"result_excerpt": "<string>",
"output_error": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Trigger ID
Body
application/json
Rendered into the prompt like a webhook body.
Response
The queued execution
What fired it: cron | webhook | manual
pending | running | succeeded | failed | cancelled
The provider's delivery id (webhook-id, X-GitHub-Delivery, X-Gitlab-Event-UUID); a second delivery with the same id is ignored.
The first 4 KiB of the webhook body.
The first 2 KiB of the run's last agent message.
Set when the Slack output (or the session teardown) failed.
Fire a trigger now
curl --request POST \
--url https://api.veri.studio/v1/triggers/{trigger_id}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payload": "<unknown>"
}
'import requests
url = "https://api.veri.studio/v1/triggers/{trigger_id}/run"
payload = { "payload": "<unknown>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({payload: '<unknown>'})
};
fetch('https://api.veri.studio/v1/triggers/{trigger_id}/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"trigger_id": "<string>",
"kind": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"delivery_id": "<string>",
"session_id": "<string>",
"failure_reason": "<string>",
"payload_excerpt": "<string>",
"result_excerpt": "<string>",
"output_error": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}
