CorrelationVocabulary and parameters

Vocabulary and parameters

The fixed metric ids, the metric families, the grains, and every accepted parameter. Costs no query.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/correlation/options" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "grains": [
    "day",
    "week",
    "month"
  ],
  "fixed_metrics": [
    {
      "id": "spend",
      "label": "Ad spend (Meta)",
      "unit": "count",
      "source": "events",
      "available": true,
      "occurrences": 42
    }
  ],
  "metric_families": [
    {}
  ],
  "params": {}
}
GET
/client/v1/correlation/options
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 correlation:read. See Using an mcp_ key over HTTP.

Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need correlation:read. See Using an mcp_ key over HTTP.
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 correlation:read. See Using an mcp_ key over HTTP.

Responses

successboolean
grainsstring[]
fixed_metricsarray
metric_familiesobject[]
paramsobject