Microsoft Excel (Advanced) Worksheets API

Worksheet operations

Operations 5

GET /me/drive/items/{item-id}/workbook/worksheets List worksheets in a workbook #
POST /me/drive/items/{item-id}/workbook/worksheets Add a worksheet #
GET /me/drive/items/{item-id}/workbook/worksheets/{worksheet-id} Get a worksheet #
PATCH /me/drive/items/{item-id}/workbook/worksheets/{worksheet-id} Update worksheet properties #
DELETE /me/drive/items/{item-id}/workbook/worksheets/{worksheet-id} Delete a worksheet #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/microsoft-excel-advanced-worksheets-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

microsoft-excel-advanced-worksheets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Graph Excel Charts Worksheets API
  description: 'REST API for reading and writing Excel workbooks stored in OneDrive for

    Business, SharePoint, or a group drive via Microsoft Graph. Supports

    worksheet, table, chart, range, and named-item operations on .xlsx

    workbooks. All requests require an OAuth 2.0 bearer token from the

    Microsoft identity platform; use Files.Read for read operations and

    Files.ReadWrite for write operations. Optional workbook-session-id

    header enables persistent or non-persistent session modes.

    '
  version: v1.0
  contact:
    name: Microsoft Graph Support
    email: graphsdksupport@microsoft.com
  license:
    name: Microsoft Terms of Use
    url: https://www.microsoft.com/en-us/legal/terms-of-use
servers:
- url: https://graph.microsoft.com/v1.0
  description: Microsoft Graph v1.0
security:
- oauth2:
  - Files.ReadWrite
tags:
- name: Worksheets
  description: Worksheet operations
paths:
  /me/drive/items/{item-id}/workbook/worksheets:
    get:
      tags:
      - Worksheets
      summary: List worksheets in a workbook
      operationId: worksheets_list
      parameters:
      - $ref: '#/components/parameters/itemId'
      - $ref: '#/components/parameters/sessionId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorksheetCollection'
    post:
      tags:
      - Worksheets
      summary: Add a worksheet
      operationId: worksheets_add
      parameters:
      - $ref: '#/components/parameters/itemId'
      - $ref: '#/components/parameters/sessionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Worksheet'
  /me/drive/items/{item-id}/workbook/worksheets/{worksheet-id}:
    get:
      tags:
      - Worksheets
      summary: Get a worksheet
      operationId: worksheets_get
      parameters:
      - $ref: '#/components/parameters/itemId'
      - $ref: '#/components/parameters/worksheetId'
      - $ref: '#/components/parameters/sessionId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Worksheet'
    patch:
      tags:
      - Worksheets
      summary: Update worksheet properties
      operationId: worksheets_update
      parameters:
      - $ref: '#/components/parameters/itemId'
      - $ref: '#/components/parameters/worksheetId'
      - $ref: '#/components/parameters/sessionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Worksheet'
      responses:
        '200':
          description: OK
    delete:
      tags:
      - Worksheets
      summary: Delete a worksheet
      operationId: worksheets_delete
      parameters:
      - $ref: '#/components/parameters/itemId'
      - $ref: '#/components/parameters/worksheetId'
      - $ref: '#/components/parameters/sessionId'
      responses:
        '204':
          description: No Content
components:
  parameters:
    worksheetId:
      name: worksheet-id
      in: path
      required: true
      schema:
        type: string
    sessionId:
      name: workbook-session-id
      in: header
      required: false
      description: Optional session id from createSession to enable persistent or non-persistent session mode
      schema:
        type: string
    itemId:
      name: item-id
      in: path
      required: true
      description: DriveItem ID of the .xlsx workbook
      schema:
        type: string
  schemas:
    WorksheetCollection:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Worksheet'
    Worksheet:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        position:
          type: integer
        visibility:
          type: string
          enum:
          - Visible
          - Hidden
          - VeryHidden
  securitySchemes:
    oauth2:
      type: oauth2
      description: Microsoft Entra ID OAuth 2.0
      flows:
        authorizationCode:
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
          tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token
          scopes:
            Files.Read: Read user files
            Files.ReadWrite: Read and write user files
            Sites.Read.All: Read items in all site collections
            Sites.ReadWrite.All: Read and write items in all site collections