Get retention settings
⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/organizations/retentionReturn how long each kind of stored data is kept.
For how this fits into a full workflow, see Data retention.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <admin key>: an Admin API key (sk_admin_...). Inference keys are refused with 403 admin_key_required. See Admin API keys. |
syntic-beta | Yes, while in preview | admin-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Response
200 OK, Content-Type: application/json
{
"type": "retention_settings",
"zero_data_retention": false,
"request_logs_days": 30,
"files_days": null,
"batch_results_days": 29,
"session_events_days": 90,
"memory_enabled": true,
"updated_at": "2026-11-05T10:00:00Z"
}| Field | Type | Description |
|---|---|---|
zero_data_retention | boolean | Read-only here; set by contract. When true, prompts and outputs are not stored and the day settings below are ignored for content. |
request_logs_days | integer | How long request and response bodies are kept for your Console logs, 0 to 30. |
files_days | integer or null | Delete uploaded files automatically after this many days; null keeps them until you delete them. |
batch_results_days | integer | Results files are deleted after this many days, 1 to 29. |
session_events_days | integer | Agent session event logs, 7 to 365. |
memory_enabled | boolean | Whether memory stores may persist data. |
Examples
curl -sS "https://app.syntic.ai/v1/organizations/retention" \
-H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
-H "syntic-beta: admin-2026-11-01"Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 401 | authentication_error | invalid_api_key | The admin key is missing, unknown, revoked or expired. |
| 403 | permission_error | admin_key_required | An inference key was used. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Was this page helpful?