Posthook Mock Server
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.
Use this hosted mock server to simulate Posthook APIs without authentication, API keys, or extra dependencies. Point your code or SDK to the Beeceptor base URL, preferably through an environment variable or feature flag, and switch back to the production API when ready.
This keeps your integration code consistent across local development, QA, demos, and production.
POST
/v1/hooksSchedule a Hook
200
Request Headers:
N/A
N/A
Response Headers:
{
"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"
}
}GET
/v1/hooksGet Hooks
200
Request Headers:
N/A
N/A
Response Headers:
{
"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"
}
]
}GET
/v1/hooks/{hook_id}200
Request Headers:
N/A
N/A
Response Headers:
{
"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"
}
}DELETE
/v1/hooks/{hook_id}200
Request Headers:
N/A
N/A
Response Headers:
{
"Content-Type": "application/json"
}{
"data": {}
}PUT
/v1/projects/200
Request Headers:
{
"Content-Type": "application/json"
}{
"name": "updated-project",
"domain": "api.example.com",
"headerAuthorization": "",
"minRetries": 1,
"retryDelaySecs": 5
}Response Headers:
{
"Content-Type": "application/json"
}{
"name": "updated-project",
"domain": "api.example.com",
"headerAuthorization": "",
"minRetries": 1,
"retryDelaySecs": 5
}