Data Retention Policies

Get a data retention policy

GET
Returns a single data retention policy

Path parameters

idstringRequired
ID of data retention policy to return

Response

This endpoint returns an object
data
object
A data retention policy belonging to an environment

Errors

GET
$curl https://api.x.flatfile.com/v1/data-retention-policies/us_drp_YOUR_ID \
> -H "Authorization: Bearer <token>"
Response
1{
2 "data": {
3 "createdAt": "2023-11-15T19:31:33.015Z",
4 "environmentId": "us_env_YOUR_ID",
5 "id": "us_drp_YOUR_ID",
6 "period": 5,
7 "type": "lastActivity",
8 "updatedAt": "2023-11-15T19:31:33.015Z"
9 }
10}