# Events

The event log: list past events and redeliver one.

Paths start at `$ACTIVQC_BASE_URL`, and every call sends `Authorization: Bearer $ACTIVQC_KEY`. Errors use the [error envelope](https://activqc.wavbee.com/docs/errors.md). [All endpoints](https://activqc.wavbee.com/docs/api-reference.md).

## GET /v1/events

List events and their delivery state.

**Auth:** a secret key, `Authorization: Bearer $ACTIVQC_KEY`.

#### Parameters

| Name | In | Type | Description |
|---|---|---|---|
| `type` | query | string |  |
| `status` | query | string |  |
| `limit` | query | string |  |

#### Example request

```bash
curl -s "$ACTIVQC_BASE_URL/v1/events" \
  -H "Authorization: Bearer $ACTIVQC_KEY"
```

#### Responses

| Status | Meaning |
|---|---|
| `200` | Event log. |

## POST /v1/events/{id}/redeliver

Re-queue an event with its original signed payload.

**Auth:** a secret key, `Authorization: Bearer $ACTIVQC_KEY`.

#### Parameters

| Name | In | Type | Description |
|---|---|---|---|
| `id` | path | string | **Required.** |

#### Example request

```bash
curl -s -X POST "$ACTIVQC_BASE_URL/v1/events/{id}/redeliver" \
  -H "Authorization: Bearer $ACTIVQC_KEY"
```

#### Responses

| Status | Meaning |
|---|---|
| `202` | Re-queued. |
| `422` | No enabled endpoint is subscribed, so there is nothing to redeliver. [Error envelope](https://activqc.wavbee.com/docs/errors.md). |

