---
title: "Apply Policy Preset"
method: POST
path: "/api/v2/agents/{agent_id}/policy/preset"
tags: ["Sessions & Agents", "Memory Operations"]
---

# Apply Policy Preset

`POST /api/v2/agents/{agent_id}/policy/preset`

## Request

- The document declares no server URL.
- Auth: none declared

Adopt a predefined policy bundle as the agent's policy (Session-based).

Overwrites any existing policy. Nothing expires until a sweep runs.

Requires:
- X-Session-Token: {session_token}

## Path parameters

- `agent_id` string, required

## Headers

- `x-session-token` string, nullable
- `authorization` string, nullable
- `X-Api-Key` string, nullable

## Cookies

- `memanto_session_token` string, nullable

## Request body

- PolicyPresetRequest: Request body for adopting a predefined policy bundle.
  - `name` string, required: Preset name, e.g. 'balanced'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-01** `4dbab4daf6d3`: 1 info
  - added the new optional `header` request parameter `authorization`
- **2026-08-20** `7d62b984fff2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/changes/api/v2/agents/:agent_id/policy/preset/post.md)

---

[API](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love.md) - [All operations](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/llms.txt) - [OpenAPI document](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/revisions/ef842776283e?raw)
