---
title: "Create a webhook configuration"
method: POST
path: "/payout/account/webhooks"
tags: ["Account"]
---

# Create a webhook configuration

`POST /payout/account/webhooks`

This **POST** endpoint is used to create a new webhook configuration for your account. <br>
To set up a webhook, provide a target url and an array of `event_types` that the webhook should listen to. <br>
Upon successful creation, the response will include a unique `webhook_token` associated with the newly registered webhook as well as `webhook_secret` which will be used to encrypt the incoming payloads. <br>
This token can be used for future management of the webhook.

## Request body

- object
  - `webhook_url` string, required — The URL that will receive the webhook payloads
  - `event_types` string[], required — The type of events the webhook will receive notifications for

## Response `201`

Created

- object
  - `webhook_token` string, required — The token associated with this webhook configuration
  - `webhook_secret` string, required — A secret key used to encrypt the data transmitted via the webhook. The resulting signature is included in the `X-MassPay-Signature` header.

## Other responses

- `400` — Bad request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not found.
- `405` — Method Not Allowed.
- `500` — Internal server error.
- `504` — Gateway Time-out.

---

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