RedditapisRedditapis
DM

List All Direct Message Threads & Inbox

List the account's direct-message conversations and chat sidebar, newest activity first, with full thread metadata, last message, and unread count.

POST/api/reddit/dm/threads$0.025 / call

List all of the account's direct-message conversations, the same view you see in the Reddit chat sidebar. Returns one entry per thread with the other party's username, the latest message preview, and unread count. Sorted newest activity first.

The list is paged. Each call returns up to limit threads (default 50, at most 100) and an after cursor; send that cursor back to get the next page, until after is null. total_threads counts every conversation the account has joined, not only the ones in this page. Each page is billed as one call.

Request Body

Cookies are passed as flat top-level fields (same shape as /comment, /vote, /dm).

FieldTypeRequiredDescription
reddit_sessionstringyesSession cookie from /api/reddit/login
loidstringyesLong-lived account identifier cookie
csrf_tokenstringyesAnti-CSRF cookie
limitintegernoThreads per page, 1 to 100. Default 50.
afterstringnoThe previous response's after value, exactly as returned. Omit for the first page.
proxyobject | stringnoSticky IP for this account, {server, username?, password?} or a URL string. Use the same proxy you passed to /login. Omit to use our pool. See Per-account proxies.

Example

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{
    "reddit_session": "eyJhbGc...",
    "loid": "000000...",
    "csrf_token": "1c0819..."
  }' \
  "https://api.redditapis.com/api/reddit/dm/threads"
const response = await fetch("https://api.redditapis.com/api/reddit/dm/threads", {
  method: "POST",
  headers: {
    Authorization: "Bearer TOKEN",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    reddit_session: "eyJhbGc...",
    loid: "000000...",
    csrf_token: "1c0819...",
  }),
});
import requests

response = requests.post(
"https://api.redditapis.com/api/reddit/dm/threads",
json={
"reddit_session": "eyJhbGc...",
"loid": "000000...",
"csrf_token": "1c0819...",
},
headers={"Authorization": "Bearer TOKEN"},
)

Success Response

{
  "success": true,
  "me": "@t2_xxxxxxxx:reddit.com",
  "thread_count": 2,
  "total_threads": 47,
  "limit": 2,
  "after": "eyJnIjowLCJ0IjoxNzcyODc2NjY4NDEyLCJyIjoiIUg0eDVCRTVDT09kVkFLYmNBRkRfNVlNTV9OUzN4RWhIWjJocDJobm9FOW86cmVkZGl0LmNvbSJ9",
  "listing_status": "complete",
  "threads": [
    {
      "room_id": "!hdstiJypyVtzbpoUJZe9mUc-zl-5BnADoRlS7h4itZg:reddit.com",
      "with_user_t2": "t2_ugmf7dmn",
      "with_username": "Ok-Establishment9204",
      "with_membership": "invite",
      "last_message": {
        "body": "hey!",
        "from_me": true,
        "ts": 1777105649773,
        "date": "2026-04-25T15:07:29.773Z"
      },
      "unread_count": 0,
      "summary": "complete"
    },
    {
      "room_id": "!H4x5BE5COOdVAKbcAFD_5YMM_NS3xEhHZ2hp2hnoE9o:reddit.com",
      "with_user_t2": "t2_284523vyfl",
      "with_username": "henry-gilbert",
      "with_membership": "join",
      "last_message": {
        "body": "Here is my mail id - someone@example.com",
        "from_me": true,
        "ts": 1772876668412,
        "date": "2026-03-07T09:44:28.412Z"
      },
      "unread_count": 0,
      "summary": "complete"
    }
  ]
}

Field Reference

FieldDescription
thread_countThreads in this page.
total_threadsEvery conversation the account has joined, across all pages.
afterCursor for the next page. null on the last page.
listing_statuscomplete when every joined conversation was counted and every row on the page is filled in; partial when every conversation is counted and returned but some older rows could not be filled (their summary is null when time ran out or "failed" when Reddit's chat server did not answer, and their empty fields are unknown, not empty; request the page again); unknown when Reddit would not list them all, so only the most recent conversations were returned and more may exist.
room_idInternal thread ID. Pass this to a per-room messages endpoint to fetch full history.
with_user_t2The other party's t2_* ID, read from the room's own membership. null when the room has no other member, or more than one (a group chat).
with_usernameThe other party's Reddit username (display name), from the room or, when the room carries none, their chat profile. null when neither answered.
with_membershipjoin if they accepted the chat, invite if they were invited but haven't opened it, leave if they left.
last_message.from_metrue if the most recent message was sent by the authenticated account.
last_message.bodyPlain-text preview. May be null if the latest event was a redaction or non-message.
unread_countNumber of unread messages in this thread.
summaryOn every row: complete when the row is filled in, failed when a read for it failed, null when it could not be filled in time.

Paging: the order is newest activity first for the most recent conversations, then the older ones by thread ID. The after cursor marks the last thread you were given, so a new message never shifts the next page. A conversation you have not reached yet that gets a new message while you page moves ahead of the cursor and is skipped on later pages, and one you already have can come back once if it drops out of the recent group. Dedupe on room_id, and when you need an exact census, compare the threads you collected with total_threads and page again from the start if they differ.

Note: last_message is only the most recent message. Use /api/reddit/dm/messages to fetch the full history of a thread.

Errors

StatusMeaning
400limit outside 1 to 100 (INVALID_LIMIT); an after this endpoint did not return (INVALID_CURSOR); missing required cookies; or proxy is malformed (INVALID_PROXY), or a proxy-shaped field was sent as a top-level string (INVALID_FIELD), see Per-account proxies
401Missing Bearer token
403Invalid Bearer token
502Could not fetch the thread list (e.g. session cookies expired; re-login)
500Unexpected server error

Independent third-party API for developers and researchers. Not affiliated with, endorsed by, or sponsored by Reddit, Inc.

On this page