---
title: "View channel"
method: POST
path: "/api/v4/channels/members/{user_id}/view"
tags: ["channels"]
---

# View channel

`POST /api/v4/channels/members/{user_id}/view`

Perform all the actions involved in viewing a channel. This includes marking channels as read, clearing push notifications, and updating the active channel.

## Path parameters

- `user_id` string, required

## Request body

- object
  - `channel_id` string, required — The channel ID that is being viewed. Use a blank string to indicate that all channels have lost focus.
  - `prev_channel_id` string — The channel ID of the previous channel, used when switching channels. Providing this ID will cause push notifications to clear on the channel being switched to.

## Response `200`

Channel view successful

- object
  - `status` string — Value should be "OK" if successful
  - `last_viewed_at_times` object — A JSON object mapping channel IDs to the channel view times

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions

---

[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)
