---
title: "Get Last Applied Rule"
method: GET
path: "/api/v1/runs/rules/{rule_id}/last_applied"
tags: ["run"]
---

# Get Last Applied Rule

`GET /api/v1/runs/rules/{rule_id}/last_applied`

Get the last applied rule.

## Path parameters

- `rule_id` string, uuid, required

## Query parameters

- `backfill` boolean

## Response `200`

Successful Response

- RuleLogSchema — Run rules log schema.
  - `rule_id` string, uuid, required
  - `run_id` string, uuid, required
  - `run_name` string, nullable
  - `run_type` string, nullable
  - `run_session_id` string, uuid, nullable
  - `start_time` string, date-time, required
  - `end_time` string, date-time, required
  - `application_time` string, date-time, nullable
  - `add_to_annotation_queue` RuleLogActionResponse
    - `outcome` 'success' | 'skipped' | 'error', required
    - `payload` object, nullable
  - `add_to_dataset` RuleLogActionResponse
    - `outcome` 'success' | 'skipped' | 'error', required
    - `payload` object, nullable
  - `evaluators` RuleLogActionResponse
    - `outcome` 'success' | 'skipped' | 'error', required
    - `payload` object, nullable
  - `alerts` RuleLogActionResponse
    - `outcome` 'success' | 'skipped' | 'error', required
    - `payload` object, nullable
  - `webhooks` RuleLogActionResponse
    - `outcome` 'success' | 'skipped' | 'error', required
    - `payload` object, nullable
  - `extend_only` RuleLogActionResponse
    - `outcome` 'success' | 'skipped' | 'error', required
    - `payload` object, nullable
  - `thread_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-27** `a0acb3a6a101` — 1 info
  - added the optional property `extend_only` to the response with the `200` status

[Change history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/runs/rules/:rule_id/last_applied/get.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/a0acb3a6a101?raw)
