Notifications API ================= Notifications ------------- .. list-table:: :header-rows: 1 :widths: 30 10 20 40 * - Endpoint - Method - Permission - Description * - ``/api/v1/notifications/`` - GET - Authenticated (own only) - List user's notifications. Filters: ``channel``, ``status``, ``context_type`` * - ``/api/v1/notifications/{id}/`` - GET - Authenticated (own only) - Get notification detail * - ``/api/v1/notifications/{id}/read/`` - POST - Authenticated (own only) - Mark notification as read Call Logs --------- .. list-table:: :header-rows: 1 :widths: 30 10 20 40 * - Endpoint - Method - Permission - Description * - ``/api/v1/call-logs/`` - GET - central_ops, field_team - List call logs. Filters: ``call_type``, ``context_type``, ``outcome``, ``date_range`` * - ``/api/v1/call-logs/`` - POST - central_ops, field_team - Log a call. Body: ``{callee_phone, call_type, context_type, context_id, outcome, duration_seconds, notes}`` Templates --------- .. list-table:: :header-rows: 1 :widths: 30 10 20 40 * - Endpoint - Method - Permission - Description * - ``/api/v1/notification-templates/`` - GET - central_ops - List templates. Filters: ``channel``, ``is_active`` * - ``/api/v1/notification-templates/`` - POST - central_ops - Create template. Body: ``{name, channel, subject_template, body_template}`` * - ``/api/v1/notification-templates/{id}/`` - PATCH - central_ops - Update template