List webhook calls
The call log: every event Notix sent, or tried to send, to your webhooks, newest first.
https://app.usenotix.dev/api/v1/webhooks/callsFull access and read only keys can call this. Sending access keys cannot. Key permissions lists the extra rules some calls have.
The call log: every event Notix sent, or tried to send, to your webhooks, newest first. Filter by webhookId and status (PENDING, IN_PROGRESS, DELIVERED, FAILED, DISCARDED). Up to 50 per page (20 by default); pass nextCursor back as cursor for the next page. Calls are kept for 30 days.
Query parameters
Only calls to this webhook.
One of PENDING, IN_PROGRESS, DELIVERED, FAILED, DISCARDED.
Calls per page, 1 to 50. Defaults to 20.
Minimum 1. Maximum 50. Default 20.
The nextCursor of the previous page.
Headers
Bearer followed by your API key.
Errors
The cursor is not a call of this team, or a filter is not valid.
`SCOPE_DENIED`: a send-only key or a live AI key. `DOMAIN_PINNED`: the key is limited to one domain, and webhooks carry every domain's events.
Every error has the same shape. See all error codes.
curl -X GET "https://app.usenotix.dev/api/v1/webhooks/calls" \
-H "Authorization: Bearer $NOTIX_API_KEY"
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY);
const { data, error } = await notix.webhookEndpoints.listCalls({ webhookId: "wh_123", status: "FAILED", limit: 20 });
const next = data?.nextCursor; // pass back as cursor for the next page
{
"data": [
{
"id": "cm1x8f3k20001qz7v5b9d2e4a",
"webhookId": "cm1x8f3k20001qz7v5b9d2e4a",
"type": "string",
"status": "PENDING",
"attempt": 1,
"nextAttemptAt": "string",
"lastError": "string",
"responseStatus": 1,
"responseTimeMs": 1,
"createdAt": "string",
"updatedAt": "string"
}
],
"nextCursor": "string"
}