---
title: "Retrieve a rule"
method: GET
path: "/automation-rules/{id}"
tags: ["Automation"]
---

# Retrieve a rule

`GET /automation-rules/{id}`

## Request

- Base URL: `https://muro.chat/api/v1`
- URL: `https://muro.chat/api/v1/automation-rules/{id}`
- Auth: HTTP bearer

## Response `200`

The rule.

- AutomationRule
  - `object` 'automation_rule'
  - `id` string
  - `name` string
  - `enabled` boolean
  - `priority` integer
  - `trigger` 'conversation.created' | 'message.created'
  - `conditions` RuleConditions
    - `match` 'all' | 'any'
    - `items` object[]
      - `field` 'content' | 'email' | 'name' | 'website_id' | 'tag'
      - `op` 'contains' | 'equals' | 'regex' | 'exists'
      - `value` string
  - `actions` object[]
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `404`: Not found.

---

[API](https://skmtc.dev/muro/apis/muro-rest-api.md) · [All operations](https://skmtc.dev/muro/apis/muro-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/muro/apis/muro-rest-api/revisions/94ccdc79d61a?raw)
