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,
      "degradedSeconds": 123,
      "uptimePercentage": 123,
      "incidents": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "title": "<string>",
          "impact": "<string>"
        }
      ]
    }
  ],
  "hasNext": true,
  "hasPrev": true,
  "totalElements": 123,
  "totalPages": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.devhelm.io/llms.txt

Use this file to discover all available pages before exploring further.

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>

Preset time window (used when from is omitted)

Available options:
7d,
30d,
90d,
1y
from
string<date>

Explicit window start (ISO date); overrides period

to
string<date>

Explicit window end (ISO date); defaults to today

Response

OK

data
object[]
required
hasNext
boolean
required
hasPrev
boolean
required
totalElements
integer<int64> | null
totalPages
integer<int32> | null