Skip to content
Talk to an Engineer Dashboard

Outlook

Connect to Microsoft Outlook. Manage emails, calendar events, contacts, and tasks

Connect to Microsoft Outlook. Manage emails, calendar events, contacts, and tasks

Outlook logo

Supports authentication: OAuth 2.0

Register your Scalekit environment with the Outlook connector so Scalekit handles the authentication flow and token lifecycle for you. The connection name you create will be used to identify and invoke the connection programmatically. Then complete the configuration in your application as follows:

  1. Create the Outlook connection in Scalekit

    • In Scalekit dashboard, go to Agent ActionsConnections and click + Create Connection. Search for Outlook and click Create.

      Search for Outlook and create a new connection

    • In the Configure Outlook Connection dialog, copy the Redirect URI. You will need this when registering your app in Azure.

      Copy the redirect URI from the Configure Outlook Connection dialog

  2. Register an application in Azure

    • Sign into portal.azure.com and go to Microsoft Entra IDApp registrations.

      App registrations page in Azure portal

    • Click New registration. Enter a name for your app (for example, “Scalekit Outlook Connector”).

    • Under Supported account types, select Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts.

    • Under Redirect URI, select Web and paste the redirect URI you copied from the Scalekit dashboard. Click Register.

      Paste the Scalekit redirect URI in Azure

  3. Get your client credentials

    • From the app’s Overview page, copy the Application (client) ID.

      Copy the Application (client) ID from the Azure app overview

    • Go to Certificates & secrets in the left sidebar, then click + New client secret.

      Certificates and secrets page in Azure portal

    • Enter a description (for example, “Secret for Scalekit Agent Actions”), set an expiry period, and click Add. Copy the secret Value immediately — it is only shown once.

      Add a client secret in Azure portal

  4. Add credentials in Scalekit

    • In Scalekit dashboard, go to Agent ActionsConnections and open the Outlook connection you created.

    • Enter your credentials:

      • Client ID — the Application (client) ID from the Azure app overview
      • Client Secret — the secret value from Certificates & secrets
      • Scopes — select the permissions your app needs (for example, Calendars.Read, Calendars.ReadWrite, Mail.Read, Mail.ReadWrite, Mail.Send, Contacts.Read, Contacts.ReadWrite, User.Read, offline_access). See Microsoft Graph permissions reference for the full list.
    • Click Save.

Connect a user’s Outlook account and make API calls on their behalf — Scalekit handles OAuth and token management automatically.

You can interact with Outlook in two ways — via direct proxy API calls or via Scalekit optimized tool calls. Scroll down to see the list of available Scalekit tools.

Proxy API Calls

import { ScalekitClient } from '@scalekit-sdk/node';
import 'dotenv/config';
const connectionName = 'outlook'; // get your connection name from connection configurations
const identifier = 'user_123'; // your unique user identifier
// Get your credentials from app.scalekit.com → Developers → Settings → API Credentials
const scalekit = new ScalekitClient(
process.env.SCALEKIT_ENV_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET
);
const actions = scalekit.actions;
// Authenticate the user
const { link } = await actions.getAuthorizationLink({
connectionName,
identifier,
});
console.log('🔗 Authorize Outlook:', link);
process.stdout.write('Press Enter after authorizing...');
await new Promise(r => process.stdin.once('data', r));
// Make a request via Scalekit proxy
const result = await actions.request({
connectionName,
identifier,
path: '/v1.0/me/messages',
method: 'GET',
});
console.log(result);

Scalekit Tools

Create a new calendar event in the user’s Outlook calendar. Supports attendees, recurrence, reminders, online meetings, multiple locations, and event properties.

NameTypeRequiredDescription
attendees_optionalstringNoArray of email addresses for optional attendees
attendees_requiredstringNoArray of email addresses for required attendees
attendees_resourcestringNoArray of email addresses for resources (meeting rooms, equipment)
body_contentstringNoNo description
body_contentTypestringNoNo description
end_datetimestringYesNo description
end_timezonestringYesNo description
hideAttendeesbooleanNoWhen true, each attendee only sees themselves
importancestringNoEvent importance level
isAllDaybooleanNoMark as all-day event
isOnlineMeetingbooleanNoCreate an online meeting (Teams/Skype)
isReminderOnbooleanNoEnable or disable reminder
locationstringNoNo description
locationsstringNoJSON array of location objects with displayName, address, coordinates
onlineMeetingProviderstringNoOnline meeting provider
recurrence_days_of_weekstringNoDays of week for weekly recurrence (comma-separated)
recurrence_end_datestringNoEnd date for recurrence (YYYY-MM-DD), required if range_type is endDate
recurrence_intervalintegerNoHow often the event recurs (e.g., every 2 weeks = 2)
recurrence_occurrencesintegerNoNumber of occurrences, required if range_type is numbered
recurrence_range_typestringNoHow the recurrence ends
recurrence_start_datestringNoStart date for recurrence (YYYY-MM-DD)
recurrence_typestringNoRecurrence pattern type
reminderMinutesBeforeStartintegerNoMinutes before event start to show reminder
sensitivitystringNoEvent sensitivity/privacy level
showAsstringNoFree/busy status
start_datetimestringYesNo description
start_timezonestringYesNo description
subjectstringYesNo description

Delete a calendar event by ID.

NameTypeRequiredDescription
event_idstringYesNo description

Retrieve an existing calendar event by ID from the user’s Outlook calendar.

NameTypeRequiredDescription
event_idstringYesNo description

List calendar events from the user’s Outlook calendar with filtering, sorting, pagination, and field selection.

NameTypeRequiredDescription
filterstringNoOData filter expression to filter events (e.g., startsWith(subject,‘All’))
orderbystringNoOData orderby expression to sort events (e.g., start/dateTime desc)
selectstringNoComma-separated list of properties to include in the response
skipnumberNoNumber of events to skip for pagination
topnumberNoMaximum number of events to return

Update an existing Outlook calendar event. Only provided fields will be updated. Supports time, attendees, location, reminders, online meetings, recurrence, and event properties.

NameTypeRequiredDescription
attendees_optionalstringNoComma-separated optional attendee emails
attendees_requiredstringNoComma-separated required attendee emails
attendees_resourcestringNoComma-separated resource emails (meeting rooms, equipment)
body_contentstringNoEvent description/body
body_contentTypestringNoContent type of body
categoriesstringNoComma-separated categories
end_datetimestringNoEvent end time in RFC3339 format
end_timezonestringNoTimezone for end time
event_idstringYesThe ID of the calendar event to update
hideAttendeesbooleanNoWhen true, each attendee only sees themselves
importancestringNoEvent importance level
isAllDaybooleanNoMark as all-day event
isOnlineMeetingbooleanNoCreate an online meeting (Teams/Skype)
isReminderOnbooleanNoEnable or disable reminder
locationstringNoPhysical or virtual location
locationsstringNoJSON array of location objects with displayName, address, coordinates
onlineMeetingProviderstringNoOnline meeting provider
recurrence_days_of_weekstringNoDays of week for weekly recurrence (comma-separated)
recurrence_end_datestringNoEnd date for recurrence (YYYY-MM-DD)
recurrence_intervalintegerNoHow often the event recurs (e.g., every 2 weeks = 2)
recurrence_occurrencesintegerNoNumber of occurrences
recurrence_range_typestringNoHow the recurrence ends
recurrence_start_datestringNoStart date for recurrence (YYYY-MM-DD)
recurrence_typestringNoRecurrence pattern type
reminderMinutesBeforeStartintegerNoMinutes before event start to show reminder
sensitivitystringNoEvent sensitivity/privacy level
showAsstringNoFree/busy status
start_datetimestringNoEvent start time in RFC3339 format
start_timezonestringNoTimezone for start time
subjectstringNoEvent title/summary