Skip to Content
HomeLink Hub
Calendar

Get Google Calendar connection status

GET
/api/v1/calendar/google/status

Access: Bearer token required.

Tells whether the authenticated user has connected Google Calendar, i.e. whether an encrypted Google refresh token is stored on their account. Connected users get paid inspections added to their primary Google calendar automatically. This check does not call Google, so a grant the user revoked on Google's side still reports connected: true until the next sync attempt fails and the server drops it.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Response Body

Connection state.

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/calendar/google/status'
Example Response
{  "status": 200,  "success": true,  "message": "Calendar status fetched",  "data": {    "connected": true  }}