# Reveal a webhook secret

```http
POST https://trydimmi.com/api/v1/webhook-endpoints/{endpoint}/secret-reveals
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `webhooks:write`.

## Path parameters

- `endpoint` (string, required): Id of the webhook endpoint, starting with whk_, such as whk_01jx2m8k4t. Find it with GET /webhook-endpoints.

## Response 200 (OK)

- `data` (object, required)
  - `endpoint_id` (string, required): Id of the webhook endpoint the secret belongs to, such as whk_....
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `previous_expires_at` (string | null, required): When the previous secret stops signing deliveries. Null when no rotation is under way.
  - `previous_secret` (string | null, required): The secret used before the last rotation, still valid while the rotation overlaps. Null when there is none.
  - `secret` (string, required): The endpoint's current signing secret, used to check that a delivery came from dimmi. Keep it private.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request POST \
  --url 'https://trydimmi.com/api/v1/webhook-endpoints/{endpoint}/secret-reveals' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "endpoint_id": "<string>",
    "object": "<string>",
    "previous_expires_at": "2026-11-01T09:30:00Z",
    "previous_secret": "<string>",
    "secret": "<string>"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
