Enqueue a webhook test event with POST /api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}/test. Requires a signed-in workspace owner, in the web app or the CLI; API keys are not accepted and MCP cannot call it.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
workspaceId |
path | UUID | Yes |
endpointId |
path | UUID | Yes |
Response
- HTTP 202: an object with
deliveryId.
The OpenAPI document has each field’s type.
Examples
const accepted = await workspace.webhooks.test(endpointId);Create this client with a signed-in person’s accessToken, not an apiKey.
The Python SDK authenticates with a workspace API key, which this operation does not accept, so it has no method for it.
curl -X POST "https://pubnio.com/api/v1/workspaces/$WORKSPACE_ID/webhook-endpoints/$ENDPOINT_ID/test" \
-H "Authorization: Bearer $PUBNIO_TOKEN"pnio webhooks test "$ENDPOINT_ID"async () => {
const endpointId = "<endpointId>";
const response = await codemode.request({
method: "POST",
path: `/api/v1/workspaces/${codemode.workspaceId}/webhook-endpoints/${endpointId}/test`,
});
return response.data;
};Errors
webhook-test-rate-limited: HTTP 429, Webhook test rate limited
It also declares the problems most operations declare.
Idempotency
No key, so a retried POST is not deduplicated. Read the current state before you retry.
Rate limits
One test event per endpoint per minute. A second test inside that minute returns webhook-test-rate-limited (HTTP 429); wait the Retry-After header’s seconds.
Limits
- API keys and MCP cannot call it. A signed-in person runs it from the CLI after
pnio auth loginor in the web app.