# about rest api event

**URL:** https://forum.syncthing.net/t/about-rest-api-event/17828
**Category:** Support
**Created:** [January 7, 2022, 6:48am UTC](https://forum.syncthing.net/t/about-rest-api-event/17828 "2022-01-07T06:48:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Joseph](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Joseph](https://forum.syncthing.net/u/Joseph)
#### Post date: [January 7, 2022, 6:48am UTC](https://forum.syncthing.net/t/about-rest-api-event/17828/1 "2022-01-07T06:48:39Z")

</div>

I am testing syncthing event rest api using by curl via cmd.

I added a big file at shard foloder of the other pc that connected. after that I sent a GET request like below…

**curl -X GET -H “X-API-Key:somekey” [http://localhost:8384/rest/events?events="DownloadProgress"](http://localhost:8384/rest/events?events=%22DownloadProgress%22)**

a few later, I receive event result, it wast id 1.

after that I sent GET request again, the event id 1 is still returned.

Is there any way to remove received event per id?

thank you

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [January 7, 2022, 8:38am UTC](https://forum.syncthing.net/t/about-rest-api-event/17828/2 "2022-01-07T08:38:39Z")

</div>

[https://docs.syncthing.net/rest/events-get.html#events-get](https://docs.syncthing.net/rest/events-get.html#events-get)

Specify the `since` parameter.

---

<div class="post-metadata">

### Author: ![Joseph](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Joseph](https://forum.syncthing.net/u/Joseph)
#### Post date: [January 10, 2022, 12:37am UTC](https://forum.syncthing.net/t/about-rest-api-event/17828/3 "2022-01-10T00:37:44Z")

</div>

Ok, Thanks, I understood **id** of event and **since** parameter.

then, is **id** parameter int? or string?

If type of it is int, what happen exceed range of int or unsigned int?

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [January 10, 2022, 1:11am UTC](https://forum.syncthing.net/t/about-rest-api-event/17828/4 "2022-01-10T01:11:05Z")

</div>

It’s an int. It would take 68 years of producing an event every second for that to happen.

I’d hope that you restart syncthing/computer by that point.

This number goes back to zero after every restart.

---

<div class="post-metadata">

### Author: ![Joseph](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Joseph](https://forum.syncthing.net/u/Joseph)
#### Post date: [January 10, 2022, 1:19am UTC](https://forum.syncthing.net/t/about-rest-api-event/17828/5 "2022-01-10T01:19:26Z")

</div>

Ok I understood that. Thank you so much 🙂

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [February 9, 2022, 1:20am UTC](https://forum.syncthing.net/t/about-rest-api-event/17828/6 "2022-02-09T01:20:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
