/v0/notifications
GET
/v0/notifications
const url = 'http://localhost:3000/v0/notifications?limit=30&include_read=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/v0/notifications?limit=30&include_read=false'Get notifications
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” limit
number
after_id
Return notes after this notification ID. Specified notification is not included.
string
Return notes after this notification ID. Specified notification is not included.
include_read
boolean | null
Responses
Section titled “ Responses ”OK
Media type application/json
Array
Any of:
object
id
required
string
actor
required
createdAt
required
string format: date-time
type
required
string
noteId
required
string
content
required
string
Example
[ { "actor": { "type": "account" }, "type": "followed" }]Nothing left
Media type application/json
object
error
required
No more notes exist
string
Example
{ "error": "NOTHING_LEFT"}Internal error
Media type application/json
object
error
required
Internal server error
string
Example
{ "error": "INTERNAL_ERROR"}