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) announcements whose publish_at datetime is greater than or equal to a given point in time. It is designed for automation workflows (such as n8n) that poll for new content and need only the records published since their last run. When no since parameter is provided, the server defaults to 24 hours ago, ensuring no recent announcements are missed.
Endpoint paths
| Path | Source module |
|---|---|
GET /api/announcements/new/ | api/views.py |
GET /api/communications/announcements/new/ | communications/views_api.py |
X-N8N-Token header and return the same data. The /api/communications/ path additionally exposes expire_at and category fields from the communications serializer (see response fields below).
Query parameters
An ISO 8601 datetime string representing the earliest
publish_at value to include. Announcements published at or after this time are returned.The /api/ path accepts the Z UTC suffix (e.g., 2024-01-01T00:00:00Z) and converts it internally. The /api/communications/ path uses fromisoformat directly and accepts offset-aware strings such as 2024-01-01T00:00:00+00:00.If omitted, or if the supplied value cannot be parsed, the server falls back to 24 hours before the current time.Example: ?since=2024-06-01T08:00:00ZWhen
since is not provided, the server automatically uses now - 24 hours as the lower bound. This means a polling workflow that runs every 24 hours will never miss an announcement, as long as it runs on schedule.Response fields
Fields returned by both endpoint paths:The unique primary key of the announcement.
The announcement headline, up to 200 characters.
The full announcement body text. May be
null if no content was entered.The scheduled publish datetime in ISO 8601 format (e.g.,
"2024-06-15T10:00:00Z"). This is also the field used for the since filter comparison./api/communications/announcements/new/:
The datetime after which the announcement is considered expired, in ISO 8601 format. May be
null if no expiry is set.The announcement category. One of:
"general", "ramadan", "taaleem", "sale".Examples
Fetch announcements from the last 24 hours (default window):Example response
Response fromGET /api/announcements/new/:
GET /api/communications/announcements/new/ (additional fields):