Skip to main content
Agent lifecycle management ensures that every AI agent has an expiry date, a review schedule, and a responsible sponsor. Expired and unreviewed agents surface automatically so you can decommission stale agents and enforce periodic access reviews.

Lifecycle Fields

Set Agent Lifecycle

You can set any combination of fields - all are optional. Only the fields you include are updated.

List Expired Agents

Returns agents whose expires_at date has passed. Use this to identify agents that need decommissioning or renewal.
This endpoint returns a plain list - it is not paginated and does not include sponsor_id, status, or days_expired.

List Agents Due for Review

Returns agents whose next review date has passed or is approaching. Use this to enforce periodic access reviews.
This endpoint also returns a plain, unpaginated list, without sponsor_id or days_overdue.

Review Frequency Options

The review_date is automatically calculated as now plus the review interval whenever review_frequency is set or changed.

Audit Trail

Lifecycle changes (setting expires_at, review_frequency, or sponsor_id) do not currently emit their own audit event.

Use Cases

  • Compliance - EU AI Act requires periodic review of high-risk AI systems. Set review_frequency to quarterly for high-risk agents.
  • Shadow agent cleanup - Set short expiry dates on newly discovered agents to force review.
  • Team accountability - Assign sponsor_id so every agent has a responsible owner.
  • Decommissioning workflow - Poll GET /agents/expired and call the kill switch yourself to block agents past their expiry; MeshAI does not auto-block expired agents today.