Skip to main content
GET
Get Notification Preference

Endpoint

Base URL: http://localhost:3000/api/v1
This endpoint requires authentication and Job Seeker role.

Authentication

Include the access token in the Authorization header:

Description

Retrieve the authenticated job seeker’s notification preferences. If a preference row does not exist yet, the backend initializes it with the default values:
  • jobMatchNotificationsEnabled = true
  • applicationStatusNotificationsEnabled = true

Response

Success Response (200 OK)

Response Fields

boolean
Whether the user wants email notifications when a company changes the status of one of their applications.
boolean
Whether the user wants email notifications when new job matches are generated for their account.
string
ISO 8601 timestamp of the latest update to the preference row.

Error Responses

401 Unauthorized - Not Authenticated

403 Forbidden - Insufficient Permissions

Notes

Default Initialization: The first GET request creates a preference row automatically if one does not exist yet.
Frontend Behavior: This endpoint always returns a real preference object, so the frontend does not need special handling for null settings.