notifications
Get notifications
Get all notifications received by the current user. By default returns the 20 most recent notifications.
get/api/notifications
Query parameters
limitinteger
Number of notifications to return (default: 20, most recent)
Number of notifications to return (default: 20, most recent)
cursorstring nullable
Cursor for the next page.
Cursor for the next page.
notification_typestring nullable
Filter by notification type (chat, booking, payment, subscription, event, general, daily_morning, daily_evening)
Filter by notification type (chat, booking, payment, subscription, event, general, daily_morning, daily_evening)
success_onlyboolean nullable
Filter by success status (true for successful only, false for failed only, null for all)
Filter by success status (true for successful only, false for failed only, null for all)
Response
Successful Response
Example response
{
"has_more": true,
"next_cursor": "eyJpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMCIsInNlbnRfYXQiOiIyMDI0LTAxLTAxVDEyOjAwOjAwWiJ9",
"notifications": [
{
"body": "You have a new message",
"data": {
"chat_id": "123e4567-e89b-12d3-a456-426614174002",
"type": "chat"
},
"fcm_token": "fGhJkLmNoPqRsTu...",
"id": "123e4567-e89b-12d3-a456-426614174000",
"notification_metadata": {
"chat_id": "123e4567-e89b-12d3-a456-426614174002"
},
"notification_type": "chat",
"sent_at": "2024-01-01T12:00:00Z",
"success": true,
"title": "New message",
"user_id": "123e4567-e89b-12d3-a456-426614174001"
}
],
"total": 100
}