The caller's in-app notification feed (newest first).
GET
/notifications
const url = 'https://api.gospl.example/v1/notifications?unreadOnly=false&page=1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.gospl.example/v1/notifications?unreadOnly=false&page=1' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” unreadOnly
boolean
page
integer
Responses
Section titled “ Responses ”OK
Media type application/json
object
items
required
Array<object>
object
id
required
string format: uuid
type
required
Seed registry; grows per feature. See spec §2.
string
title
string
body
Rendered in-app body.
string
link
Deep link into the relevant Gospl page.
string
read
required
boolean
createdAt
required
string format: date-time
page
required
integer
totalPages
required
integer
Example
{ "items": [ { "type": "weekly_summary.submitted" } ]}Missing/invalid credentials.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}