Reten Docs

Delete Activity Generation Config

Archive (soft delete) an activity generation config.

DELETE /api/activity-generation-configs/:id

Archives an activity generation config. The record is removed immediately —GET /activity-generation-configs/:id responds 404 and the list stops returning it— and in its place a recoverable snapshot is kept in the trash for a configurable retention window.

Auth: Required — activity-generation-config:delete permission

Path Parameters

ParameterTypeDescription
idUUIDActivity generation config id

The AGC's three lifecycle configs (activationConfig, engagementConfig, resurrectionConfig) are archived with it — you do not delete them separately.

Example

curl -X DELETE https://api.reten.ai/api/activity-generation-configs/f47ac10b-58cc-4372-a567-0e02b2c3d479 \
  -H "Authorization: Bearer <token>" \
  -H "x-tenant-id: <tenant-id>" \
  -H "x-project-id: <project-id>"
import axios from 'axios';

const id = 'f47ac10b-58cc-4372-a567-0e02b2c3d479';
await axios.delete(
  `https://api.reten.ai/api/activity-generation-configs/${id}`,
  { headers: { Authorization: 'Bearer <token>', 'x-tenant-id': '<tenant-id>', 'x-project-id': '<project-id>' } },
);

Response 204 No Content

Empty body.

Error Responses

StatusDescription
400id is not a UUID
404No activity generation config with that id exists in the active project (an AGC of another project included) — Activity generation config <id> not found