---
title: "Create a Webhook"
method: POST
path: "/webhook"
tags: ["Webhook"]
---

# Create a Webhook

`POST /webhook`

## Request body

- object
  - `basic_secret` string — The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.
  - `basic_user` string — The user value sent as part of basic `Authorization` for request validation. Use is optional.
  - `event` string, required — The event to listen for. [Available events](/reference/webhook-events)
  - `url` string, required — The HTTPS URL where the event notification will be sent
  - `userdata` object — Optional arbitrary user data

## Response `200`

The webhook created

- object
  - `basic_secret` string — The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.
  - `basic_user` string — The user value sent as part of basic `Authorization` for request validation. Use is optional.
  - `error` string — The error reason, if the webhook has transitioned status to `error`
  - `event` string — The event to listen for. [Available events](/reference/webhook-events)
  - `id` string — Unique identifier for object
  - `status` string — One of `enabled`, `disabled`, or `error`. Filterable.
  - `url` string — The HTTPS URL where the event notification will be sent
  - `userdata` object — Optional arbitrary user data

---

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