How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Microsoft Word Body API

Operations on the document body content

Microsoft Word Body API is one of 19 APIs that Microsoft Word publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 14 JSON Schema definitions.

Tagged areas include Body. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, a JSON-LD context, a getting-started guide, and 14 JSON Schemas.

This API exposes 4 operations across 4 paths, and defines 9 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 2 base URLs: https://word.officeapps.live.com/api/v1, https://localhost:5000/api/v1.

4 operations 4 paths 9 schemas 1 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://graph.microsoft.com/v1.0
Authentication
OAuth 2.0
Resource Areas
1

Authentication & Security 1

Microsoft Word Body API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 1 scope.

  • oauth2 — OAuth 2.0 via Microsoft Identity Platform for Office Add-ins.

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 1 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Body 4

Operations on the document body content

GET
/documents/{document-id}/body
Microsoft Word Get Body
getBody 1 param → 200404
POST
/documents/{document-id}/body/insertText
Microsoft Word Insert Text
insertText 1 param body → 200400
POST
/documents/{document-id}/body/insertHtml
Microsoft Word Insert HTML
insertHtml 1 param body → 200400
POST
/documents/{document-id}/body/search
Microsoft Word Search Document
searchDocument 1 param body → 200400

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are SearchRequest (6 properties), Range (3 properties), Body (3 properties), InsertHtmlRequest (2 properties). Each schema is shown below with its type and property counts.

RangeCollection
object
Collection of ranges.
1 property
ErrorResponse
object
Error response from the API.
1 property
Body
object
Represents the body of a document or section.
3 properties
Range
object
Represents a contiguous area in a document.
3 properties
InsertTextRequest
object
Request to insert text into the document.
2 properties 2 required
InsertHtmlRequest
object
Request to insert HTML content into the document.
2 properties 2 required
SearchRequest
object
Request to search document content.
6 properties 1 required
ErrorResponse_2
object
Error response from the API.
1 property
DocumentBody
object
The main body content of a Word document.
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

microsoft-word-body-api-openapi.yml Raw ↑

Other APIs Microsoft Word publishes across the network.

Word Automation Services (SharePoint)
Microsoft Word Checkout API
Microsoft Word Comments API
Microsoft Word Content API
Microsoft Word Content Controls API
Microsoft Word Documents API
Microsoft Word Drive Items API
Microsoft Word Headers And Footers API
Microsoft Word Images API
Microsoft Word Paragraphs API
Microsoft Word Permissions API
Microsoft Word Properties API
Where this information came from

This is an independent, third-party profile of Microsoft Word Body API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.