---
title: "Set Webhook"
method: POST
path: "/webhook/set/{instance}"
tags: ["Webhook Controller"]
---

# Set Webhook

`POST /webhook/set/{instance}`

Set Webhook for instance

## Path parameters

- `instance` string, required

## Request body

- object
  - `enabled` boolean, required — enable webhook to instance
  - `url` string, required — Webhook URL
  - `webhookByEvents` boolean, required — Enables Webhook by events
  - `webhookBase64` boolean, required — Sends files in base64 when available
  - `events` string[], required — Events to be sent to the Webhook

## Response `201`

Created

- object
  - `webhook` object
    - `instanceName` string — The name of the instance.
    - `webhook` object
      - `url` string — The URL of the webhook.
      - `events` string[] — List of events the webhook is subscribed to.
      - `enabled` boolean — Indicates whether the webhook is enabled.

---

[API](https://skmtc.net/evolution-foundation/apis/evolution-api-2.md) · [All operations](https://skmtc.net/evolution-foundation/apis/evolution-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/evolution-foundation/evolution-api-2/revisions/153363ee7f38/schema)
