API & Integrations

REST API Reference

Complete reference for all PingBase API endpoints. All authenticated endpoints require a Bearer token in the Authorization header.

Base URL

https://pingbase.online

Response Format

All API responses follow a consistent format:

Success Response

{
  "success": true,
  "data": { ... },
  "meta": { "total": 10, "page": 1 }
}

Error Response

{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid request body",
    "details": [...]
  }
}

Endpoints

GET/api/public/v1/status

List all public status pages.

Auth: None
GET/api/v1/status/:slug

Get a specific status page with components, active incidents, and maintenance.

Auth: None (public)
POST/api/v1/status/:slug/subscribe

Subscribe an email address to status page notifications.

Auth: None (public)
GET/api/v1/widget/:slug

Get status badge (SVG) or JSON summary for embedding.

Auth: None (public)
GET/api/v1/components

List all components for the authenticated organization.

Auth: Bearer token (read:status)
POST/api/v1/components

Create a new component.

Auth: Bearer token (write:components)
PATCH/api/v1/components/:id

Update a component (name, status, description, etc.).

Auth: Bearer token (write:components)
GET/api/v1/incidents

List all incidents for the authenticated organization.

Auth: Bearer token (read:status)
POST/api/v1/incidents

Create a new incident with affected components.

Auth: Bearer token (write:incidents)
PATCH/api/v1/incidents/:id

Update an incident (status, impact, post an update message).

Auth: Bearer token (write:incidents)
GET/api/v1/monitors

List all monitors for the authenticated organization.

Auth: Bearer token (manage:monitors)
POST/api/v1/monitors

Create a new monitor.

Auth: Bearer token (manage:monitors)
GET/api/v1/analytics

Get uptime metrics, response times, and incident statistics.

Auth: Bearer token (read:analytics)

HTTP Status Codes

CodeMeaning
200Success
201Created
400Bad Request — validation error
401Unauthorized — missing or invalid API key
403Forbidden — insufficient scopes
404Not Found
429Rate limit exceeded
500Internal server error