> ## Documentation Index
> Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GetWorkspaceRetentionPolicyResponse

> TypeScript response type from the HoneyHive API

> **GetWorkspaceRetentionPolicyResponse** = `object`

## Properties

### data

> **data**: `object`

#### effective\_policy

> **effective\_policy**: \{ `experiment_max_age_days`: `number` | `null`; `max_age_days`: `number` | `null`; `scope_id`: `string`; `scope_type`: `"org"` | `"workspace"` | `"project"`; } | `null`

##### Union Members

###### Type Literal

\{ `experiment_max_age_days`: `number` | `null`; `max_age_days`: `number` | `null`; `scope_id`: `string`; `scope_type`: `"org"` | `"workspace"` | `"project"`; }

###### experiment\_max\_age\_days

> **experiment\_max\_age\_days**: `number` | `null`

###### Description

Days to keep an experiment run, counted from the creation of the run. A run expires as a whole, with its sessions and their events. null keeps experiment runs indefinitely.

###### max\_age\_days

> **max\_age\_days**: `number` | `null`

###### Description

Days to keep a session that belongs to no experiment run, counted from the start of the session. A session expires as a whole, with all of its events, also while it still receives events. A session of an experiment run whose record was deleted, and a session that has no session event, are kept whatever this value is. null keeps these sessions indefinitely.

###### scope\_id

> **scope\_id**: `string`

###### scope\_type

> **scope\_type**: `"org"` | `"workspace"` | `"project"`

***

`null`

#### policy

> **policy**: \{ `created_at`: `string`; `created_by_actor_id`: `string`; `created_by_actor_type`: `string`; `effective_from`: `string`; `experiment_max_age_days`: `number` | `null`; `max_age_days`: `number` | `null`; `scope_id`: `string`; `scope_type`: `"org"` | `"workspace"` | `"project"`; } | `null`

##### Union Members

###### Type Literal

\{ `created_at`: `string`; `created_by_actor_id`: `string`; `created_by_actor_type`: `string`; `effective_from`: `string`; `experiment_max_age_days`: `number` | `null`; `max_age_days`: `number` | `null`; `scope_id`: `string`; `scope_type`: `"org"` | `"workspace"` | `"project"`; }

###### created\_at

> **created\_at**: `string`

Format: date-time

###### created\_by\_actor\_id

> **created\_by\_actor\_id**: `string`

###### created\_by\_actor\_type

> **created\_by\_actor\_type**: `string`

###### effective\_from

> **effective\_from**: `string`

Format: date-time

###### experiment\_max\_age\_days

> **experiment\_max\_age\_days**: `number` | `null`

###### Description

Days to keep an experiment run, counted from the creation of the run. A run expires as a whole, with its sessions and their events. null keeps experiment runs indefinitely.

###### max\_age\_days

> **max\_age\_days**: `number` | `null`

###### Description

Days to keep a session that belongs to no experiment run, counted from the start of the session. A session expires as a whole, with all of its events, also while it still receives events. A session of an experiment run whose record was deleted, and a session that has no session event, are kept whatever this value is. null keeps these sessions indefinitely.

###### scope\_id

> **scope\_id**: `string`

###### scope\_type

> **scope\_type**: `"org"` | `"workspace"` | `"project"`

***

`null`

***

### success

> **success**: `true`


## Related topics

- [Retention Policies Methods](https://docs.honeyhive.ai/v2/control-plane-sdk-reference/typescript/ref/retention-policies/index.md)
- [GetProjectRetentionPolicyResponse](https://docs.honeyhive.ai/v2/control-plane-sdk-reference/typescript/ref/retention-policies/GetProjectRetentionPolicyResponse.md)
- [GetOrgRetentionPolicyResponse](https://docs.honeyhive.ai/v2/control-plane-sdk-reference/typescript/ref/retention-policies/GetOrgRetentionPolicyResponse.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.