Duvet DOCS
GitHub

Conversation Resource

A conversation represents a direct message (DM) or group chat between users, outside of any space.

Conversation Types

ValueNameDescription
1DMA direct message between two users
2GroupA group conversation with multiple users

Conversation Object

FieldTypeDescription
id stringThe conversation's UUID (v7, time-ordered)
type integerThe conversation type (1 = DM, 2 = group)
name string?The name of the conversation (null for DMs)
owner_id stringThe UUID of the conversation's owner: its creator, until they leave a group
created_at ISO 8601When the conversation was created
updated_at ISO 8601When the conversation last had a message or a change; conversation lists are ordered by it
deleted_at string?When the conversation was soft-deleted (ISO 8601, null if active)
members ConversationMember[]Array of conversation members

Conversation Member Object

FieldTypeDescription
id stringThe member entry's UUID (v7, time-ordered)
conversation_id stringThe UUID of the conversation
user_id stringThe UUID of the user
created_at ISO 8601When the member joined the conversation
updated_at ISO 8601When the member entry was last updated
user UserA subset of the user object (id, username, alias, avatar)

Example

{
  "id": "019cf96a-b19d-7c8e-f3ae-809102132435",
  "type": 1,
  "name": null,
  "owner_id": "019cf96a-3d5b-72c5-830f-75e85355d078",
  "created_at": "2026-01-10T08:00:00.000Z",
  "updated_at": "2026-03-01T20:15:00.000Z",
  "deleted_at": null,
  "members": [
    {
      "id": "019cf96a-b2ae-7d9f-a4bf-910213243546",
      "conversation_id": "019cf96a-b19d-7c8e-f3ae-809102132435",
      "user_id": "019cf96a-3d5b-72c5-830f-75e85355d078",
      "created_at": "2026-01-10T08:00:00.000Z",
      "updated_at": "2026-01-10T08:00:00.000Z",
      "user": {
        "id": "019cf96a-3d5b-72c5-830f-75e85355d078",
        "username": "MARCROCK22",
        "alias": null,
        "avatar": "9bd6da82-c850-424b-89a0-9e4733263a45"
      }
    },
    {
      "id": "019cf96a-b3bf-7eaf-b5c0-021324354657",
      "conversation_id": "019cf96a-b19d-7c8e-f3ae-809102132435",
      "user_id": "019cf96a-c4d0-7fb0-c6d1-132435465768",
      "created_at": "2026-01-10T08:00:00.000Z",
      "updated_at": "2026-01-10T08:00:00.000Z",
      "user": {
        "id": "019cf96a-c4d0-7fb0-c6d1-132435465768",
        "username": "janedoe",
        "alias": "Jane",
        "avatar": null
      }
    }
  ]
}