---
title: "Get the most recent rule backup for an agent"
method: GET
path: "/v1/agents/{agent_id}/rules/backup"
tags: ["rules"]
---

# Get the most recent rule backup for an agent

`GET /v1/agents/{agent_id}/rules/backup`

## Request

- Base URL: `https://api.spendnod.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.spendnod.com/v1/agents/{agent_id}/rules/backup`
- Auth: none declared

## Path parameters

- `agent_id` string, uuid, required

## Response `200`

Successful Response

- RuleBackupResponse
  - `id` string, uuid, required
  - `agent_id` string, uuid, required
  - `user_id` string, uuid, required
  - `rules_json` object[], required
  - `template_applied` string, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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