Skip to main content
POST
/
get-notifications
Get user notifications
curl --request POST \
  --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-notifications \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "limit": 20,
  "offset": 0,
  "unread_only": false
}'
{
  "success": true,
  "notifications": [
    "<any>"
  ],
  "unread_count": 123
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
limit
integer
default:20
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0
unread_only
boolean
default:false

Response

Successful response

success
boolean
required
notifications
(any | null)[]
required
unread_count
number
required