---
title: "Get gateway information"
method: GET
path: "/gateway/bot"
tags: ["Gateway"]
---

# Get gateway information

`GET /gateway/bot`

Retrieves gateway connection information and recommended shard count for establishing WebSocket connections.

## Response `200`

Success

- GatewayBotResponse
  - `url` string, required — WebSocket URL to connect to the gateway
  - `shards` integer, required — Recommended number of shards to use when connecting
  - `session_start_limit` object, required — Session start rate limit information
    - `total` integer, required — Total number of session starts allowed
    - `remaining` integer, required — Remaining number of session starts
    - `reset_after` integer, required — Milliseconds until the limit resets
    - `max_concurrency` integer, required — Maximum number of concurrent IDENTIFY requests

## Other responses

- `400` — Bad Request - The request was malformed or contained invalid data
- `429` — Too Many Requests - You are being rate limited
- `500` — Internal Server Error - An unexpected error occurred

## Changes

> 20 revisions in range; 2 not diffed.

- **2026-09-06** `a52a2cf49d9b` — 16 warning
  - added the new `IP_BAN_DECLINED` enum value to the `code` response property for the response status `400`
  - added the new `IP_BAN_DECLINED` enum value to the `code` response property for the response status `500`
  - added the new `PHONE_COUNTRY_NOT_SUPPORTED` enum value to the `code` response property for the response status `400`
  - added the new `PHONE_COUNTRY_NOT_SUPPORTED` enum value to the `code` response property for the response status `500`
  - …12 more
  - …this revision’s changelog is incomplete
- **2026-09-05** `4dbb738a3e22` — 2 info
  - removed the `NSFW_EMOJI_STICKER_BLOCKED` enum value from the `code` response property for the response status `400`
  - removed the `NSFW_EMOJI_STICKER_BLOCKED` enum value from the `code` response property for the response status `500`
- **2026-09-03** `fa36b1b48ca5` — 10 info
  - removed the `INVALID_PACK_TYPE` enum value from the `code` response property for the response status `400`
  - removed the `INVALID_PACK_TYPE` enum value from the `code` response property for the response status `500`
  - removed the `MAX_PACKS` enum value from the `code` response property for the response status `400`
  - removed the `MAX_PACKS` enum value from the `code` response property for the response status `500`
  - …6 more

[Change history](https://skmtc.dev/fluxer/apis/fluxer-api/changes/gateway/bot/get.md)

---

[API](https://skmtc.dev/fluxer/apis/fluxer-api.md) · [All operations](https://skmtc.dev/fluxer/apis/fluxer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fluxer/apis/fluxer-api/revisions/55834b33d5d5?raw)
