conversations
Direct conversations with other participants. (Currently, just threads containing a post with "direct" visibility.)
Show conversation
GET
https://mastodon.example/api/v1/conversations
Returns: Array of Conversation
OAuth: User token + read:statuses
Version history:
2.6.0 - added
Query Parameters
limit
string
Maximum number of results. Defaults to 20. Max 40.
max_id
string
Return results older than this ID. Use HTTP Link header to paginate.
since_id
string
Return results newer than this ID. Use HTTP Link header to paginate.
min_id
string
Return results immediately newer than this ID. Use HTTP Link header to paginate.
Headers
Authorization
string
Bearer <user token>
[
{
"id": "418450",
"unread": true,
"accounts": [
{
"id": "482403",
"username": "amic",
"acct": "amic@nulled.red",
...
}
],
"last_status": {
"id": "103196583826321184",
"created_at": "2019-11-25T04:08:24.000Z",
"in_reply_to_id": "103196540587943467",
"in_reply_to_account_id": "14715",
...
}
},
{
"id": "418374",
"unread": false,
"accounts": [
{
"id": "464472",
"username": "freon",
"acct": "freon@letsalllovela.in",
...
}
],
"last_status": {
"id": "103195253010396431",
"created_at": "2019-11-24T22:29:56.331Z",
"in_reply_to_id": "103195239650546339",
"in_reply_to_account_id": "14715",
...
}
}
]
Remove conversation
DELETE
https://mastodon.example/api/v1/conversations/:id
Returns: empty object
OAuth: User token + write:conversations
Version history:
2.6.0 - added
Path Parameters
:id
string
ID of the conversation in the database
Headers
Authorization
string
{}
Mark as read
POST
https://mastodon.example/api/v1/conversations/:id/read
Returns: Conversation
OAuth: User token + write:conversations
Version history:
2.6.0 - added
Path Parameters
:id
string
ID of the conversation in the database
Headers
Authorization
string
{
"id": "418450",
"unread": false,
"accounts": [
{
"id": "482403",
...
}
],
"last_status": {
"id": "103196583826321184",
...
}
}
Last updated
Was this helpful?