Get the org-level retention policy
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/orgs/{orgSlug}/retention \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/orgs/{orgSlug}/retention', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/orgs/{orgSlug}/retention"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"policy": {},
"effective": {
"conversations_retention_days": 123,
"documents_retention_days": 123,
"tasks_retention_days": 123,
"artifacts_retention_days": 123
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Retention
Get the org-level retention policy
Org-scoped retention policy. Admin-only (platform admin or
agent-factory admin). Returns the raw policy document plus the
resolved effective values (org override → platform defaults).
GET
/
v1
/
orgs
/
{orgSlug}
/
retention
Get the org-level retention policy
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/orgs/{orgSlug}/retention \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/orgs/{orgSlug}/retention', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/orgs/{orgSlug}/retention"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"policy": {},
"effective": {
"conversations_retention_days": 123,
"documents_retention_days": 123,
"tasks_retention_days": 123,
"artifacts_retention_days": 123
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
BearerAuthOrgApiKeyAuth
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Path Parameters
Maximum string length:
64Response
Org retention policy + effective values.
Was this page helpful?