---
title: "POST /getWebhookInfo"
method: POST
path: "/getWebhookInfo"
---

# POST /getWebhookInfo

`POST /getWebhookInfo`

Use this method to get current webhook status. Requires no parameters. On success, returns a [WebhookInfo](https://core.telegram.org/bots/api/#webhookinfo) object. If the bot is using [getUpdates](https://core.telegram.org/bots/api/#getupdates), will return an object with the *url* field empty.

## Response `200`

- object
  - `ok` boolean, required
  - `result` WebhookInfo, required — Contains information about the current status of a webhook.
    - `url` string, required — Webhook URL, may be empty if webhook is not set up
    - `has_custom_certificate` boolean, required — True, if a custom certificate was provided for webhook certificate checks
    - `pending_update_count` integer, required — Number of updates awaiting delivery
    - `ip_address` string — *Optional*. Currently used webhook IP address
    - `last_error_date` integer — *Optional*. Unix time for the most recent error that happened when trying to deliver an update via webhook
    - `last_error_message` string — *Optional*. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
    - `max_connections` integer — *Optional*. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
    - `allowed_updates` string[] — *Optional*. A list of update types the bot is subscribed to. Defaults to all update types

## Other responses

- `default`

---

[API](https://skmtc.net/stoplight/apis/telegram-bot-api.md) · [All operations](https://skmtc.net/stoplight/apis/telegram-bot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stoplight/telegram-bot-api/versions/be4bbb34b64a/schema)
