Get retention settings

⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/organizations/retention

Return how long each kind of stored data is kept.

For how this fits into a full workflow, see Data retention.

Headers

HeaderRequiredValue
AuthorizationYesBearer <admin key>: an Admin API key (sk_admin_...). Inference keys are refused with 403 admin_key_required. See Admin API keys.
syntic-betaYes, while in previewadmin-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"
}
FieldTypeDescription
zero_data_retentionbooleanRead-only here; set by contract. When true, prompts and outputs are not stored and the day settings below are ignored for content.
request_logs_daysintegerHow long request and response bodies are kept for your Console logs, 0 to 30.
files_daysinteger or nullDelete uploaded files automatically after this many days; null keeps them until you delete them.
batch_results_daysintegerResults files are deleted after this many days, 1 to 29.
session_events_daysintegerAgent session event logs, 7 to 365.
memory_enabledbooleanWhether 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:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
401authentication_errorinvalid_api_keyThe admin key is missing, unknown, revoked or expired.
403permission_erroradmin_key_requiredAn inference key was used.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?