Outlook

Learn how to use Outlook with Composio

Overview

Enum

OUTLOOK

Description

Outlook is Microsoft’s email and calendaring platform integrating contacts, tasks, and scheduling, enabling users to manage communications and events in a unified workspace

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to Calendars.Read,Calendars.ReadWrite,Calendars.ReadWrite.Shared,Contacts.ReadWrite,Mail.Read,Mail.ReadWrite,Mail.Send,offline_access,User.Read

Actions

Download an attachment from an outlook mail.

Action Parameters

attachment_id
stringRequired
file_name
stringRequired
message_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Retrieve a list of attachments for a specific outlook email message using microsoft graph api, omitting any base64 content bytes.

Action Parameters

message_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Create an event in the user’s calendar via microsoft graph api. this tool expects a flattened ‘attendees info’ from the user/llm, then transforms them into the nested shape required by microsoft graph.

Action Parameters

attendees_info
array
body
stringRequired
categories
array
end_datetime
stringRequired
is_html
boolean
is_online_meeting
boolean
location
string
online_meeting_provider
string
show_as
stringDefaults to busy
start_datetime
stringRequired
subject
stringRequired
time_zone
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Create a new contact in the user’s outlook contacts using microsoft graph api.

Action Parameters

birthday
string
businessPhones
array
categories
array
companyName
string
department
string
displayName
string
emailAddresses
array
givenName
string
homePhone
string
jobTitle
string
mobilePhone
string
notes
string
officeLocation
string
surname
string
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Create a draft email using microsoft graph api for outlook.

Action Parameters

attachment
object
bcc_recipients
array
body
stringRequired
cc_recipients
array
is_html
boolean
subject
stringRequired
to_recipients
arrayRequired

Action Response

data
object
error
successful
boolean

Create a draft reply to an email using microsoft graph api for outlook.

Action Parameters

bcc_emails
array
cc_emails
array
comment
string
message_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Delete a contact from the user’s outlook contacts using microsoft graph api. the contact id can be obtained from outlook get contacts or outlook get contact actions.

Action Parameters

contact_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Delete a calendar event using microsoft graph api for outlook.

Action Parameters

event_id
stringRequired
send_notifications
booleanDefaults to True
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Get a specific contact by id from outlook using microsoft graph api.

Action Parameters

contact_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Get a specific calendar event by id from outlook using microsoft graph api.

Action Parameters

event_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Retrieve an email message by its id using the microsoft graph api.

Action Parameters

message_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Get the profile of a user in outlook using microsoft graph api.

Action Parameters

user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Get the free/busy schedule of users and resources for a specific time period. this action requires a minimum of calendars.readbasic permission and can retrieve availability information for up to 20 users or resources at once, for a time period of up to 62 days.

Action Parameters

EndTime
objectRequired
Schedules
arrayRequired
StartTime
objectRequired
availabilityViewInterval
stringDefaults to 30

Action Response

data
object
error
successful
boolean

Action to list outlook contacts using microsoft graph.

Action Parameters

contact_folder_id
string
filter
string
orderby
array
select
array
top
integerDefaults to 10
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

List events in the user’s calendar using microsoft graph api for outlook.

Action Parameters

filter
string
orderby
array
select
array
skip
integer
timezone
stringDefaults to UTC
top
integerDefaults to 10
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

List messages in the user’s mailbox using microsoft graph api for outlook.

Action Parameters

body_preview_contains
string
categories
array
folder
stringDefaults to inbox
from_address
string
has_attachments
boolean
importance
string
is_read
boolean
orderby
array
received_date_time_ge
string
received_date_time_gt
string
received_date_time_le
string
received_date_time_lt
string
select
array
sent_date_time_gt
string
sent_date_time_lt
string
skip
integer
subject
string
subject_contains
string
subject_endswith
string
subject_startswith
string
top
integerDefaults to 10
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Reply to an email using microsoft graph api for outlook.

Action Parameters

bcc_emails
array
cc_emails
array
comment
stringRequired
message_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Action to search outlook messages using the microsoft search api for work/school accounts. note: this tool only supports microsoft 365/enterprise accounts and does not support @hotmail.com or @outlook.com addresses.

Action Parameters

enable_top_results
boolean
fromEmail
string
from_index
integer
hasAttachments
boolean
query
string
size
integerDefaults to 25
subject
string

Action Response

data
object
error
successful
boolean

Send an email using microsoft graph api for outlook.

Action Parameters

attachment
object
bcc_emails
array
body
stringRequired
cc_emails
array
is_html
boolean
save_to_sent_items
booleanDefaults to True
subject
stringRequired
to_email
stringRequired
to_name
string
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Update an event in the user’s calendar using microsoft graph api for outlook.

Action Parameters

attendees
array
body
object
categories
array
end_datetime
string
event_id
stringRequired
location
object
show_as
stringDefaults to busy
start_datetime
string
subject
string
time_zone
stringDefaults to UTC
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Update an existing contact for the user in outlook contacts.

Action Parameters

birthday
string
businessPhones
array
categories
array
companyName
string
contact_id
stringRequired
department
string
displayName
string
emailAddresses
array
givenName
string
homePhones
array
jobTitle
string
mobilePhone
string
notes
string
officeLocation
string
surname
string
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Update an existing email message.

Action Parameters

bcc_recipients
array
body
object
cc_recipients
array
importance
stringDefaults to normal
message_id
stringRequired
subject
string
to_recipients
array
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean