Skip to content

List DM conversations newest first

PubNio API inbox.conversations.list: list DM conversations newest first. Request fields, examples in five clients, errors, and idempotency.

List DM conversations newest first with GET /api/v1/inbox/conversations. Requires an API key with the read scope or a signed-in workspace member.

Request

Filter by account, provider, local status, folder, unread state, or search text. Cursors are opaque and stable.

Parameter In Type Required
workspaceId query UUID Yes
accountId query UUID No
provider query one of 21 strings No
status query "active", "archived" No
folder query "inbox", "message_request", "spam", "other" No
unread query "true", "false" No
search query string No
cursor query string No
limit query string No

Response

  • HTTP 200: InboxConversationList with data, hasMore, nextCursor.

The OpenAPI document has each field’s type.

Examples

const conversations = await workspace.inbox.conversations({ unread: true });
conversations = workspace.inbox.list_conversations()
curl "https://pubnio.com/api/v1/inbox/conversations?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
pnio inbox conversations list --unread
async () => {
  const response = await codemode.request({
    method: "GET",
    path: "/api/v1/inbox/conversations",
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};

Errors

It declares no problem of its own.

It declares the problems every Inbox operation and most operations declare.

Idempotency

None needed: a read is safe to retry.

Limits

  • Up to 100 items a page; pass nextCursor back as cursor. See Pagination.

Type to search…

↑↓ navigate↵ selectEsc close