DestinationsDestination health

Destination health

Per-destination health for the calling location, joining live action metadata with delivery aggregates over a rolling window. Both agency and viewer keys may read.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/destinations/health?hours=24&action_id=123e4567-e89b-12d3-a456-426614174000" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": [
    {
      "action_id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "John Doe",
      "destination_type": "webhook",
      "enabled": true,
      "trigger_count": 10,
      "last_triggered_at": "2024-12-25T10:00:00Z",
      "last_error": "example_string",
      "credential_ok": true,
      "total": 42,
      "successes": 42,
      "failures": 42,
      "skipped": 42,
      "success_rate": 3.14,
      "avg_duration_ms": 3.14,
      "p95_duration_ms": 3.14,
      "avg_queue_lag_ms": 3.14,
      "last_delivery_at": "2024-12-25T10:00:00Z"
    }
  ]
}
GET
/client/v1/destinations/health
GET
Base URLstring

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

Bearer Token
Bearer Tokenstring
Required

Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need destinations:read or destinations:write. See Using an mcp_ key over HTTP.

Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need destinations:read or destinations:write. See Using an mcp_ key over HTTP.
query
hoursinteger

Rolling window in hours. Default 24, min 1, max 720.

Min: 1 • Max: 720
query
action_idstring

Filter to a single destination id.

Format: uuid
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need destinations:read or destinations:write. See Using an mcp_ key over HTTP.

Query Parameters

hoursinteger

Rolling window in hours. Default 24, min 1, max 720.

action_idstring

Filter to a single destination id.

Responses

successboolean
dataarray