---
title: "GET /rules/{id}"
method: GET
path: "/rules/{id}"
---

# GET /rules/{id}

`GET /rules/{id}`

Get a single automation rule for the scoped inbox account.

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `rule` Rule, required
    - `id` string, required
    - `name` string, required
    - `enabled` boolean, required
    - `runOnThreads` boolean, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `condition` RuleCondition, required
      - `conditionalOperator` 'AND' | 'OR', nullable
      - `aiInstructions` string, nullable
      - `static` object, nullable
        - `from` string, nullable
        - `to` string, nullable
        - `subject` string, nullable
    - `actions` RuleAction[], required
      - `type` 'LABEL' | 'ARCHIVE' | 'MARK_READ' | 'STAR' | 'DRAFT_EMAIL' | 'DRAFT_MESSAGING_CHANNEL' | 'REPLY' | 'FORWARD' | 'SEND_EMAIL' | 'MARK_SPAM' | 'DIGEST' | 'CALL_WEBHOOK' | 'MOVE_FOLDER' | 'NOTIFY_MESSAGING_CHANNEL' | 'NOTIFY_SENDER', required
      - `messagingChannelId` string, nullable
      - `fields` RuleActionFields
        - `label` string, nullable
        - `to` string, nullable
        - `cc` string, nullable
        - `bcc` string, nullable
        - `subject` string, nullable
        - `content` string, nullable
        - `webhookUrl` string, nullable
        - `folderName` string, nullable
      - `delayInMinutes` number, nullable

---

[API](https://skmtc.dev/getinboxzero/apis/inbox-zero-api.md) · [All operations](https://skmtc.dev/getinboxzero/apis/inbox-zero-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getinboxzero/inbox-zero-api/revisions/e0fa35a97a28/schema)
