Skip to content
Join the waitlist

Decisions

Get Decision

GET/api/v1/decisions/{number}

One decision with its evidence, figures and history.

By QueryRev AI Published Updated 1 min read

Request

Send the key in the Authorization header. Path parameters are written into the address; query parameters are optional.

curl
# One decision with its evidence, figures and historycurl "https://app.queryrev.com/api/v1/decisions/412" \  -H "Authorization: Bearer $QUERYREV_API_KEY"

Parameters

The parameters of this endpoint
  • numberRequired
    Path
    integer, at least 1

Response

One Decision in data, with meta.

The fields of Decision
  • number
    integer
  • id
    string (uuid)
  • site_id
    string (uuid)
  • opportunity_family
    string
  • category
    string
  • type
    string or null
  • family
    string or null
  • action
    string or null
  • candidate_actions
    array of string
  • state
    string
  • state_changed_at
    string (date-time)
  • created_at
    string (date-time)
  • targets
    array of object
  • parameters
    object
  • evidence
    array of object
  • reason_codes
    array of string
  • values
    array of object
  • money_value
    MoneyValue
  • evidence_strength
    object
  • route
    string
  • needs_review_reason
    string or null
  • risk_class
    string
  • reversible
    boolean
  • effort
    integer
  • priority
    Priority
  • due_on
    string or null
  • history
    array of DecisionHistoryEvent
  • related
    array of integer
An example answer, 200
{  "data": {    "number": 412,    "id": "3f6c1a52-8d4e-4b7a-9c21-5e0f7b3d9a14",    "site_id": "9b2e7d41-0c5a-4f8e-8a63-2d1b6c9e4f07",    "opportunity_family": "update_page",    "category": "content",    "type": "update",    "family": "improve",    "action": "refresh_content",    "candidate_actions": [      "refresh_content"    ],    "state": "proposed",    "state_changed_at": "2026-10-28T09:14:00Z",    "created_at": "2026-10-28T09:14:00Z",    "targets": [],    "parameters": {},    "evidence": [],    "reason_codes": [      "decay_clicks"    ],    "values": [],    "money_value": {      "status": "shown",      "name": "Revenue at stake a year",      "figure": {        "kind": "modeled",        "kind_label": "Modeled",        "unit": "currency_per_year",        "low": 6500,        "high": 7300,        "currency": "USD",        "period": null,        "flags": [],        "confidence": {          "basis": "range_from_inputs",          "sample_count": null        }      },      "inputs": []    },    "evidence_strength": {      "level": "strong",      "basis": {}    },    "route": "rule",    "needs_review_reason": null,    "risk_class": "low",    "reversible": true,    "effort": 2,    "priority": {      "score": 0.82,      "rank": 1    },    "due_on": "2026-11-20",    "history": [      {        "from": "2026-10-01",        "to": "2026-10-28",        "action": "approve",        "actor_kind": "person",        "reason": null,        "occurred_at": "2026-10-28T09:14:00Z"      }    ],    "related": []  },  "meta": {    "revenue_view": "full"  }}

Sample values from an example site. Free-form fields, whose entries differ from one item to the next, are shown empty.

Figures and their kinds

The figures in this answer and the kinds each can have
  • data.money_value.figure
Entries that carry their own kind
  • data.evidence[]
    Each entry carries its own kind and kind_label.One piece of evidence: subject, metric, period, value or range, its kind (and kind_label), source and facts.
  • data.values[]
    Each entry carries its own kind and kind_label.
  • data.money_value.inputs[]
    Each entry carries its own kind and kind_label.

Errors

The refusals this endpoint can answer
  • 400
    A parameter or the cursor is not valid (invalid_parameter, invalid_cursor).
  • 401
    No key, or a key that is wrong, revoked or expired (missing_api_key, invalid_api_key).
  • 403
    The workspace's access is suspended, or its plan is one the limits table does not know (plan_unavailable). The API fails closed. A workspace with no subscription is served at the smallest plan's rate, and a read-only one (payment overdue, canceled or ended) still reads at its plan's rate.
  • 404
    Nothing for this address, or nothing the key may read (not_found). A key never learns whether another workspace has it.
  • 429
    Over the plan's requests a minute (rate_limited), or too many refused requests (401 or 403) from one network in a minute: then the answer has Retry-After only.
  • 500
    Something went wrong on our side (internal_error). The answer never carries detail.
  • 503
    The API cannot answer right now (unavailable): a request that cannot be checked or counted is not served. Try again shortly. The answer never carries detail.

In the MCP server

In @queryrev/mcp this endpoint is the tool get_decision, with the same inputs.

Cite this page

A suggested citation. Its link goes to this page, whose address does not change.

QueryRev AI. “Get Decision.” QueryRev AI, 7 Nov 2026. https://queryrev.com/docs/api/get-decision

Related