markers
Save and restore your position in timelines.
get
Get saved timeline position
https://mastodon.example/api/v1/markers
Returns: Marker
OAuth: User token + read:statuses
Version history:
3.0.0 - added
Request
Headers
Authorization
required
string
Bearer <user token>
Query Parameters
timeline
required
array
Array of markers to fetch. String enum anyOf
home
, notifications
. If not provided, an empty object will be returned.
Response
200: Success
timeline[] = [“home”, “notifications”]
{
"notifications": {
"last_read_id": "35098814",
"version": 361,
"updated_at": "2019-11-26T22:37:25.239Z"
},
"home": {
"last_read_id": "103206604258487607",
"version": 468,
"updated_at": "2019-11-26T22:37:25.235Z"
}
}
401: Unauthorized
Invalid or missing Authorization header
{
"error": "The access token is invalid"
}
post
Save position in timeline
https://mastodon.example/api/v1/markers
Returns: Marker
OAuth: User token + write:statuses
Version history:
3.0.0 - added
Request
Headers
Authorization
required
string
Bearer <user token>
Form Data Parameters
home[last_read_id]
optional
string
ID of the last status read in the home timeline.
notifications[last_read_id]
optional
string
ID of the last notification read.
Response
200: Success
Calling this API with home[last_read_id] causes a marker to be created for the home timeline.
{
"home": {
"last_read_id": "103194548672408537",
"version": 462,
"updated_at": "2019-11-24T19:39:39.337Z"
}
}
401: Unauthorized
Invalid or missing Authorization header
{
"error": "The access token is invalid"
}
409: Conflict
If object is stale while being updated, an error will occur.
{
"error": "Conflict during update, please try again"
}
Last updated December 27, 2020 · Improve this page