ContractsDaily contract results

Daily contract results

One row per contract event per UTC day, as the ~08:00 UTC daily check judged the previous day, newest first. A day with no row was not checked; it is not a pass.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/contracts/history?location_id=example_string&event=example_string&days=30" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "since": "2026-09-19",
    "days": 30,
    "summary": [
      {
        "event": "purchase",
        "days_checked": 30,
        "days_failing": 3,
        "days_no_data": 0,
        "last_status": "ok",
        "last_day": "2024-12-25"
      }
    ],
    "results": [
      {
        "event": "purchase",
        "day": "2026-10-18",
        "status": "ok",
        "no_data_reason": null,
        "total_events": 240,
        "reference_events": 240,
        "min_daily_events": 42,
        "min_required_coverage": 0.62,
        "properties": [
          {
            "key": "value",
            "expected_type": "number",
            "required": true,
            "coverage": 0.62
          }
        ],
        "violations": [
          {
            "key": "value",
            "kind": "missing_required",
            "count": 91,
            "rate": 0.38,
            "detail": "example_string"
          }
        ],
        "sampled": true,
        "checked_at": "2024-12-25T10:00:00Z"
      }
    ],
    "note": "example_string"
  }
}
GET
/client/v1/contracts/history
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need contracts:read or contracts:write. See Using an mcp_ key over HTTP.

Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need contracts:read or contracts:write. See Using an mcp_ key over HTTP.
query
location_idstring

Location to scope to. Required for ak_ keys (or send the X-Location-Id header); ignored for sk_.

query
eventstring

One contract event. Omit for all.

query
daysinteger
Min: 1 • Max: 90
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need contracts:read or contracts:write. See Using an mcp_ key over HTTP.

Query Parameters

location_idstring

Location to scope to. Required for ak_ keys (or send the X-Location-Id header); ignored for sk_.

eventstring

One contract event. Omit for all.

Responses

successboolean
dataobject