Threads

class matterapi.endpoints.async_api.ThreadsApi(client: matterapi.client.base.BaseClient, skip_response_parsing: bool = False)
async get_thread_mention_counts_by_channel(user_id: str, team_id: str) None

Get all unread mention counts from followed threads, per-channel

Get all unread mention counts from followed threads

Permissions:

Must be logged in as the user or have edit_other_users permission.

Minimum Server Version:

5.29

Api Reference:

GetThreadMentionCountsByChannel

async get_user_thread(user_id: str, team_id: str, thread_id: str) None

Get a thread followed by the user

Get a thread

Permissions:

Must be logged in as the user or have edit_other_users permission.

Minimum Server Version:

5.29

Api Reference:

GetUserThread

async get_user_threads(user_id: str, team_id: str, *, since: Optional[int] = None, deleted: Optional[bool] = False, extended: Optional[bool] = False, page: Optional[int] = 0, pageSize: Optional[int] = 30, totalsOnly: Optional[bool] = False) matterapi.models.UserThreads

Get all threads that user is following

Get all threads that user is following

Permissions:

Must be logged in as the user or have edit_other_users permission.

Minimum Server Version:

5.29

Api Reference:

GetUserThreads

async start_following_thread(user_id: str, team_id: str, thread_id: str) None

Start following a thread

Start following a thread

Permissions:

Must be logged in as the user or have edit_other_users permission.

Minimum Server Version:

5.29

Api Reference:

StartFollowingThread

async stop_following_thread(user_id: str, team_id: str, thread_id: str) None

Stop following a thread

Stop following a thread

Permissions:

Must be logged in as the user or have edit_other_users permission.

Minimum Server Version:

5.29

Api Reference:

StopFollowingThread

async update_thread_read_for_user(user_id: str, team_id: str, thread_id: str, timestamp: str) None

Mark a thread that user is following read state to the timestamp

Mark a thread that user is following as read

Permissions:

Must be logged in as the user or have edit_other_users permission.

Minimum Server Version:

5.29

Api Reference:

UpdateThreadReadForUser

async update_threads_read_for_user(user_id: str, team_id: str) None

Mark all threads that user is following as read

Mark all threads that user is following as read

Permissions:

Must be logged in as the user or have edit_other_users permission.

Minimum Server Version:

5.29

Api Reference:

UpdateThreadsReadForUser