curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/webhooks/{id}/test' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"endpoint_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"note": "Two-person tent, green — replacement for damaged pole set.",
"status": "pending"
}
Test webhook handler
Required scope: write
POST
/
api
/
v1
/
webhooks
/
{id}
/
test
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/webhooks/{id}/test' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"endpoint_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"note": "Two-person tent, green — replacement for damaged pole set.",
"status": "pending"
}
Required scope:
write
Path parameters
string
required
Webhook endpoint id
Response
TestResponse
string
required
string
required
string
required
Status codes
| Code | Meaning |
|---|---|
202 | Test event dispatched (fire-and-forget) |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
404 | Not found |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/webhooks/{id}/test' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"endpoint_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"note": "Two-person tent, green — replacement for damaged pole set.",
"status": "pending"
}
Last modified on August 31, 2026