Skip to main content
GET
/
api
/
v1
/
services
/
{slugOrId}
/
components
/
{componentId}
/
uptime
Get daily uptime data for a component
curl --request GET \
  --url https://api.devhelm.io/api/v1/services/{slugOrId}/components/{componentId}/uptime \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "date": "2023-11-07T05:31:56Z",
      "partialOutageSeconds": 123,
      "majorOutageSeconds": 123,
      "uptimePercentage": 123,
      "eventsJson": "<string>",
      "source": "<string>"
    }
  ],
  "hasNext": true,
  "hasPrev": true
}

Authorizations

Authorization
string
header
required

API key (dh_live_...) or Auth0 JWT token

Path Parameters

slugOrId
string
required
componentId
string<uuid>
required

Query Parameters

period
enum<string>

Time window

Available options:
7d,
30d,
90d,
1y

Response

200 - */*

OK

data
object[]
hasNext
boolean
hasPrev
boolean