Calendar
Get Google Calendar connection status
GET
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.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
Connection state.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X GET 'http://localhost:4000/api/v1/calendar/google/status'Example Response
{ "status": 200, "success": true, "message": "Calendar status fetched", "data": { "connected": true }}