curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{pid}/webhooks/{id}/activityconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/webhooks/{id}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/webhooks/{id}/activity"
response = requests.get(url)
print(response.text){
"endpoint_id": "<string>",
"summary": {
"window_hours": 24,
"received": 123,
"rejected": 123,
"last_received_at": "2023-11-07T05:31:56Z",
"last_rejected_at": "2023-11-07T05:31:56Z"
},
"rows": [
{
"kind": "received",
"id": "<string>",
"at": "2023-11-07T05:31:56Z",
"reason": "endpoint_disabled",
"status": 123,
"count": 123,
"source_ip": "<string>",
"method": "<string>",
"content_type": "<string>",
"forward_status": "<string>"
}
],
"total": 123,
"limit": 123,
"offset": 123,
"since": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}One endpoint's received and refused requests
OBS-3 (#193). Top-level alias: GET /admin/api/webhooks//activity. Any role. Newest first over the last 7 days: the endpoint’s submissions (kind received) and its rows in the rejection log (kind rejected). The rejection log records every request refused after the endpoint (or ingest key) resolved - IP allowlist, signature, monthly quota, burst rate limit, disabled endpoint, 413, 415, unparseable or empty body, loop, failed URL verification, disallowed CORS origin, suspended workspace - with its reason, status, source IP, method and content type. A request to an unknown URL or key is not logged: there is no workspace to log it against. One row per credential, reason and UTC minute, with repeats counted; pruned on the plan’s retention window and deleted with the project. Refusals never count against the event quota. summary covers the last 24 hours.
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{pid}/webhooks/{id}/activityconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/webhooks/{id}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/webhooks/{id}/activity"
response = requests.get(url)
print(response.text){
"endpoint_id": "<string>",
"summary": {
"window_hours": 24,
"received": 123,
"rejected": 123,
"last_received_at": "2023-11-07T05:31:56Z",
"last_rejected_at": "2023-11-07T05:31:56Z"
},
"rows": [
{
"kind": "received",
"id": "<string>",
"at": "2023-11-07T05:31:56Z",
"reason": "endpoint_disabled",
"status": 123,
"count": 123,
"source_ip": "<string>",
"method": "<string>",
"content_type": "<string>",
"forward_status": "<string>"
}
],
"total": 123,
"limit": 123,
"offset": 123,
"since": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>"
}Path Parameters
Project id (UUID) belonging to the caller workspace.
Webhook id.
Query Parameters
all, received, rejected 1 <= x <= 100x >= 0