Skip to content

Commit c86fab9

Browse files
committed
updated docs
1 parent 9d24d4f commit c86fab9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

apps/docs/content/docs/en/blocks/webhook.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,36 +39,36 @@ JSON data to send in the request body. Use the AI wand to generate payloads or r
3939

4040
### Signing Secret
4141

42-
Optional secret for HMAC-SHA256 payload signing. When provided, the block adds an `X-Webhook-Signature` header:
42+
Optional secret for HMAC-SHA256 payload signing. When provided, adds an `X-Webhook-Signature` header:
4343

4444
```
45-
X-Webhook-Signature: t=1234567890,v1=abc123...
45+
X-Webhook-Signature: t=1704067200000,v1=5d41402abc4b2a76b9719d911017c592...
4646
```
4747

48-
Verify signatures by computing `HMAC-SHA256(secret, "${timestamp}.${body}")`.
48+
To verify signatures, compute `HMAC-SHA256(secret, "${timestamp}.${body}")` and compare with the `v1` value.
4949

5050
### Additional Headers
5151

52-
Custom headers to include with the request. User-provided headers override automatic webhook headers.
52+
Custom key-value headers to include with the request. These override any automatic headers with the same name.
5353

5454
## Automatic Headers
5555

56-
Every request includes:
56+
Every request includes these headers automatically:
5757

5858
| Header | Description |
5959
|--------|-------------|
6060
| `Content-Type` | `application/json` |
61-
| `X-Webhook-Timestamp` | Unix timestamp (milliseconds) |
62-
| `X-Delivery-ID` | Unique delivery identifier (UUID) |
63-
| `Idempotency-Key` | Same as delivery ID for deduplication |
61+
| `X-Webhook-Timestamp` | Unix timestamp in milliseconds |
62+
| `X-Delivery-ID` | Unique UUID for this delivery |
63+
| `Idempotency-Key` | Same as `X-Delivery-ID` for deduplication |
6464

6565
## Outputs
6666

6767
| Output | Type | Description |
6868
|--------|------|-------------|
6969
| `data` | json | Response body from the endpoint |
7070
| `status` | number | HTTP status code |
71-
| `headers` | json | Response headers |
71+
| `headers` | object | Response headers |
7272

7373
## Example Use Cases
7474

0 commit comments

Comments
 (0)