We just released our native n8n integration!ยป Try now
OnlyFans API
Webhooks

Update Webhook

Update an existing webhook

PUT
/api/webhooks/{webhook_id}
AuthorizationBearer <token>

Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys

In: header

Path Parameters

webhook_id*string

The ID of the webhook

Request Body

application/json

endpoint_url*string

The URL of your webhook endpoint.

events*array<string>

An array of webhook events to subscribe to. For all options, refer to our List Available Events endpoint.

enabled?boolean|null

Optionally, enabled/disable the webhook. This will stop/resume the sending of events, without having to delete the webhook.

Response Body

application/json

curl -X PUT "https://app.onlyfansapi.com/api/webhooks/wh_abc123" \  -H "Content-Type: application/json" \  -d '{    "endpoint_url": "https://example.com",    "events": [      "accounts.connected",      "subscriptions.new"    ]  }'
{
  "data": {
    "id": "wh_abc123",
    "url": "https://example.com",
    "events": [
      "accounts.connected",
      "subscriptions.new"
    ],
    "has_signing_secret": true,
    "enabled": false,
    "created_at": "2025-01-01T00:00:00.000000Z"
  },
  "_meta": {
    "_credits": {
      "used": 0,
      "balance": 1000000016,
      "note": "Always"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    },
    "_rate_limits": {
      "limit_minute": 1000,
      "limit_day": 50000,
      "remaining_minute": 996,
      "remaining_day": 49990
    }
  }
}