Messages Endpoints
Get User Direct Message Threads Ordered by Timestamp
POST
/api/v0/get-user-dm-threads-ordered-by-timestamp
Get User Direct Message Threads Ordered by Timestamp returns an array of NewMessageEntryResponse objects for the public key provided in the request body. Each NewMessageEntryResponse object represents the most recent message each in DM conversation a user has. This is useful for showing a list of DM conversations in a user's inbox. The first NewMessageEntryResponse object is the most recent conversation and the last one is the old.
Endpoint implementation in backend.
Request Body
Get Paginated Messages for a Direct Message Thread
POST
/api/v0/get-paginated-messages-for-dm-thread
Get Paginated Messages For DM Thread returns an array of NewMessageEntryResponse objects based on the conversation defined in the request body. Each NewMessageEntryResponse object represent a message in the a DM conversation. This is useful for showing all messages in a conversation. This first NewMessageEntryResponse object is the most recent message and the last one is the oldest. This endpoint supports pagination.
Endpoint implementation in backend.
Request Body
Get User Group Chat Threads Ordered by Timestamp
POST
/api/v0/get-user-group-chat-threads-ordered-by-timestamp
Get User Group Chat Threads Ordered by Timestamp returns an array of NewMessageEntryResponse objects for the public key provided in the request body. Each NewMessageEntryResponse object represents the most recent message each in a group chat a user has. This is useful for showing a list of group chats in a user's inbox. The first NewMessageEntryResponse object is the most recent conversation and the last one is the oldest.
Endpoint implementation in backend.
Request Body
Get Paginated Messages For Group Chat Thread
POST
/api/v0/get-paginated-messages-for-group-chat-thread
Get Paginated Messages For Group Chat Thread returns an array of NewMessageEntryResponse objects based on the group chat defined in the request body. Each NewMessageEntryResponse object represent a message in the group chat. This is useful for showing all messages in a conversation. This first NewMessageEntryResponse object is the most recent message and the last one is the oldest. This endpoint supports pagination.
Endpoint implementation in backend.
Request Body
Get All User Message Threads
POST
/api/v0/get-all-user-message-threads
Get All User Message Threads Group returns an array of NewMessageEntryResponse objects for the public key provided in the request body. Each NewMessageEntryResponse object represents the most recent message each in a conversation (DM or group chat) a user has. This is useful for showing a list of all conversations in a user's inbox. The first NewMessageEntryResponse object is the most recent conversation and the last one is the oldest.
Endpoint implementation in backend.
Request Body
Last updated