Skip to main content

Google Integration

Lira integrates with Google Calendar and Google Drive using a dedicated OAuth client (separate from Lira app login).

Dual Google OAuth

Lira uses two separate Google OAuth client IDs:

ClientPurposeScopes
GOOGLE_LOGIN_CLIENT_IDLira app login (sign-in with Google)openid, email, profile
GOOGLE_CLIENT_IDCalendar & Drive integrationCalendar read/write, Drive read

getAllowedAudiences() in platform-auth.service.ts accepts tokens from both clients.

Google Calendar

FeatureDescription
List calendarsGET /lira/v1/integrations/google/calendars
Create eventsPOST /lira/v1/integrations/google/events
Read eventsView upcoming meetings for scheduling
# List calendars
GET /lira/v1/integrations/google/calendars

# Create a calendar event
POST /lira/v1/integrations/google/events
{
"summary": "Follow-up with client",
"start": "2026-04-01T10:00:00Z",
"end": "2026-04-01T10:30:00Z",
"attendees": ["john@example.com"]
}

Google Drive

FeatureDescription
List filesGET /lira/v1/integrations/google/drive/files
Search filesFull-text search across Drive
Read filesDocs, Sheets, and raw file content
Create foldersOrganize meeting artifacts
# List/search Drive files
GET /lira/v1/integrations/google/drive/files?q=quarterly+report

OAuth Configuration

VariableDescription
GOOGLE_CLIENT_IDGoogle OAuth client ID for integrations
GOOGLE_INTEGRATIONS_CLIENT_SECRETGoogle OAuth client secret