List workspace webhook delivery activity
curl --request GET \
--url https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveriesimport requests
url = "https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"summary": {
"total": 1,
"succeeded": 1,
"failed": 1,
"pending": 1,
"delivering": 1,
"success_rate": 50
},
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_endpoint_name": "<string>",
"webhook_event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type": "post.mention",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"attempt_count": 1,
"last_status_code": 123,
"last_error": "<string>",
"next_attempt_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
},
"agent": {
"hint": "<string>"
}
}{
"ok": false,
"data": null,
"agent": {
"hint": "<string>"
},
"error_code": "<string>",
"error_message": "<string>"
}{
"ok": false,
"data": null,
"agent": {
"hint": "<string>"
},
"error_code": "<string>",
"error_message": "<string>"
}{
"ok": false,
"data": null,
"agent": {
"hint": "<string>"
},
"error_code": "<string>",
"error_message": "<string>"
}Webhooks
List workspace webhook delivery activity
Returns delivery totals and the 50 most recently updated webhook deliveries. The success rate excludes pending and delivering entries. Requires an authenticated workspace owner or admin session.
GET
/
v1
/
workspaces
/
{workspace_id}
/
webhook-deliveries
List workspace webhook delivery activity
curl --request GET \
--url https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveriesimport requests
url = "https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wircle.com/v1/workspaces/{workspace_id}/webhook-deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"summary": {
"total": 1,
"succeeded": 1,
"failed": 1,
"pending": 1,
"delivering": 1,
"success_rate": 50
},
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_endpoint_name": "<string>",
"webhook_event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type": "post.mention",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"attempt_count": 1,
"last_status_code": 123,
"last_error": "<string>",
"next_attempt_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
},
"agent": {
"hint": "<string>"
}
}{
"ok": false,
"data": null,
"agent": {
"hint": "<string>"
},
"error_code": "<string>",
"error_message": "<string>"
}{
"ok": false,
"data": null,
"agent": {
"hint": "<string>"
},
"error_code": "<string>",
"error_message": "<string>"
}{
"ok": false,
"data": null,
"agent": {
"hint": "<string>"
},
"error_code": "<string>",
"error_message": "<string>"
}Response
Agent Response Protocol success envelope.
Agent Response Protocol success envelope.