---
title: "Retrieve project data retention"
method: GET
path: "/organization/projects/{project_id}/data_retention"
tags: ["Data retention"]
---

# Retrieve project data retention

`GET /organization/projects/{project_id}/data_retention`

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/organization/projects/{project_id}/data_retention`
- Auth: HTTP bearer

Retrieves project data retention controls.

## Path parameters

- `project_id` string, required

## Response `200`

Project data retention controls retrieved successfully.

- ProjectDataRetention: Represents a project's data retention control setting.
  - `object` 'project.data_retention', required: The object type, which is always `project.data_retention`.
  - `type` 'organization_default' | 'none' | 'zero_data_retention' | 'modified_abuse_monitoring' | 'enhanced_zero_data_retention' | 'enhanced_modified_abuse_monitoring', required: The configured project data retention type.

## Other responses

- `400`: The project ID is invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The organization or project was not found.

## Changes

- **2026-10-06** `487892d3954e`: 3 info
  - added the optional property `error/anyOf[#/components/schemas/Error]/misalignment/review_target` to the response with the `403` status
  - added the optional property `error/misalignment/review_target` to the response with the `400` status
  - added the optional property `error/misalignment/review_target` to the response with the `404` status
- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/organization/projects/:project_id/data_retention/get.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
