Skip to main content

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.

This endpoint returns today’s prayer schedule as a flat object keyed by prayer name. It is designed for quick consumption by notification workflows, display widgets, and reminder automations that need the five daily prayer times without additional detail. The response always reflects the current server date — no date parameter is accepted.

Endpoint path

PathSource module
GET /api/prayer/today/api/urls.pyapi/views.py
This endpoint requires the X-N8N-Token header.

Query parameters

This endpoint accepts no query parameters.

Response fields

date
string
Today’s date in YYYY-MM-DD format, based on the server’s local date at the time of the request (e.g., "2024-06-15").
fajr
string
Fajr prayer time in HH:MM 24-hour format (e.g., "05:30").
dhuhr
string
Dhuhr prayer time in HH:MM 24-hour format (e.g., "12:45").
asr
string
Asr prayer time in HH:MM 24-hour format (e.g., "16:00").
maghrib
string
Maghrib prayer time in HH:MM 24-hour format (e.g., "18:15").
isha
string
Isha prayer time in HH:MM 24-hour format (e.g., "19:45").

Example

curl -H "X-N8N-Token: your_api_token" \
  https://your-site.onrender.com/api/prayer/today/

Example response

{
  "date": "2024-06-15",
  "fajr": "05:30",
  "dhuhr": "12:45",
  "asr": "16:00",
  "maghrib": "18:15",
  "isha": "19:45"
}
The PrayerSchedule model (accessible through the admin at /communications/prayer-times/) stores both adhan and iqama times for every prayer — for example, fajr_adhan, fajr_iqama, dhuhr_adhan, dhuhr_iqama, and so on for all five prayers. The /api/prayer/today/ endpoint currently returns a simplified view with a single time per prayer. If your workflow requires separate adhan and iqama times, refer to the full PrayerSchedule model or request access to the extended endpoint.

Build docs developers (and LLMs) love