Skip to content

Commit 77eb5cf

Browse files
committed
add epoch notice
1 parent 2ea6c91 commit 77eb5cf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

content/2.api-v2/4.webhooks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ FreeStuff signs every webhook request as per [Standard Webhooks Spec](https://gi
3939
- Make sure to take the raw http body (prior to parsing the JSON content) for the verification `payload`
4040
- Make sure to store the `msg_id` for a certain amount of time to prevent package duplication and replay attacks
4141
- Make sure to ignore requests with an old `Webhook-Timestamp` value
42+
- The timestamp is stored as seconds since `2025-01-01`
43+
- To calculate the current time multiply by `1000`, then add `1735689600000`
4244
- Make sure to use the payload body `timestamp` field as the contextual timestamp and use the header only for verification
4345

4446
::alert{type="info"}

0 commit comments

Comments
 (0)