# Quickstart (/quickstart)

## Get an API key [#get-an-api-key]

Create a key in the dashboard under **Settings → API keys**. Keys look like
`sk_prod_…`, where `prod` is the environment's slug.

## Publish an event [#publish-an-event]

<CodeTabs>
```shell
curl -X POST https://api.usewebhooks.dev/v1/publish \
  -H "X-API-Key: sk_prod_…" \
  -d '{"eventType":"hello.world","payload":{"hi":1}}'
```

```ts
const res = await fetch("https://api.usewebhooks.dev/v1/publish", {
  method: "POST",
  headers: { "X-API-Key": process.env.USE_WEBHOOKS_KEY! },
  body: JSON.stringify({ eventType: "hello.world", payload: { hi: 1 } }),
});
```
</CodeTabs>

The API answers `202 Accepted` as soon as the event is stored:

```json
{ "id": "evt_01J…", "duplicate": false }
```

## Watch it arrive [#watch-it-arrive]

Open **Events** in the dashboard to see the event and each delivery attempt.