---
title: "Configure the agent account-deletion policy"
method: POST
path: "/v1/accounts/agent-delete-policy"
tags: ["account"]
---

# Configure the agent account-deletion policy

`POST /v1/accounts/agent-delete-policy`

## Request

- Base URL: `https://api.replylayer.ai`
- URL: `https://api.replylayer.ai/v1/accounts/agent-delete-policy`
- Auth: HTTP bearer

## Response `200`

Success

- object
  - `agent_delete_messages_enabled` boolean, required

## Other responses

- `400`: Validation error
- `401`: Missing or invalid API key (code: UNAUTHORIZED)
- `403`: Forbidden
- `429`: Rate limited (code: RATE_LIMITED)
- `500`: Internal error (code: INTERNAL_ERROR)
- `503`: Temporarily unavailable

---

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