List Online Users in a Channel
    • Dark
      Light
    • PDF

    List Online Users in a Channel

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/channels.online

    List all online users in a channel. If the channel's id is not provided, it lists all the online users of all the channels.

    Changelog

    VersionDescription
    0.52.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
    query
    Required

    An object of the channel's id.

    object
    Example{"_id": "5HmCfpoB7jp2uibTC"}
    _id
    string
    Example{"_id": "5HmCfpoB7jp2uibTC"}
    Responses
    200

    OK

    Example
    {
      "online": [
        {
          "_id": "47cRd58HnWwpqxhaZ",
          "username": "test"
        },
        {
          "_id": "BsxzC22xQ43taWdff",
          "username": "uniqueusername"
        }
      ],
      "success": true
    }
    Expand All
    object
    online
    Array of object
    object
    _id
    string
    username
    string
    success
    boolean

    Was this article helpful?

    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.