This endpoint returns all active (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Muhammadbugaje/NAMETS_Website/llms.txt
Use this file to discover all available pages before exploring further.
is_active = True) events whose start_datetime is in the future and falls within a configurable look-ahead window. It is intended for use in notification workflows and public-facing event listings that should always reflect the next set of upcoming activities. The default window of 7 days is suitable for weekly digest emails; adjust the days parameter for other cadences.
Endpoint paths
| Path | Source module |
|---|---|
GET /api/events/upcoming/ | api/urls.py → api/views.py |
GET /api/events/upcoming/ | events/api_urls.py → events/views_api.py |
X-N8N-Token header. The root project urls.py mounts events/api_urls.py at api/events/, so the resolved URL is the same for both: GET /api/events/upcoming/.
Query parameters
The number of days ahead from the current server time to include in the result. Only events with a
start_datetime strictly greater than now and less than or equal to now + days are returned.Must be a positive integer. Non-integer values will raise a ValueError (pass only numeric strings).Example: ?days=14Response fields
The unique primary key of the event record.
The event name, up to 200 characters.
A short description of the event. May be
null if no description was provided.The event start date and time in ISO 8601 format (e.g.,
"2024-06-21T14:00:00Z").The event end date and time in ISO 8601 format.
The venue or location name for the event, up to 200 characters.
Examples
Fetch events in the next 7 days (default):Example response
[] is returned when no active events fall within the requested window.