---
title: "List all rule outcomes"
method: GET
path: "/api/v2/scorecard/outcomes"
tags: ["Scorecards"]
---

# List all rule outcomes

`GET /api/v2/scorecard/outcomes`

Fetches all rule outcomes.

## Query parameters

- `page[size]` integer
- `page[offset]` integer
- `include` string
- `fields[outcome]` string
- `fields[rule]` string
- `filter[outcome][service_name]` string
- `filter[outcome][state]` string
- `filter[rule][enabled]` boolean
- `filter[rule][id]` string
- `filter[rule][name]` string

## Response `200`

OK

- OutcomesResponse — Scorecard outcomes - the result of a rule for a service.
  - `data` OutcomesResponseDataItem[] — List of rule outcomes.
    - `attributes` OutcomesBatchResponseAttributes — The JSON:API attributes for an outcome.
      - `created_at` string, date-time — Creation time of the rule outcome.
      - `modified_at` string, date-time — Time of last rule outcome modification.
      - `remarks` string — Any remarks regarding the scorecard rule's evaluation, and supports HTML hyperlinks.
      - `service_name` string — The unique name for a service in the catalog.
      - `state` 'pass' | 'fail' | 'skip' — The state of the rule evaluation.
    - `id` string — The unique ID for a rule outcome.
    - `relationships` RuleOutcomeRelationships — The JSON:API relationship to a scorecard rule.
      - `rule` RelationshipToOutcome — The JSON:API relationship to a scorecard outcome.
        - `data` RelationshipToOutcomeData — The JSON:API relationship to an outcome, which returns the related rule id.
          - `id` string — The unique ID for a scorecard rule.
          - `type` 'rule' — The JSON:API type for scorecard rules.
    - `type` 'outcome' — The JSON:API type for an outcome.
  - `included` OutcomesResponseIncludedItem[] — Array of rule details.
    - `attributes` OutcomesResponseIncludedRuleAttributes — Details of a rule.
      - `name` string — Name of the rule.
      - `scorecard_name` string — The scorecard name to which this rule must belong.
    - `id` string — The unique ID for a scorecard rule.
    - `type` 'rule' — The JSON:API type for scorecard rules.
  - `links` OutcomesResponseLinks — Links attributes.
    - `next` string — Link for the next set of results.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
