You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/requests.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,15 +321,15 @@ Deletes all requests associated with the token, or if `query`, `date_from` and/o
321
321
322
322
### Query string parameters
323
323
324
-
*`date_from`, `date_to` - filter requests by date, format `yyyy-MM-dd HH:mm:ss`
325
-
*`query` - filter requests by a query string search. [See here for examples](#search-query-examples).
324
+
*`date_from`, `date_to` - filter requests by date (format `yyyy-MM-dd HH:mm:ss`) or [date expressions](/api/date-expressions.html).
325
+
*`query` - filter requests by a Search Query. [See here for examples](#search-query-examples).
326
326
327
327
328
328
### Full URL Example
329
329
330
-
A request to the following URL will delete all requests on a Token older than 14 days, due to the `query` parameter being `created_at:[* TO now-14d]`. You could use this in a [Webhook.site Schedule](/schedules.html) to delete old requests from a URL periodically.
330
+
A request to the following URL will delete all requests on a Token older than 7 days, due to the `date_to` parameter being `now-7d`. You could use this in a [Webhook.site Schedule](/schedules.html) to delete old requests from a URL periodically.
331
331
332
-
`https://webhook.site/token/00000000-0000-0000-0000-000000000000/request?query=created_at:[* TO now-14d]`
Copy file name to clipboardExpand all lines: docs/index.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,15 +152,16 @@ Using the Webhook.site API (specifically, the [Delete Multiple Requests endpoint
152
152
153
153
To set it up, first, [create an API Key](https://webhook.site/api-keys).
154
154
155
-
Then create a Schedule like the following screenshot.
155
+
Then [create a Schedule](https://webhook.site/control-panel/schedules/create) like the following screenshot.
156
156
157
-
In this example, Webhook.site will remove data older than 14 days every 24 hours. `now-12h` would be 12 hours. [More date format examples](/api/date-expressions.html).
157
+
In this example, Webhook.site will remove data older than 7 days every 24 hours. (`now-12h` would be 12 hours. [More date format examples](/api/date-expressions.html)).
158
158
159
-
Remember to click the URL Encode button before saving.
160
-
161
-
* URL: `https://webhook.site/token/00000000-0000-0000-000000000/request?query=created_at:[* TO now-14d]` - replace `00000000-0000-0000-000000000` with the URL/Token ID.
* Replace `00000000-0000-0000-000000000` with your API key.
164
165
165
166
<figuremarkdown="span">
166
167
{ width="300" }
@@ -169,7 +170,7 @@ Remember to click the URL Encode button before saving.
169
170
170
171
## What's a Webhook.site "Token"?
171
172
172
-
A *Token* is how a Webhook.site URL is referred to in our API, it's the technical name for it. A *Token* corresponds to a unique UUID, which is also the Web address, email address and DNSHook address. A Token acts as a container for requests, emails and DNS queries. [More about Tokens](/api/tokens.html)
173
+
A *Token* is how a Webhook.site URL is referred to in our API, it's the technical name for it. A *Token* corresponds to a unique [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier), which is also the Web address, email address and DNSHook address. A Token acts as a container for requests, emails and DNS queries. [More about Tokens](/api/tokens.html)
173
174
174
175
## How do I transfer my Webhook.site account and data?
0 commit comments