Creates a new webhook.

Resource url

https://Your project.userecho.com/api/v2/hooks.json

Parameters

Parameter Value Required? Default Options Description
event String yes Get available events with GET hooks/events Event type
target_url String yes Target URL that will be called

Request example

{
    "event": "topic.created",
    "target_url": "https://mysite.com/events/handler/"
}

Response example

{
    "target_url": "https://mysite.com/events/handler/", 
    "id": 12, 
    "events": {
        "comment.created": true, 
        "topic.satisfaction_received": false, 
        "comment.accepted": false, 
        "topic.deleted": false, 
        "topic.created": false, 
        "comment.deleted": false, 
        "topic.accepted": false
    }
}
© 2023 Stamul, LLC. All rights reserved.