Mega icon

Mega

Work with Mega API

Conversation → Get Counts

AI-generated

Summary

Retrieve the count of conversations filtered by various criteria such as status, query text, inbox ID, team ID, and labels.

Inputs

  • Status — Filter conversations by their status; options include All, Open, Pending, Resolved, Snoozed. Defaults to Open.
  • Query — A search term to filter conversations based on message content.
  • Inbox ID — Numeric ID to filter conversations belonging to a specific inbox.
  • Team ID — Numeric ID to filter conversations assigned to a specific team.
  • Labels — A JSON array of labels used to filter conversations.

Output shape

A JSON object containing the counts of conversations matching the provided filters.

The output includes only the conversation counts filtered by the supplied parameters; the response does not include full conversation details. All filtering parameters are optional; defaults apply where parameters are not set.

Links

Discussion