---
title: "Get all threads that user is following"
method: GET
path: "/api/v4/users/{user_id}/teams/{team_id}/threads"
tags: ["threads"]
---

# Get all threads that user is following

`GET /api/v4/users/{user_id}/teams/{team_id}/threads`

Get all threads that user is following


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

## Path parameters

- `user_id` string, required
- `team_id` string, required

## Query parameters

- `since` integer
- `deleted` boolean
- `extended` boolean
- `page` integer
- `pageSize` integer
- `totalsOnly` boolean
- `threadsOnly` boolean

## Response `200`

User's thread retrieval successful

- 38cb7293UserThreads
  - `total` integer — Total number of threads (used for paging)
  - `threads` 38cb7293UserThread[] — Array of threads
    - `id` string — ID of the post that is this thread's root
    - `reply_count` integer — number of replies in this thread
    - `last_reply_at` integer — timestamp of the last post to this thread
    - `last_viewed_at` integer — timestamp of the last time the user viewed this thread
    - `participants` 38cb7293Post[] — list of users participating in this thread. only includes IDs unless 'extended' was set to 'true'
      - `id` string
      - `create_at` integer — The time in milliseconds a post was created
      - `update_at` integer — The time in milliseconds a post was last updated
      - `delete_at` integer — The time in milliseconds a post was deleted
      - `edit_at` integer
      - `user_id` string
      - `channel_id` string
      - `root_id` string
      - `original_id` string
      - `message` string
      - `type` string
      - `props` object
      - `hashtag` string
      - `file_ids` string[]
      - `pending_post_id` string
      - `metadata` 38cb7293PostMetadata — Additional information used to display a post.
        - `embeds` object[] — Information about content embedded in the post including OpenGraph previews, image link previews, and message attachments. This field will be null if the post does not contain embedded content.
          - `type` 'image' | 'message_attachment' | 'opengraph' | 'link' — The type of content that is embedded in this point.
          - `url` string — The URL of the embedded content, if one exists.
          - `data` object — Any additional information about the embedded content. Only used at this time to store OpenGraph metadata. This field will be null for non-OpenGraph embeds.
        - `emojis` 38cb7293Emoji[] — The custom emojis that appear in this point or have been used in reactions to this post. This field will be null if the post does not contain custom emojis.
          - `id` string — The ID of the emoji
          - `creator_id` string — The ID of the user that made the emoji
          - `name` string — The name of the emoji
          - `create_at` integer — The time in milliseconds the emoji was made
          - `update_at` integer — The time in milliseconds the emoji was last updated
          - `delete_at` integer — The time in milliseconds the emoji was deleted
        - `files` 38cb7293FileInfo[] — The FileInfo objects for any files attached to the post. This field will be null if the post does not have any file attachments.
          - `id` string — The unique identifier for this file
          - `user_id` string — The ID of the user that uploaded this file
          - `post_id` string — If this file is attached to a post, the ID of that post
          - `create_at` integer — The time in milliseconds a file was created
          - `update_at` integer — The time in milliseconds a file was last updated
          - `delete_at` integer — The time in milliseconds a file was deleted
          - `name` string — The name of the file
          - `extension` string — The extension at the end of the file name
          - `size` integer — The size of the file in bytes
          - `mime_type` string — The MIME type of the file
          - `width` integer — If this file is an image, the width of the file
          - `height` integer — If this file is an image, the height of the file
          - `has_preview_image` boolean — If this file is an image, whether or not it has a preview-sized version
        - `images` object — An object mapping the URL of an external image to an object containing the dimensions of that image. This field will be null if the post or its embedded content does not reference any external images.
        - `reactions` 38cb7293Reaction[] — Any reactions made to this point. This field will be null if no reactions have been made to this post.
          - `user_id` string — The ID of the user that made this reaction
          - `post_id` string — The ID of the post to which this reaction was made
          - `emoji_name` string — The name of the emoji that was used for this reaction
          - `create_at` integer — The time in milliseconds this reaction was made
    - `post` 38cb7293Post
      - `id` string
      - `create_at` integer — The time in milliseconds a post was created
      - `update_at` integer — The time in milliseconds a post was last updated
      - `delete_at` integer — The time in milliseconds a post was deleted
      - `edit_at` integer
      - `user_id` string
      - `channel_id` string
      - `root_id` string
      - `original_id` string
      - `message` string
      - `type` string
      - `props` object
      - `hashtag` string
      - `file_ids` string[]
      - `pending_post_id` string
      - `metadata` 38cb7293PostMetadata — Additional information used to display a post.
        - `embeds` object[] — Information about content embedded in the post including OpenGraph previews, image link previews, and message attachments. This field will be null if the post does not contain embedded content.
          - `type` 'image' | 'message_attachment' | 'opengraph' | 'link' — The type of content that is embedded in this point.
          - `url` string — The URL of the embedded content, if one exists.
          - `data` object — Any additional information about the embedded content. Only used at this time to store OpenGraph metadata. This field will be null for non-OpenGraph embeds.
        - `emojis` 38cb7293Emoji[] — The custom emojis that appear in this point or have been used in reactions to this post. This field will be null if the post does not contain custom emojis.
          - `id` string — The ID of the emoji
          - `creator_id` string — The ID of the user that made the emoji
          - `name` string — The name of the emoji
          - `create_at` integer — The time in milliseconds the emoji was made
          - `update_at` integer — The time in milliseconds the emoji was last updated
          - `delete_at` integer — The time in milliseconds the emoji was deleted
        - `files` 38cb7293FileInfo[] — The FileInfo objects for any files attached to the post. This field will be null if the post does not have any file attachments.
          - `id` string — The unique identifier for this file
          - `user_id` string — The ID of the user that uploaded this file
          - `post_id` string — If this file is attached to a post, the ID of that post
          - `create_at` integer — The time in milliseconds a file was created
          - `update_at` integer — The time in milliseconds a file was last updated
          - `delete_at` integer — The time in milliseconds a file was deleted
          - `name` string — The name of the file
          - `extension` string — The extension at the end of the file name
          - `size` integer — The size of the file in bytes
          - `mime_type` string — The MIME type of the file
          - `width` integer — If this file is an image, the width of the file
          - `height` integer — If this file is an image, the height of the file
          - `has_preview_image` boolean — If this file is an image, whether or not it has a preview-sized version
        - `images` object — An object mapping the URL of an external image to an object containing the dimensions of that image. This field will be null if the post or its embedded content does not reference any external images.
        - `reactions` 38cb7293Reaction[] — Any reactions made to this point. This field will be null if no reactions have been made to this post.
          - `user_id` string — The ID of the user that made this reaction
          - `post_id` string — The ID of the post to which this reaction was made
          - `emoji_name` string — The name of the emoji that was used for this reaction
          - `create_at` integer — The time in milliseconds this reaction was made

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `404` — Resource not found

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
