nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Uptime

List recent webhook deliveries

gethttps://api.nsin.ir/uptime/webhook/deliveries

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

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.

Query parameters

  • domainstringrequiredquery

    The domain name (for example example.com). These endpoints take the domain as a query parameter rather than a path segment.

Responses

200Recent deliveries.

Content type: application/json

  • deliveriesarray of UptimeWebhookDelivery
    Item fields
    • idinteger
    • incident_idinteger

      0 for a test delivery.

    • eventstring

      The event delivered.

      One of: "outage.opened" "outage.resolved" "test"
    • urlstring

      Where it was sent.

    • okboolean

      Whether any attempt got a 2xx.

    • status_codeinteger

      Status of the last attempt; 0 when there was no response.

    • attemptsinteger

      Attempts made (up to 3).

    • duration_msinteger

      Total time spent delivering, in milliseconds.

    • errorstring

      Why it failed, when it did.

    • created_atstring (date-time)
json
{
  "deliveries": [
    {
      "id": 0,
      "incident_id": 0,
      "event": "outage.opened",
      "url": "string",
      "ok": true,
      "status_code": 0,
      "attempts": 0,
      "duration_ms": 0,
      "error": "string",
      "created_at": "2026-01-01T00:00:00Z"
    }
  ]
}
400The domain query parameter is missing.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "domain is required"
}
401Missing, malformed, revoked or expired API key. (A valid key whose account has been deactivated gets 403 account is inactive instead.)

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "invalid API key"
}
403The key is read-only, your role on the domain lacks the required permission, or the domain's plan does not include the feature.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
429The key exceeded its request budget (300 requests per minute by default).

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "rate limit exceeded"
}

Example request

bash
curl -X GET "https://api.nsin.ir/uptime/webhook/deliveries?domain=example.com" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc