Qyra
ReferenceUntagged

Preview thread retention impact

Preview what an org-level thread retention window would delete on the next cleanup run

GET/api/v1/aiAgents/admin/settings/thread-retention-preview

Authentication: personal access token. The spec defines an api_key security scheme — send an Authorization: ApiKey <your-personal-access-token> header (value format: ApiKey <your key>). A session_cookie scheme (connect.sid) exists for browser sessions. Operations in this spec declare security: [], an artifact of the upstream spec generator — authentication is still enforced by the server.

Query parameters

NameTypeRequiredDescription
retentionHoursnumberYes

Responses

200 — Retrieved thread retention preview

{
  "results": {
    "agentCount": 0,
    "threadCount": 0
  },
  "status": "ok"
}

default — Error

{
  "error": {
    "data": "string",
    "message": "string",
    "name": "string",
    "statusCode": 0
  },
  "status": "error"
}