REST /api/v1/activity-records 5 endpoints
GET /api/v1/activity-records/api/v1/activity-records

List activity records

Public

Response Example

{
  "data": [
    {
      "id": "act-2847",
      "peer_id": "peer-0091",
      "activity_type_id": "act-type-03",
      "date": "2026-03-20",
      "duration_minutes": 60,
      "was_reviewed": false,
      "submitted_at": "2026-03-19T16:00:00Z",
      "created_at": "2026-03-19T16:00:00Z"
    },
    {
      "id": "act-2901",
      "peer_id": "peer-0091",
      "activity_type_id": "act-type-03",
      "date": "2026-03-20",
      "duration_minutes": 45,
      "was_reviewed": true,
      "submitted_at": "2026-03-20T09:15:00Z",
      "created_at": "2026-03-20T09:15:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 2
  }
}
GET /api/v1/activity-records/api/v1/activity-records/:id

Get activity record by ID

Public

Response Example

{
  "id": "act-2847",
  "peer_id": "peer-0091",
  "activity_type_id": "act-type-03",
  "date": "2026-03-20",
  "duration_minutes": 60,
  "location": "Room 4B",
  "notes": "One-on-one support session.",
  "was_reviewed": false,
  "submitted_by": "peer-0091",
  "submitted_at": "2026-03-19T16:00:00Z",
  "created_at": "2026-03-19T16:00:00Z",
  "updated_at": "2026-03-19T16:00:00Z"
}
POST /api/v1/activity-records/api/v1/activity-records

Insert activity record with reviewed flag

Public

Request Example

{
  "peer_id": "peer-0091",
  "activity_type_id": "act-type-03",
  "date": "2026-03-26",
  "duration_minutes": 60,
  "location": "Room 4B",
  "notes": "Follow-up support session.",
  "was_reviewed": true,
  "submitted_by": "peer-0091"
}

Response Example

{
  "id": "act-3060",
  "peer_id": "peer-0091",
  "activity_type_id": "act-type-03",
  "date": "2026-03-26",
  "duration_minutes": 60,
  "location": "Room 4B",
  "notes": "Follow-up support session.",
  "was_reviewed": true,
  "submitted_by": "peer-0091",
  "submitted_at": "2026-03-26T08:00:00Z",
  "created_at": "2026-03-26T08:00:00Z",
  "updated_at": "2026-03-26T08:00:00Z"
}
PUT /api/v1/activity-records/api/v1/activity-records/:id

Update an existing activity record

Public

Request Example

{
  "duration_minutes": 90,
  "notes": "Extended session — covered additional coping strategies.",
  "was_reviewed": true
}

Response Example

{
  "id": "act-2847",
  "peer_id": "peer-0091",
  "activity_type_id": "act-type-03",
  "date": "2026-03-20",
  "duration_minutes": 90,
  "location": "Room 4B",
  "notes": "Extended session — covered additional coping strategies.",
  "was_reviewed": true,
  "submitted_at": "2026-03-19T16:00:00Z",
  "created_at": "2026-03-19T16:00:00Z",
  "updated_at": "2026-03-26T08:30:00Z"
}
DELETE /api/v1/activity-records/api/v1/activity-records/:id

Delete an activity record

Public

Response Example

{
  "message": "Activity record act-2847 deleted successfully."
}

Additional Metadata

{
  "contract_summary": {
    "total_contracts": 410,
    "total_endpoints": 2416,
    "api_styles_used": [
      "rest"
    ]
  },
  "generated_at": "2026-03-26T06:55:53.316Z"
}