---
title: "Get chat admins"
method: GET
path: "/chats/{chatId}/members/admins"
tags: ["chats"]
---

# Get chat admins

`GET /chats/{chatId}/members/admins`

## Request

- Base URL: `https://botapi.tamtam.chat`
- URL: `https://botapi.tamtam.chat/chats/{chatId}/members/admins`
- Auth: API key in query parameter `access_token`

Returns all chat administrators. Bot must be **administrator** in requested chat.

## Path parameters

- `chatId` integer, required

## Response `200`

Administrators list

- ChatMembersList
  - `members` ChatMember[], required: Participants in chat with time of last activity. Visible only for chat admins
    - `user_id` integer, required: Users identifier
    - `name` string, required: Users visible name
    - `username` string, nullable, required: Unique public user name. Can be `null` if user is not accessible or it is not set
    - `is_bot` boolean, required: `true` if user is bot
    - `last_activity_time` integer, required: Time of last user activity in TamTam (Unix timestamp in milliseconds). Can be outdated if user disabled its "online" status in settings
    - `description` string, nullable: User description. Can be `null` if user did not fill it out
    - `avatar_url` string: URL of avatar
    - `full_avatar_url` string: URL of avatar of a bigger size
    - `last_access_time` integer, required: User last activity time in chat. Can be outdated for super chats and channels (equals to `join_time`)
    - `is_owner` boolean, required
    - `is_admin` boolean, required
    - `join_time` integer, required
    - `permissions` ChatAdminPermission[], nullable, required: Permissions in chat if member is admin. `null` otherwise
  - `marker` integer, nullable: Pointer to the next data page

## Other responses

- `401`: Authorization Error. No `access_token` provided or token is invalid
- `403`: Access error. You don't have permissions to access this resource
- `404`: Requested resource is not found
- `500`: Internal Server Error

## Changes

- **2021-05-31** `dc45288cfedc`: 1 info
  - added the required property `members/items/allOf[#/components/schemas/UserWithPhoto]/allOf[#/components/schemas/User]/last_activity_time` to the response with the `200` status
- **2020-04-02** `93fb5d18fdf2`: 1 info
  - the response property `members/items/allOf[#/components/schemas/UserWithPhoto]/allOf[#/components/schemas/User]/is_bot` became required for the status `200`
- **2020-04-02** `f4ed817ac50f`: 1 info
  - added the optional property `members/items/allOf[#/components/schemas/UserWithPhoto]/allOf[#/components/schemas/User]/is_bot` to the response with the `200` status
- **2020-02-11** `6cd9dbaf139d`: 1 info
  - added the optional property `members/items/allOf[#/components/schemas/UserWithPhoto]/allOf[subschema #2]/description` to the response with the `200` status
- **2019-10-10** `05b455737d1e`: 1 warning
  - changed the pattern of the `path` request parameter `chatId` from `\-\d+` to `\-?\d+`

[Operation history](https://skmtc.dev/tamtam/apis/tamtam-bot-api/changes/chats/:chatId/members/admins/get.md)

---

[API](https://skmtc.dev/tamtam/apis/tamtam-bot-api.md) - [All operations](https://skmtc.dev/tamtam/apis/tamtam-bot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tamtam/apis/tamtam-bot-api/revisions/fa85402ea716?raw)
