https://bonnetid.krittimmanush.com/api
GET /prayers
kommune (string) β Municipality name. Requiredmonth (YYYY-MM) β Month. RequiredExample:
GET /prayers?kommune=tromso&month=2025-10
Accept: application/json[
{
"date": "2025-10-07",
"fajr": "05:37",
"sunrise": "07:12",
"dhuhr": "12:33",
"asr": "15:21",
"maghrib": "18:01",
"isha": "19:34"
}
]
GET /prayers
kommune (string) β Municipality name. Requireddate (YYYY-MM-DD) β Date. RequiredExample:
GET /prayers?kommune=tromso&date=2025-10-30
Accept: application/json[
{
"date": "2025-10-07",
"fajr": "05:37",
"sunrise": "07:12",
"dhuhr": "12:33",
"asr": "15:21",
"maghrib": "18:01",
"isha": "19:34"
}
]
GET /next-prayer
kommune (string) β Municipality name. RequiredExample:
GET /next-prayer?kommune=tromso
Accept: application/json{
"name": "Asr",
"time": "15:02",
"date": "2025-10-09",
"datetime_iso": "2025-10-09T15:02:00+02:00",
"seconds_remaining": 587.84407
}
POST /login
Authenticate user and receive a JWT token.
email (string) β Email address. Requiredpassword (string) β Password. RequiredExample:
POST /login
{
"email": "admin@example.com",
"password": "secret"
}
Accept: application/json{
"access_token": "eyJ0eXAiOi...",
"token_type": "bearer",
"expires_in": 3600
}
POST /upload (requires JWT)
Upload and parse prayer PDF.
pdf (file) β PDF. RequiredExample:
POST /upload
Accept: application/jsonAuthorization: Bearer {token}Content-Type: multipart/form-data{
"status": "success",
"message": "PDF parsed and data saved",
"kommune": "tromso"
}
Served directly via /storage/adhan/fajr.mp3
Served directly via /storage/adhan/general.mp3
{
"error": "Unauthorized",
"message": "Token not provided or invalid."
}
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /login | β | Get JWT token |
| POST | /upload | β | Upload & parse PDF |
| GET | /prayers | β | Get monthly or daily times |
| GET | /next-prayer | β | Get next upcoming prayer |