Consume the next events for an agent trigger subscription (short-poll)
curl --request GET \
--url https://api.webhook.co/v1/triggers/{triggerId}/wait \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.webhook.co/v1/triggers/{triggerId}/wait', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webhook.co/v1/triggers/{triggerId}/wait"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.webhook.co/v1/triggers/{triggerId}/wait"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpointId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivedAt": "2023-11-07T05:31:56Z",
"provider": "stripe",
"dedupKey": "<string>",
"dedupStrategy": "sw_webhook_id",
"verified": true,
"vouched": true,
"verificationState": "verified",
"body": "<string>",
"bodyEncoding": "utf8",
"bodyTruncated": true,
"contentType": "<string>"
}
],
"nextCursor": "<string>",
"caughtUp": true
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}<string>Triggers
Consume the next events for an agent trigger subscription (short-poll)
GET
/
v1
/
triggers
/
{triggerId}
/
wait
Consume the next events for an agent trigger subscription (short-poll)
curl --request GET \
--url https://api.webhook.co/v1/triggers/{triggerId}/wait \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.webhook.co/v1/triggers/{triggerId}/wait', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webhook.co/v1/triggers/{triggerId}/wait"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.webhook.co/v1/triggers/{triggerId}/wait"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpointId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivedAt": "2023-11-07T05:31:56Z",
"provider": "stripe",
"dedupKey": "<string>",
"dedupStrategy": "sw_webhook_id",
"verified": true,
"vouched": true,
"verificationState": "verified",
"body": "<string>",
"bodyEncoding": "utf8",
"bodyTruncated": true,
"contentType": "<string>"
}
],
"nextCursor": "<string>",
"caughtUp": true
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}<string>Authorizations
A whk_-prefixed API key (opaque; not a JWT).
Path Parameters
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Query Parameters
Opaque resume cursor from a prior call's nextCursor.
Max events to return (1–200).
Required range:
x <= 200Attach the bounded inline event body to each event (default true).
Per-event inline body byte cap (server-capped at 65536).
Required range:
x <= 65536Was this page helpful?