# Test a webhook (QuantSet API)

> Attempt a delivery to an existing webhook. Check delivery state after a timeout before sending another test.

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

`POST https://api.quantset.dev/api/v1/webhooks/{webhook_id}/test` · `test_webhook`

Send a key in the `X-API-Key` header.
Returns JSON.
Price: 1 credit for each successful request.

## Workflow examples

### Can my registered receiver accept and verify a signed request?

```http
POST https://api.quantset.dev/api/v1/webhooks/YOUR_WEBHOOK_ID/test
```

Replace YOUR_WEBHOOK_ID with the id from creation. Read delivered and status_code in the receipt and look up event_id at your receiver.

## Reading the results

A 2xx receiver response confirms acceptance of this test. Verify the signature against the raw body and distinguish livemode=false from an actual filing event.


## Coverage and limits

Each test sends a request to the destination. Inspect receiver logs before repeating one after a timeout; a test receipt does not establish continuous delivery.


## Related guides

- [Set up and test a webhook receiver](https://quantset.dev/docs/integrations/webhooks)

## Parameters

- `webhook_id` (string, required, in path)
- `X-Max-Credits` (integer, 0 to 999,999,999,999, optional, in header): Refuse the request if its maximum charge exceeds this ceiling.
- `X-Workflow-Id` (string, optional, in header): Optional printable identifier for grouping charges in a research workflow.

## Response fields

- `webhook_id` (string)
- `event_id` (string)
- `status_code` (integer)
- `delivered` (boolean)

## Example

```
curl -X POST 'https://api.quantset.dev/api/v1/webhooks/YOUR_WEBHOOK_ID/test' -H 'X-API-Key: YOUR_API_KEY'
```

## Responses

- 200 Successful Response
- 400 Supply one credential.
- 401 Supply a valid API key.
- 402 Reduce the request ceiling or refill your credits.
- 403 Your key does not have the required access.
- 404 The webhook is absent from this account.
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.
- 502 The destination could not be reached.
- 503 Retry safe reads after a short delay.

## Questions

**Which access is required?** Use an account key entitled to webhooks.

**Can an AI agent use this?** Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.

**What does null mean in the response?** The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.

Group: Account and integration
Docs page: https://quantset.dev/docs/api/webhooks-test-post
Integrations & Ecosystem: https://quantset.dev/integrations (Claude/Cursor MCP, LangGraph, PydanticAI, CrewAI, Agno, Vercel AI SDK, Mastra, Sheets =QUANTSET(), Excel, Notion & x402)
Full API guide: https://api.quantset.dev/llms-full.txt
