# RetentionService

> The RetentionService methods and their request and response messages.

Source: https://engramsfactory.com/docs/api/retention/

Generated from [`retention.proto`](https://github.com/cortexapps/engrams/blob/main/crates/engram-protocol/proto/engram/app/v1/retention.proto). Every method is
`POST /rpc/engram.app.v1.RetentionService/<Method>` with a JSON or protobuf body and an
`x-api-key` header.

## Methods

| Method | Request | Response |
|---|---|---|
| `GetRetentionPolicy` | [`GetRetentionPolicyRequest`](#getretentionpolicyrequest) | [`GetRetentionPolicyResponse`](#getretentionpolicyresponse) |
| `SetRetentionPolicy` | [`SetRetentionPolicyRequest`](#setretentionpolicyrequest) | [`SetRetentionPolicyResponse`](#setretentionpolicyresponse) |

## Messages

### GetRetentionPolicyRequest

No fields.

### GetRetentionPolicyResponse

| Field | Type |
|---|---|
| `policy` | [`RetentionPolicy`](#retentionpolicy) |

### RetentionPolicy

| Field | Type |
|---|---|
| `run_detail_days` | `int32` |

### SetRetentionPolicyRequest

| Field | Type |
|---|---|
| `policy` | [`RetentionPolicy`](#retentionpolicy) |

### SetRetentionPolicyResponse

| Field | Type |
|---|---|
| `policy` | [`RetentionPolicy`](#retentionpolicy) |
