---
title: "setWebhook"
method: POST
path: "/bot{token}/setWebhook"
---

# setWebhook

`POST /bot{token}/setWebhook`

Use this method to specify a url and receive incoming updates via an outgoing webhook.

## Path parameters

- `token` string, required

## Request body

- object
  - `url` string — HTTPS url to send updates to. Use an empty string to remove webhook integration
  - `certificate` string, binary — Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide https://core.telegram.org/bots/self-signed for details.

## Response `200`

200

- object
  - `ok` boolean
  - `result` boolean
  - `description` string

## Other responses

- `400` — 400

---

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