Webhooks
Create a new webhook subscription. Maximum 10 webhooks per user. Webhooks are automatically disabled after 10 consecutive delivery failures.
Authorization
bearerAuth AuthorizationBearer <token>
API key with fh_ prefix. Pass as Authorization: Bearer fh_...
In: header
Request Body
application/json
url*string
Webhook endpoint URL
Format
urievents*array<>
Events to subscribe to
Response Body
application/json
application/json
curl -X POST "https://app.feedhorizon.dev/api/v1/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com", "events": [ "post.published" ] }'{
"data": {
"id": "string",
"userId": "string",
"url": "http://example.com",
"events": [
"post.published"
],
"secret": "string",
"isActive": true,
"failCount": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "string",
"details": [
{
"field": "string",
"message": "string"
}
]
}
}