POST

Query Events


Note: This query method uses the new Wix API Query Language syntax. If you're still using the old query syntax with chained query builder methods, see Migrate from SDK Query Builders to Wix API Query Language for guidance. The old query builder methods continue to work.

Retrieves a list of events, given the provided paging, filtering, and sorting.

Defaults

Query Events runs with these defaults, which you can override:

  • Sorted by start in ASC order.
  • cursorPaging.limit is 50.
  • WORKING_HOURS events are excluded from the results. To retrieve working hour events, specify "type": "WORKING_HOURS" in the query filter.

Filters

Date filters

Do not specify filters for start and end dates inside query.filter, instead specify fromLocalDate and toLocalDate.

Unsupported filters

You can't filter by the following fields:

See also

To learn about working with Query endpoints, see:

PropertyFiltersSort
transparency$eqNone
appId$eq, $inNone
scheduleId$eq, $inNone
externalScheduleId$eq, $inNone
type$eq, $inNone
recurringEventId$eq, $inNone
location._id$eq, $inNone
location.type$eq, $inNone
remainingCapacity$eq, $ne, $gt, $gte, $lt, $lteNone
participants.total$eq, $ne, $gt, $gte, $lt, $lteNone
totalCapacity$eq, $ne, $gt, $gte, $lt, $lte, $existsNone
resources._id$hasSome, $hasAllNone
resources.type$hasSome, $hasAllNone
resources.transparency$hasSome, $hasAllNone
location$existsNone
conferencingDetails$existsNone
Permissions
Read Calendar
Read Calendar - Including PI
Learn more about app permissions.
Method Declaration
Copy
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?