List recent webhook deliveries
const url = 'https://api.nsin.ir/uptime/webhook/deliveries?domain=example.com';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.nsin.ir/uptime/webhook/deliveries?domain=example.com' \ --header 'Authorization: Bearer <token>'The domain’s last 50 webhook deliveries, newest first — incident events
and tests alike — with the HTTP status your endpoint answered, how many
attempts it took, how long it took and the error, if any. Older
deliveries are pruned. Requires domain.settings.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The domain name (for example example.com). These endpoints take the
domain as a query parameter rather than a path segment.
Example
example.comResponses
Section titled “ Responses ”Recent deliveries.
object
object
0 for a test delivery.
The event delivered.
Where it was sent.
Whether any attempt got a 2xx.
Status of the last attempt; 0 when there was no response.
Attempts made (up to 3).
Total time spent delivering, in milliseconds.
Why it failed, when it did.
Example
{ "deliveries": [ { "event": "outage.opened" } ]}The domain query parameter is missing.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "domain is required"}Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}The key is read-only, your role on the domain lacks the required permission, or the domain’s plan does not include the feature.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}