---
title: "Create Webhook"
method: POST
path: "/api/webhooks"
tags: ["Webhooks"]
---

# Create Webhook

`POST /api/webhooks`

Create a new webhook for your Team

## Request body

- object
  - `endpoint_url` string, required — The URL of your webhook endpoint.
  - `signing_secret` string, nullable — Optionally, add a signing secret to protect your webhook.
  - `events` string[], required — An array of webhook events to subscribe to. Options: `messages.received`, `messages.sent`, `messages.ppv.unlocked`, `subscriptions.new`, `users.typing`, `posts.liked`, `accounts.connected`, `accounts.reconnected`, `accounts.session_expired`, `accounts.authentication_failed`, `accounts.otp_code_required`, `accounts.face_otp_required`

## Response `200`

- object
  - `id` string
  - `url` string
  - `has_signing_secret` boolean
  - `events` string[]
  - `created_at` string

---

[API](https://skmtc.dev/onlyfansapi/apis/onlyfans-api.md) · [All operations](https://skmtc.dev/onlyfansapi/apis/onlyfans-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onlyfansapi/onlyfans-api/revisions/03f828c1cf0d/schema)
