Send a test event to the uptime webhook
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
POSTs one test event to the saved URL — a single attempt, no retries —
and returns what happened. Works while the webhook is switched off.
Limited to one test every 10 seconds per domain. 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
200The delivery. ok is false when the endpoint did not answer 2xx.
Content type: application/json
- idinteger
- incident_idinteger
0for 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;
0when 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)
{
"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, or no webhook URL is saved.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}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.
{
"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.
{
"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.
{
"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.
{
"error": "rate limit exceeded"
}Example request
curl -X POST "https://api.nsin.ir/uptime/webhook/test?domain=example.com" \
-H "Authorization: Bearer $NSIN_API_KEY"