viakite
Dashboard

API/Goals and settings/How long the project's data is kept

How long the project's data is kept

GET/v1/projects/{project}/retention

The days the organization's plan keeps (Free 30, Pro 365, Business 1095, longer with a retention add-on on the project; null on Enterprise, kept per contract). Events older than that are deleted grace_days (30) later by a daily job at 04:00 UTC. oldest_removed_at is when that job will delete the project's oldest stored event; null when there is no limit or no event.

Secret keyus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Responses

The project's retention.

project_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
retention_daysinteger | nullrequired
Days the plan keeps; null when there is no limit.
grace_daysintegerrequired
Days data past the limit stays before it is deleted.
oldest_event_atstring · date-time | nullrequired
The oldest stored live event; null when there is none.
oldest_removed_atstring · date-time | nullrequired
When the oldest stored event will be deleted; null when it never will.
Example response
1{
2 "project_id": "prj_01JD8Q2M4W9XK3T7B5",
3 "retention_days": 1,
4 "grace_days": 1,
5 "oldest_event_at": "2026-11-21T09:30:00Z",
6 "oldest_removed_at": "2026-11-21T09:30:00Z"
7}