Get Channel Counters
    • Dark
      Light
    • PDF

    Get Channel Counters

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/channels.counters

    Gets channel information related to a user.

    Permission required: view-room-administration

    Changelog

    VersionDescription
    0.65.0Added
    Header parameters
    X-Auth-Token
    stringRequired

    The authToken of the authenticated user.

    ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
    X-User-Id
    stringRequired

    The userId of the authenticated user.

    ExamplerbAXPnMktTFbNpwtJ
    Query parameters
    roomId
    string

    The room id. It is required if the roomName is not provided.

    Exampledlpfuijw7ej
    roomName
    string

    The room name. It is required if the roomId is not provided.

    Examplegeneral
    userId
    string

    The user ID.

    ExampleRtycPC29hqLJfT9xj
    Responses
    200

    OK

    Note

    • joined boolean flag whether the user has joined the room or not.
    • members is the count of current room members.
    • unreads is the count of unread messages for the specified user (for the calling user or the provided user ID).
    • unreadsFrom is the start date-time of unread interval for the specified user.
    • msgs is the count of messages in the room.
    • latest is the end date-time of unread interval for the specified user (or date-time of last posted message).
    • userMentions is the count of user mentions in messages.
    Example 1
    {
      "joined": true,
      "members": 23,
      "unreads": 2,
      "unreadsFrom": "2023-09-12T16:33:11.644Z",
      "msgs": 7345,
      "latest": "2023-09-25T22:50:07.979Z",
      "userMentions": 0,
      "success": true
    }
    object
    joined
    boolean
    members
    integer
    unreads
    integer
    unreadsFrom
    string
    msgs
    integer
    latest
    string
    userMentions
    integer
    success
    boolean

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.