---
name: "m365_calendar_create"
area: "microsoft365"
title: "Add an Outlook event"
price: "$0.001"
method: "POST"
url: "https://api.conecto.chat/v1/tools/m365_calendar_create"
mcp_server: "https://api.conecto.chat/mcp/microsoft365"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/microsoft365/m365_calendar_create"
---

# Add an Outlook event (`m365_calendar_create`)

Adds an event to a mailbox's calendar and invites its attendees, with a Teams link if asked.

Put an event in a mailbox's calendar and invite its attendees, with a Teams meeting when asked. Times with an offset, or local to `timezone`. $0.001.

Price: $0.001 a call. A call that fails costs nothing.

## Use it when

A customer or colleague agreed a time.

- For a booking page where customers pick their own time, use [calendar_save_meeting_type](https://conecto.chat/tools/calendar/calendar_save_meeting_type.md).

## Say this to your agent

> Book Sophie's test kitchen demo on Saturday at 11:30 with a Teams link.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `mailbox` | string | no | One of the mailboxes the agent may act as; optional when only one is connected. Up to 254 characters. |  |  |
| `subject` | string | yes | 1 to 255 characters. |  |  |
| `start` | string | yes | Up to 40 characters. |  |  |
| `end` | string | yes | Up to 40 characters. |  |  |
| `timezone` | string | no | Up to 60 characters. |  |  |
| `attendees` | array of strings | no | Up to 50 items. |  |  |
| `location` | string | no | Up to 255 characters. |  |  |
| `body` | string | no | Up to 10,000 characters. |  |  |
| `online_meeting` | boolean | no |  |  | `false` |

## Example

Written for Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff.

MCP: call `m365_calendar_create` on the MCP server `https://api.conecto.chat/mcp/microsoft365` with these arguments:

```json
{
  "mailbox": "support@hansenvoss.example",
  "subject": "Test kitchen demo: Sophie Lange",
  "start": "2026-10-24T11:30",
  "end": "2026-10-24T12:15",
  "timezone": "Europe/Berlin",
  "attendees": [
    "sophie.lange@example.com"
  ],
  "online_meeting": true
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/m365_calendar_create \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mailbox": "support@hansenvoss.example", "subject": "Test kitchen demo: Sophie Lange", "start": "2026-10-24T11:30", "end": "2026-10-24T12:15", "timezone": "Europe/Berlin", "attendees": ["sophie.lange@example.com"], "online_meeting": true}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "m365_calendar_create",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.001",
  "balance_usd": "$19.75",
  "result": {
    "mailbox": "support@hansenvoss.example",
    "event": {
      "id": "AAMkAGI2TG94AAA=",
      "subject": "Test kitchen demo: Sophie Lange",
      "start": "2026-10-24T09:30:00.0000000",
      "end": "2026-10-24T10:15:00.0000000",
      "location": null,
      "organizer": "support@hansenvoss.example",
      "attendees": [
        "sophie.lange@example.com"
      ],
      "online_meeting": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_example",
      "cancelled": false,
      "link": "https://outlook.office365.com/owa/?itemid=AAMkAGI2TG94AAA%3D"
    }
  }
}
```

`result`: mailbox; event: id, subject, start, end, location, organizer, attendees, online_meeting and link.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_connected` | 409 | Microsoft 365 isn't connected yet. | Connect it with m365_connect. |
| `not_allowed` | 403 | The mailbox is not one the agent may act as. | Use a connected mailbox; the owner adds one by connecting again. |
| `vendor_rejected` | 502 | Microsoft refused: the app lacks a permission or consent, or the request. | Ask the admin to grant what the message names. |
| `invalid_input` | 400 | A time or address is not valid, or end is not after start. | Fix what the message names. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [m365_connect](https://conecto.chat/tools/microsoft365/m365_connect.md): Connects the company's Microsoft 365 through its own app, for the mailboxes the agent may act as. Free.
- [m365_mail_search](https://conecto.chat/tools/microsoft365/m365_mail_search.md): The newest messages in a mailbox folder, or those matching a search. Free up to 1,000,000 reads a month.
- [m365_mail_read](https://conecto.chat/tools/microsoft365/m365_mail_read.md): One message in full, with its body as text and its attachments' names. Free up to 1,000,000 reads a month.
- [m365_mail_send](https://conecto.chat/tools/microsoft365/m365_mail_send.md): Sends an email, or a reply in the same thread, as one of the company's mailboxes. $0.001 a call.
- [m365_calendar_events](https://conecto.chat/tools/microsoft365/m365_calendar_events.md): The events in a mailbox's calendar between two times, in UTC. Free up to 1,000,000 reads a month.
- [m365_calendar_cancel](https://conecto.chat/tools/microsoft365/m365_calendar_cancel.md): Cancels an event the mailbox organizes and tells its attendees; waits for the owner by default. $0.001 a call.
- [m365_files_search](https://conecto.chat/tools/microsoft365/m365_files_search.md): Files in a mailbox user's OneDrive whose name or words match. Free up to 1,000,000 reads a month.
- [m365_files_read](https://conecto.chat/tools/microsoft365/m365_files_read.md): A OneDrive file's words: text, PDF, Word, Excel or PowerPoint, up to 5 MB. Free up to 1,000,000 reads a month.
- [m365_files_upload](https://conecto.chat/tools/microsoft365/m365_files_upload.md): Writes a text file to a path in a mailbox user's OneDrive; replacing one waits for the owner. $0.001 a call.
- [m365_disconnect](https://conecto.chat/tools/microsoft365/m365_disconnect.md): Forgets the app's secret and the mailboxes; nothing in Microsoft 365 changes. Free.
