# Create a webhook (QuantSet API)

> Create a subscription and save its signing secret. Before retrying a timed-out create, list your subscriptions to check its result.

> ## 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` · `create_webhook`

Send a key in the `X-API-Key` header.
Returns JSON.
Price: Free. It uses no credits.

## Workflow examples

### How do I register a receiver for a filing event?

```http
POST https://api.quantset.dev/api/v1/webhooks
Content-Type: application/json

{
  "url": "https://example.com/webhooks",
  "events": [
    "filing.created"
  ]
}
```

Replace the example HTTPS URL with the receiver you control. Save id and secret from the creation receipt before listing or testing the subscription.

## Reading the results

Registration creates account state. The secret is used to verify the HMAC on incoming bytes, while the subscription id is used to manage the receiver.


## Coverage and limits

Only accepted event names can be subscribed to. Creating the subscription does not prove delivery or establish that an automatic event producer is active.


## Related guides

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

## Parameters


## Response fields

- `id` (string)
- `url` (string): A link to the original document.
- `events` (array)
- `description` (string)
- `created_at` (string)
- `secret` (string)

## Example

```
curl -X POST 'https://api.quantset.dev/api/v1/webhooks' -H 'X-API-Key: YOUR_API_KEY' -H 'Content-Type: application/json' --data '{"url":"https://example.com/webhooks","events":["filing.created"]}'
```

## Responses

- 201 Successful Response
- 400 Supply one credential.
- 401 Supply a valid API key.
- 403 Your key does not have the required access.
- 413 Reduce the size of the request body.
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.
- 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-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
