read
cs

Returns customer service conversation threads for the current store, most recently active first (last message, newest fi

Changed on

Returns customer service conversation threads for the current store, most recently active first (last message, newest first; threads with no message yet come last). Each thread aggregates one email conversation with its inbox status, priority, tags, assignee, category, sentiment, message count and an AI summary. Filter by attention (status), by the inbox's own inbox_status, assignee ("me", "none" or a user id), priority, tags (all must match) and updated_since (last message at or after). Paged: pass page.next_cursor back as cursor while page.has_more is true. A thread that gets new mail while you page moves to the top, so to follow changes use updated_since. The list is items; threads is the same list under its original name.

post/api/v1/tools/get_cs_threads

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopescs:read

Request body

object required
status, 'open' | 'closed' | 'all'

open = attention not resolved (default); closed = attention resolved; all = no filter.

sentiment, 'positive' | 'neutral' | 'negative'

Optional: filter threads by sentiment. positive ≥ 0.2, negative ≤ -0.2, neutral in between.

inbox_status, string[]
assignee, string

"me", "none" (unassigned) or a member's user id.

priority, string[]
tags, string[]
updated_since, string date-time
cursor, string

The page.next_cursor of the previous page.

limit, integer

Page size (default 25, max 100).

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision