List all webhooks
Retrieve a paginated list of all webhooks for your organization
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Query parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns a list of webhooks |
| 401 | Unauthorized | Unauthorized |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request GET \
--url https://api.onlineornot.com/v1/webhooks \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
Response
{
"result": [
{
"id": "a1b2c3d4",
"url": "https://api.example.com/webhooks/onlineornot",
"description": "Production webhook for incident notifications",
"events": [
"status_page.incident.started",
"status_page.incident.resolved"
],
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-15T10:30:00.000Z",
"status_pages": [
{
"id": "x9y8z7w6",
"name": "My Status Page"
}
]
}
],
"result_info": {
"page": 1,
"per_page": 20,
"count": 1,
"total_count": 1
},
"success": true,
"errors": [],
"messages": []
}
Create a webhook
Create a new webhook to receive event notifications
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Body parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 201 | Created | Webhook created successfully |
| 401 | Unauthorized | Unauthorized |
| 403 | Forbidden | Forbidden - Webhooks require a paid plan |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request POST \
--url https://api.onlineornot.com/v1/webhooks \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data '{"url":"https://api.example.com/webhooks/onlineornot","events":["status_page.incident.started","status_page.incident.resolved"]}'
Response
{
"result": {
"id": "a1b2c3d4",
"url": "https://api.example.com/webhooks/onlineornot",
"description": "Production webhook for incident notifications",
"events": [
"status_page.incident.started",
"status_page.incident.resolved"
],
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-15T10:30:00.000Z",
"status_pages": [
{
"id": "x9y8z7w6",
"name": "My Status Page"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Retrieve a webhook
Look up detailed information about a specific webhook
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the specified webhook |
| 401 | Unauthorized | Unauthorized |
| 404 | Not Found | Webhook not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request GET \
--url https://api.onlineornot.com/v1/webhooks/a1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
Response
{
"result": {
"id": "a1b2c3d4",
"url": "https://api.example.com/webhooks/onlineornot",
"description": "Production webhook for incident notifications",
"events": [
"status_page.incident.started",
"status_page.incident.resolved"
],
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-15T10:30:00.000Z",
"status_pages": [
{
"id": "x9y8z7w6",
"name": "My Status Page"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Modify a webhook
Update the configuration of an existing webhook
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
Body parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Webhook updated successfully |
| 401 | Unauthorized | Unauthorized |
| 404 | Not Found | Webhook not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request PATCH \
--url https://api.onlineornot.com/v1/webhooks/a1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data '{"url":"https://api.example.com/webhooks/new-endpoint"}'
Response
{
"result": {
"id": "a1b2c3d4",
"url": "https://api.example.com/webhooks/onlineornot",
"description": "Production webhook for incident notifications",
"events": [
"status_page.incident.started",
"status_page.incident.resolved"
],
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-15T10:30:00.000Z",
"status_pages": [
{
"id": "x9y8z7w6",
"name": "My Status Page"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Delete a webhook
Permanently delete a webhook
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the deleted webhook's ID |
| 401 | Unauthorized | Unauthorized |
| 404 | Not Found | Webhook not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request DELETE \
--url https://api.onlineornot.com/v1/webhooks/a1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
Response
{
"result": {
"id": "a1b2c3d4"
},
"success": true,
"errors": [],
"messages": []
}