# Determining Nylas-created calendar events

**URL:** <https://forums.nylas.com/t/determining-nylas-created-calendar-events/490>\
**Category:** Question and Answers\
**Tags:** calendar-api, events, scheduler\
**Created:** [October 9, 2024, 12:30am UTC](https://forums.nylas.com/t/determining-nylas-created-calendar-events/490 "2024-10-09T00:30:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexis.geoffrey](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@alexis.geoffrey](https://forums.nylas.com/u/alexis.geoffrey)\
**Post date:** [October 9, 2024, 12:30am UTC](https://forums.nylas.com/t/determining-nylas-created-calendar-events/490/1 "2024-10-09T00:30:15Z")

</div>

I am wanting to get a list of calendar events from the API that were created by the Nylas scheduler specifically. Is there a quick way to filter or check for events created by Nylas? I was planning on setting a metadata field to determine this but I was wondering if there was a better way than that.

Thank you!

---

<div class="post-metadata">

**Author:** ![sboynton](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@sboynton](https://forums.nylas.com/u/sboynton)\
**Post date:** [October 9, 2024, 1:55pm UTC](https://forums.nylas.com/t/determining-nylas-created-calendar-events/490/2 "2024-10-09T13:55:36Z")

</div>

I know that on the `event.created` webhook response you have a `source => scheduler`. Maybe this could be beneficial for you

---

<div class="post-metadata">

**Author:** ![spang](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/spang/32/218_2.png) [@spang](https://forums.nylas.com/u/spang)\
**Post date:** [October 9, 2024, 5:50pm UTC](https://forums.nylas.com/t/determining-nylas-created-calendar-events/490/3 "2024-10-09T17:50:59Z")

</div>

Great question! Our scheduler supports this out of the box.

Any event created with the scheduler will have the filterable metadata `key5` set to the ID of the scheduling configuration used to create it, and `source: scheduler` set. You can filter on `GET /events` using `metadata_pair=key5:<config_id>` to find just the events created by a specific scheduling page.

If you have more than one active scheduler config, you’ll need to make separate queries to fetch the events for each one.

I’ve attached a screenshot of an example event with this metadata in the response in case that’s helpful.

 ![image (1)](https://us1.discourse-cdn.com/flex015/uploads/nylas3/original/1X/97ecee98708c56ed95e644fdf12610a760a5cb4d.png)

docs for filtering on events: [Searching with Nylas | Nylas Docs](https://developer.nylas.com/docs/dev-guide/search/#search-for-events)

---

<div class="post-metadata">

**Author:** ![alexis.geoffrey](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@alexis.geoffrey](https://forums.nylas.com/u/alexis.geoffrey)\
**Post date:** [October 10, 2024, 2:28am UTC](https://forums.nylas.com/t/determining-nylas-created-calendar-events/490/4 "2024-10-10T02:28:07Z")

</div>

Thank you very much @sboynton and @spang for the information! This solves my problem!
