API Keys
Banking
Connect OnlyFans Account
Mass Messaging
Media Vault
Media Vault Lists
Notifications
Payouts
Post Comments
Post Labels
Posts
Public Profiles
Saved For Later (Messages)
Saved For Later (Posts)
Statistics | Reach
Statistics | Statements
Tracking Links
Transactions
Trial Links
Users
Webhooks
Create Webhook
Create a new webhook for your Team
POST
/
api
/
webhooks
Create Webhook
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"endpoint_url": "https://example.com",
"signing_secret": 7,
"events": [
"accounts.connected",
"subscriptions.new"
]
}'
Copy
{
"id": "wh_abc123",
"url": "https://example.com",
"has_signing_secret": true,
"events": [
"accounts.connected",
"subscriptions.new"
],
"created_at": "2025-01-01T00:00:00.000000Z"
}
Authorizations
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Body
application/json
Response
200 - application/json
The response is of type object
.
Create Webhook
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"endpoint_url": "https://example.com",
"signing_secret": 7,
"events": [
"accounts.connected",
"subscriptions.new"
]
}'
Copy
{
"id": "wh_abc123",
"url": "https://example.com",
"has_signing_secret": true,
"events": [
"accounts.connected",
"subscriptions.new"
],
"created_at": "2025-01-01T00:00:00.000000Z"
}
Assistant
Responses are generated using AI and may contain mistakes.