---
title: "List inbox threads"
method: GET
path: "/inbox/threads"
tags: ["Inbox"]
---

# List inbox threads

`GET /inbox/threads`

## Request

- Base URL: `https://api.rizamo.com/v1`
- URL: `https://api.rizamo.com/v1/inbox/threads`
- Auth: HTTP bearer

One thread per first comment, with the replies under it, and one per person for messages. Those with the newest messages first, 200 at a time unless `limit` says fewer: pass `nextCursor` as `cursor` for the next page, with the same filters.

## Query parameters

- `status` 'open' | 'done': open: still needs an answer. done: answered or closed; a new message opens it again.
- `kind` 'comment' | 'dm' | 'mention' | 'review': comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet.
- `profileId` string: Only this profile's (`prof_`): one brand or client, from List profiles. A profile you do not reach is refused as not found.
- `assigneeId` string: Only threads handed to this teammate: their user id (`user_`), from List members.
- `networkPostId` string: Only the comments on this post (`npost_`), as List commented posts and List posts on the networks give it.
- `limit` integer: How many to return, up to 200: 200 when left out.
- `cursor` string: `nextCursor` from the page before, with the same filters.

## Response `200`

OK

- object
  - `items` Thread[], required
    - `id` string, required
    - `profileId` string, required
    - `accountId` string, required
    - `network` 'instagram' | 'facebook' | 'threads' | 'linkedin' | 'tiktok' | 'youtube' | 'x' | 'pinterest' | 'google', required
    - `kind` 'comment' | 'dm' | 'mention' | 'review', required: comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet.
    - `contact` Contact, nullable, required
      - `name` string, required
      - `handle` string, required
      - `initials` string, required
      - `color` string, required
      - `avatarUrl` string, nullable, required: Their picture. On Facebook, Instagram, Threads, TikTok and LinkedIn, whose own links expire, a small copy Rizamo keeps, on Rizamo's media host: the link works for a few hours, so get the thread again for a fresh one. The network's own link elsewhere, and until the copy is made. Null when the network gives none, or its link expired with no copy.
    - `postId` string, nullable, required: Comments: the Rizamo post (`post_`) the comment is on, when it went out through Rizamo. Null on posts made elsewhere, and for messages.
    - `networkPostId` string, nullable, required: Comments: the post they are on (`npost_`), as `Get a post on a network` returns it, once Rizamo has listed it.
    - `preview` string, required: The newest message's text, empty when that message has none.
    - `lastMessageAt` string, date-time, required
    - `unread` boolean, required
    - `status` 'open' | 'done', required
    - `assignee` union, required
      - object
        - `type` 'agent', required
        - `agent` 'claude' | 'chatgpt' | 'claudecode' | 'cursor' | 'codex' | 'gemini' | 'perplexity' | 'openclaw' | 'n8n' | 'make' | 'zapier', nullable, required
        - `name` string, required
        - `agentId` string
        - `onBehalfOf` object: The person whose agent it is, who connected it and whom it acts as, with their role: "Ana via Claude Code". Events from before 2026-11-02 have it too, with the person's name now. Left out of an agent with no person, and of other records from before. After the person's erasure, `name` is "A former member" and `userId` empty.
          - `userId` string, required
          - `name` string, required
      - object
        - `type` 'user', required
        - `userId` string, required
        - `name` string, required
        - `initials` string, required
      - object
        - `type` 'api_key', required
        - `keyId` string, required
        - `name` string, required
      - object
        - `type` 'automation', required
        - `automationId` string, required
        - `name` string, required
    - `sentiment` 'positive' | 'neutral' | 'negative', required: Not computed yet: always `neutral` until Rizamo reads sentiment, so do not rely on it.
    - `replyWindowEndsAt` string, date-time, nullable, required: Messages: replies are possible until then, 24 hours after the person's last message (Meta's messaging window). Null for comments, which have none.
  - `nextCursor` string, nullable, required: Null on the last page.

## Other responses

- `400`: `invalid_request`: A field is missing or wrong, or the request cannot be done as asked: the message names the field or says what to change.
- `401`: `unauthorized`: No API key or sign-in, or the key does not work: it was deleted, or it expired.
- `403`: `forbidden`: The caller may not do this: the key or agent lacks the scope (the message names it), or the action needs another role or a fresh sign-in.
- `404`: `not_found`: No such object, or it is outside your team or the profiles your key reaches.
- `429`: `rate_limited`: Over one of Rizamo's limits, or a network asked Rizamo to slow down: wait for `Retry-After` seconds, or as long as the message says.
- `500`: `internal`: Our side failed: retry, and send the `requestId` if it keeps failing.
- `503`: `timeout`: The request took too long to work out, most often a report: try again in a moment, or ask a report for a shorter period or one profile.

---

[API](https://skmtc.dev/rizamo/apis/rizamo-api.md) - [All operations](https://skmtc.dev/rizamo/apis/rizamo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rizamo/apis/rizamo-api/revisions/31b0c1b1ffb5?raw)
