---
title: "List a rule's decisions"
method: GET
path: "/email-rules/{id}/decisions"
tags: ["Email Rules"]
---

# List a rule's decisions

`GET /email-rules/{id}/decisions`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/email-rules/{id}/decisions`
- Auth: HTTP bearer

What the rule decided for each email it was evaluated against, newest first: whether it matched, whether it nearly did, how each part decided and the answers to its questions. Only decisions on emails the caller can read are listed. Needs mail:read, a credential acting as a member with their full access (API keys, agent keys and narrowed tokens are refused), and the email rules feature on the organization.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

List a rule's decisions

- object
  - `success` true, required
  - `data` object[], required
    - `id` string, uuid, required
    - `email_id` string, uuid, required
    - `rule_version` integer, required
    - `classification_id` string, uuid, required
    - `matched` boolean, required
    - `near_miss` boolean, required: The rule did not match, but all of its parts except one held.
    - `parts` unknown[], required: How each top-level part of the rule decided.
      - unknown
    - `question_answers` unknown[], required: The answers to the rule's own questions, when they were asked.
      - unknown
    - `created_at` string, date-time, required

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) - [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primitive/apis/primitive-api/revisions/bce409c97acb?raw)
