Skip to main content
GET
/
v1
/
agents
/
{agentId}
/
retention
Get an agent's retention policy
curl --request GET \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/retention \
  --header 'Authorization: Bearer <token>'
{
  "policy": {},
  "effective": {
    "conversations_retention_days": 123,
    "documents_retention_days": 123,
    "tasks_retention_days": 123,
    "artifacts_retention_days": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

agentId
string
required
Maximum string length: 64

Response

Policy + effective values.

policy
object

Raw retention_policies document for this agent (scope: "agent"). Null when no override is set.

effective
object

Resolved retention values (agent → org → platform defaults).