---
title: "The rules this agent works under"
method: GET
path: "/v1/authority/rules"
---

# The rules this agent works under

`GET /v1/authority/rules`

## Request

- Base URL: `https://api.doubleoh.ai`
- URL: `https://api.doubleoh.ai/v1/authority/rules`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Query parameters

- `agent` string

## Response `200`

`systemPrompt` is the rules as plain sentences, ready for the agent's context.

- object
  - `rules` object[]
    - `sentence` string
    - `effect` string
    - `concepts` string[]
    - `limit` string, nullable: The amount limit in words, with its window: "up to $500 a day". A rule's match.window is hour, day, week or transaction; an "up to" limit counts a day unless it says otherwise, a running total per agent and currency.
  - `unknownActions` 'risky' | 'ask' | 'allow': What happens to an action no rule covers: risky (a person decides when it moves money, deletes something or contacts someone), ask (a person always decides), allow.
  - `systemPrompt` string

---

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