POST
/
rest
/
api
/
v1
/
listchats
from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
    instance=os.getenv("GLEAN_INSTANCE", ""),
) as glean:

    res = glean.client.chat.list()

    # Handle response
    print(res)
{
  "chatResults": [
    {
      "chat": {
        "id": "<string>",
        "createTime": 123,
        "createdBy": {
          "name": "George Clooney",
          "obfuscatedId": "abc123"
        },
        "updateTime": 123,
        "name": "<string>",
        "applicationId": "<string>",
        "applicationName": "<string>",
        "icon": {
          "color": "#343CED",
          "key": "person_icon",
          "iconType": "GLYPH",
          "name": "user"
        }
      },
      "trackingToken": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

timezoneOffset
integer

The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.

Response

200
application/json

OK

The response is of type object.