Triggers
Pause a trigger
Stops cron firings and refuses webhook deliveries (409 trigger_paused) until resumed. A firing already in flight finishes. Missed firings are not replayed.
POST
/
v1
/
triggers
/
{trigger_id}
/
pause
Pause a trigger
curl --request POST \
--url https://api.veri.studio/v1/triggers/{trigger_id}/pause \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/triggers/{trigger_id}/pause"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/triggers/{trigger_id}/pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"environment_id": "<string>",
"kind": "<string>",
"session_mode": "<string>",
"prompt": "<string>",
"budget_usd": 123,
"output": {
"kind": "<string>",
"target": "<string>"
},
"status": "<string>",
"consecutive_failures": 123,
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"provider": "<string>",
"cron": "<string>",
"timezone": "<string>",
"reuse_session_id": "<string>",
"paused_reason": "<string>",
"next_fire_at": "2023-11-07T05:31:56Z",
"webhook_url": "<string>",
"secret": "<string>",
"previous_secret_expires_at": "2023-11-07T05:31:56Z",
"last_execution": {
"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
Response
The paused trigger
cron | webhook
fresh | reuse
Slack URLs are masked.
Show child attributes
Show child attributes
active | paused
webhook: github | gitlab | custom
Why the trigger is paused, when it was not paused by hand (five consecutive failures, a deleted environment, ...).
cron: when it fires next (absent while paused).
webhook: the URL to give the provider.
webhook: the signing secret. Returned ONLY by create and rotate-secret; store it then.
webhook: until when the previous secret still verifies (rotation grace).
Show child attributes
Show child attributes
Pause a trigger
curl --request POST \
--url https://api.veri.studio/v1/triggers/{trigger_id}/pause \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/triggers/{trigger_id}/pause"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/triggers/{trigger_id}/pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"environment_id": "<string>",
"kind": "<string>",
"session_mode": "<string>",
"prompt": "<string>",
"budget_usd": 123,
"output": {
"kind": "<string>",
"target": "<string>"
},
"status": "<string>",
"consecutive_failures": 123,
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"provider": "<string>",
"cron": "<string>",
"timezone": "<string>",
"reuse_session_id": "<string>",
"paused_reason": "<string>",
"next_fire_at": "2023-11-07T05:31:56Z",
"webhook_url": "<string>",
"secret": "<string>",
"previous_secret_expires_at": "2023-11-07T05:31:56Z",
"last_execution": {
"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"
}
}
