GET/api/orgs/{org_id}/retention/keeps

List kept items

Kept requests and sessions, newest first.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

Query parameters

  • kindenum

    request or session.

    "request""session"
  • cursorstring

    The next_cursor of the previous page.

  • limitinteger

    Rows per page, 1 to 200.

    Default: 50

Responses

  • 200

    One page.

    Response
    • itemsarray<object>
      items
      • kindenum
        "request""session"
      • idstring
      • labelstring
      • kept_atstring
      • kept_by_emailstring | null
    • next_cursorstring | null
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention/keeps?kind=session&cursor=eyJ0Ijoi...&limit=50' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "items": [
    {
      "kind": "request",
      "id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
      "label": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
      "kept_at": "2026-11-18T14:40:00Z",
      "kept_by_email": "ana@example.com"
    }
  ],
  "next_cursor": null
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention/keeps?kind=session&cursor=eyJ0Ijoi...&limit=50