Microsoft Word · Arazzo Workflow

Microsoft Word Author Document from HTML

Version 1.0.0

Create a blank Word document, insert HTML content into its body, and save it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub DocumentsMicrosoft-365OfficeProductivityWord ProcessingArazzoWorkflows

Provider

microsoft-word

Workflows

author-document
Create a document, insert HTML, and save it.
Creates a blank Word document, inserts HTML content into the body, and saves the document.
3 steps inputs: html, location outputs: documentId, rangeText
1
createDocument
Create a new blank Word document. The JavaScript API returns 201 with the new document object.
2
insertHtml
Insert the HTML content into the document body at the requested location. The JavaScript API returns 200 with the affected range.
3
saveDocument
Save the document to persist the inserted content. The JavaScript API returns 204 with no content on success.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Word Author Document from HTML
  summary: Create a blank Word document, insert HTML content into its body, and save it.
  description: >-
    Authoring a new Word document programmatically through the Office Word
    JavaScript API. The workflow creates a blank document, inserts a block of
    HTML content at the end of the document body, and then saves the document so
    the content is persisted. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: bodyApi
  url: ../openapi/microsoft-word-body-api-openapi.yml
  type: openapi
- name: documentsApi
  url: ../openapi/microsoft-word-documents-api-openapi.yml
  type: openapi
workflows:
- workflowId: author-document
  summary: Create a document, insert HTML, and save it.
  description: >-
    Creates a blank Word document, inserts HTML content into the body, and saves
    the document.
  inputs:
    type: object
    required:
    - html
    properties:
      html:
        type: string
        description: The HTML content to insert into the document body.
      location:
        type: string
        description: Where to insert the HTML (Start, End, Before, After, Replace).
        default: End
  steps:
  - stepId: createDocument
    description: >-
      Create a new blank Word document. The JavaScript API returns 201 with the
      new document object.
    operationId: createDocument
    requestBody:
      contentType: application/json
      payload: {}
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      documentId: $response.body#/id
  - stepId: insertHtml
    description: >-
      Insert the HTML content into the document body at the requested location.
      The JavaScript API returns 200 with the affected range.
    operationId: insertHtml
    parameters:
    - name: document-id
      in: path
      value: $steps.createDocument.outputs.documentId
    requestBody:
      contentType: application/json
      payload:
        html: $inputs.html
        location: $inputs.location
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      rangeText: $response.body#/text
  - stepId: saveDocument
    description: >-
      Save the document to persist the inserted content. The JavaScript API
      returns 204 with no content on success.
    operationId: saveDocument
    parameters:
    - name: document-id
      in: path
      value: $steps.createDocument.outputs.documentId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      status: $statusCode
  outputs:
    documentId: $steps.createDocument.outputs.documentId
    rangeText: $steps.insertHtml.outputs.rangeText

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-word-author-document-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.