Microsoft Outlook · Arazzo Workflow

Microsoft Outlook Large Attachment Upload Session

Version 1.0.0

Draft a message and open an upload session for a large (3-150 MB) attachment.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CalendarContactsEmailEnterpriseMicrosoftOffice 365ProductivityArazzoWorkflows

Provider

microsoft-outlook

Workflows

large-attachment-upload-session
Create a draft, then open an upload session for a large attachment.
Creates a draft message and opens an upload session for a large file attachment, returning the uploadUrl and expiration for chunked upload.
2 steps inputs: attachmentContentType, attachmentName, attachmentSize, bodyContent, subject, toRecipientAddress outputs: expirationDateTime, messageId, uploadUrl
1
createDraft
Create a draft message to attach the large file to, and capture its message id.
2
openUploadSession
Open an upload session against the draft for the large attachment. Graph returns 201 with the uploadUrl the caller PUTs byte ranges to.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Outlook Large Attachment Upload Session
  summary: Draft a message and open an upload session for a large (3-150 MB) attachment.
  description: >-
    The large-file outbound pattern. Files between 3 MB and 150 MB cannot be
    added with a single addAttachment call, so the workflow creates a draft
    message and then opens an upload session against that draft, returning the
    uploadUrl the caller uses to PUT byte ranges out of band. The draft message
    id chains from the first step into the upload-session step so the flow runs
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: attachmentsApi
  url: ../openapi/microsoft-outlook-attachments-api-openapi.yml
  type: openapi
- name: messagesApi
  url: ../openapi/microsoft-outlook-messages-api-openapi.yml
  type: openapi
workflows:
- workflowId: large-attachment-upload-session
  summary: Create a draft, then open an upload session for a large attachment.
  description: >-
    Creates a draft message and opens an upload session for a large file
    attachment, returning the uploadUrl and expiration for chunked upload.
  inputs:
    type: object
    required:
    - subject
    - toRecipientAddress
    - attachmentName
    - attachmentSize
    properties:
      subject:
        type: string
        description: The subject line of the draft message.
      bodyContent:
        type: string
        description: The body content of the draft message.
        default: ''
      toRecipientAddress:
        type: string
        description: The email address of the primary recipient.
      attachmentName:
        type: string
        description: The display name of the large file attachment.
      attachmentSize:
        type: integer
        description: The size of the attachment in bytes (must be 3 MB to 150 MB).
      attachmentContentType:
        type: string
        description: The MIME type of the attachment.
        default: application/octet-stream
  steps:
  - stepId: createDraft
    description: >-
      Create a draft message to attach the large file to, and capture its
      message id.
    operationId: createDraftMessage
    requestBody:
      contentType: application/json
      payload:
        subject: $inputs.subject
        body:
          contentType: html
          content: $inputs.bodyContent
        toRecipients:
        - emailAddress:
            address: $inputs.toRecipientAddress
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      messageId: $response.body#/id
  - stepId: openUploadSession
    description: >-
      Open an upload session against the draft for the large attachment. Graph
      returns 201 with the uploadUrl the caller PUTs byte ranges to.
    operationId: createAttachmentUploadSession
    parameters:
    - name: message-id
      in: path
      value: $steps.createDraft.outputs.messageId
    requestBody:
      contentType: application/json
      payload:
        AttachmentItem:
          attachmentType: file
          name: $inputs.attachmentName
          size: $inputs.attachmentSize
          contentType: $inputs.attachmentContentType
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      uploadUrl: $response.body#/uploadUrl
      expirationDateTime: $response.body#/expirationDateTime
      nextExpectedRanges: $response.body#/nextExpectedRanges
  outputs:
    messageId: $steps.createDraft.outputs.messageId
    uploadUrl: $steps.openUploadSession.outputs.uploadUrl
    expirationDateTime: $steps.openUploadSession.outputs.expirationDateTime

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-outlook-large-attachment-upload-session-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.