Skip to content
bynhDocs

Get response times

GET/workspaces/{workspace}/status/monitors/{monitor}/response-times

Returns response times for a chart: 5-minute averages for 24 hours, hourly for 7 days, daily for 30 or 90 days. Checks during maintenance are left out of the 24h and 7d views.

Authentication

Send an API token as a bearer token. This endpoint needs a read token, made by any member of the workspace. Create one in My account → API tokens; see scopes and roles.

Authorization: Bearer 42|bynh_pat_•••••••Header

Path parameters

  • workspacestringRequired

    Your workspace slug, e.g. dokan.

  • monitorintegerRequired

    Monitor id.

Query parameters

  • rangeenumdefault 24h

    Time window. One of 24h, 7d, 30d, 90d.

Response

200 OK

Points oldest first, plus meta {range, slow_after_ms}.

  • atstringBucket start, ISO 8601.
  • msinteger|nullAverage response time.
  • okbooleanEvery check in the bucket passed (daily: no failures that day).

Rate limits

This endpoint counts toward your general limit of 120 requests a minute. When you go over, wait for the number of seconds in Retry-After.

Errors

401The token is missing, wrong, revoked or expired.
404The token belongs to another workspace, or its owner is no longer a member.
422range is not one of 24h, 7d, 30d, 90d.

Every error is JSON with a message. See Errors.

Next →List incidents
curl "https://api.bynh.io/api/v1/workspaces/dokan/status/monitors/1/response-times?range=7d" \
  -H "Authorization: Bearer $BYNH_TOKEN" \
  -H "Accept: application/json"

Response200 OK

application/json
{
  "data": [
    {
      "at": "2026-10-01T07:50:00+00:00",
      "ms": 179,
      "ok": true
    },
    {
      "at": "2026-10-01T07:55:00+00:00",
      "ms": 185,
      "ok": true
    }
  ],
  "meta": {
    "range": "24h",
    "slow_after_ms": 1500
  }
}

Examples use Dokan, a sample workspace. Responses are shortened where lists are long.