Posthook is a service that enables developers to automate and streamline post-receive tasks and processes in their software development workflow. It is commonly used in scenarios where actions need to be triggered automatically after a code repository receives new commits or changes.
/v1/hooks
{ "Content-Type": "application/json" }
{ "data": { "id": "0525baf7-79f9-4991-bb39-6a601ead00e5", "path": "/webhooks/ph/event_reminder", "data": { "eventID": 25 }, "postAt": "2018-06-15T21:00:00Z", "status": "pending", "createdAt": "2018-04-09T20:43:24.321778Z", "updatedAt": "2018-04-09T20:43:24.321778Z" } }
/v1/hooks
{ "Content-Type": "application/json" }
{ "data": [ { "id": "8e3aa909-fb84-4495-944d-a4c192defe66", "path": "/webhooks/ph/event_reminder", "domain": "posthook.io", "data": { "eventID": 25 }, "postAt": "2018-07-19T21:00:00Z", "status": "pending", "createdAt": "2018-04-30T17:45:20.68114Z", "updatedAt": "2018-04-30T17:45:20.68114Z" }, { "id": "c1ec9560-65fc-4b88-bfe0-1bc6e56cb3db", "path": "/webhooks/ph/event_reminder", "domain": "posthook.io", "data": { "eventID": 25 }, "postAt": "2018-07-17T21:00:00Z", "status": "pending", "createdAt": "2018-04-30T17:45:16.097812Z", "updatedAt": "2018-04-30T17:45:16.097812Z" }, { "id": "6ab4d4d5-4767-452d-b72f-6ec40562b27e", "path": "/webhooks/ph/event_reminder", "domain": "posthook.io", "data": { "eventID": 25 }, "postAt": "2018-07-15T21:00:00Z", "status": "pending", "createdAt": "2018-04-30T17:45:06.475047Z", "updatedAt": "2018-04-30T17:45:06.475047Z" } ] }
/v1/hooks/{hook_id}
{ "Content-Type": "application/json" }
{ "data": { "id": "{{pathParam 'hook_id'}}, "path": "/webhooks/ph/event_reminder", "domain": "posthook.io", "data": { "eventID": 25 }, "postAt": "2018-07-19T21:00:00Z", "status": "pending", "createdAt": "2018-04-30T17:45:20.68114Z", "updatedAt": "2018-04-30T17:45:20.68114Z" } }
/v1/hooks/{hook_id}
{ "Content-Type": "application/json" }
{ "data": {} }
/v1/projects/
{ "Content-Type": "application/json" }
{ "name": "updated-project", "domain": "api.example.com", "headerAuthorization": "", "minRetries": 1, "retryDelaySecs": 5 }
{ "Content-Type": "application/json" }
{ "name": "updated-project", "domain": "api.example.com", "headerAuthorization": "", "minRetries": 1, "retryDelaySecs": 5 }