mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00

* update anchors * remove extraneous anchors * fix line breaks * wrap tootctl tokens in code blocks * change anchors to hugo format * fix mistaken search-and-replace * fix mistaken search-and-replace
1.5 KiB
1.5 KiB
title | description | menu | ||||
---|---|---|---|---|---|---|
Conversation | Represents a conversation with "direct message" visibility. |
|
Example
{
"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",
...
}
}
Required attributes
id
Description: Local database ID of the conversation.
Type: String (cast from an integer, but not guaranteed to be a number)
Version history: Added in 2.6.0
accounts
Description: Participants in the conversation.
Type: Array of Account
Version history: Added in 2.6.0
unread
Description: Is the conversation currently marked as unread?
Type: Boolean
Version history: Added in 2.6.0
Optional attributes
last_status
Description: The last status in the conversation, to be used for optional display.
Type: Status
Version history: Added in 2.6.0
See also
{{< page-ref page="methods/timelines/conversations.md" >}}
{{< caption-link url="https://github.com/tootsuite/mastodon/blob/master/app/serializers/rest/conversation_serializer.rb" caption="app/serializers/rest/conversation_serializer.rb" >}}