-
Notifications
You must be signed in to change notification settings - Fork 4
POST hook generate
Igor Balos edited this page Jun 19, 2018
·
5 revisions
Endpoint
/hook/generate - POST
Description
This endpoint allows you to create webhook endpoint that you can use individually for testing. You can generate any number of webhook request URLs.
Example
Request
curl -X POST 'http://localhost:8888/hook/generate'
Response
{
"Message":"New webhook endopint created.",
"HookUrl":"http://localhost:8888/hook/20bf06f7-aa94-a3ec-89cd-7710f1e1fc83"
}
Querystring parameters
- name={endpoint_name} - allows you to create endpoint with specific name
Request
curl -X POST 'http://localhost:8888/hook/generate?name=test'
Response
{
"Message":"New webhook endopint created.",
"HookUrl":"http://localhost:8888/hook/test"
}
Sinhook web hook testing app.