Microsoft OneDrive Sharing API

The Sharing API from Microsoft OneDrive — 4 operation(s) for sharing.

Operations 4

POST /drives/{driveId}/items/{itemId}/invite Send sharing invitation #
GET /drives/{driveId}/items/{itemId}/permissions List driveItem permissions #
GET /shares/{shareId} Access driveItem by share id #

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-onedrive-sharing-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-onedrive-sharing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft OneDrive API (Microsoft Graph) DriveItems Sharing API
  description: Minimal OpenAPI definition for the OneDrive REST API exposed via Microsoft Graph for working with drives and driveItems including OneDrive, OneDrive for Business, and SharePoint document libraries.
  version: v1.0
  x-generated-from: https://learn.microsoft.com/en-us/onedrive/developer/rest-api/
  x-generated-by: claude-crawl-2026-05-08
servers:
- url: https://graph.microsoft.com/v1.0
  description: Microsoft Graph v1.0
security:
- bearerAuth: []
tags:
- name: Sharing
paths:
  /drives/{driveId}/items/{itemId}/createLink:
    parameters:
    - $ref: '#/components/parameters/DriveId'
    - $ref: '#/components/parameters/ItemId'
    post:
      tags:
      - Sharing
      summary: Create sharing link
      operationId: createSharingLink
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericObject'
      responses:
        '200':
          description: OK
  /drives/{driveId}/items/{itemId}/invite:
    parameters:
    - $ref: '#/components/parameters/DriveId'
    - $ref: '#/components/parameters/ItemId'
    post:
      tags:
      - Sharing
      summary: Send sharing invitation
      operationId: inviteToDriveItem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericObject'
      responses:
        '200':
          description: OK
  /drives/{driveId}/items/{itemId}/permissions:
    parameters:
    - $ref: '#/components/parameters/DriveId'
    - $ref: '#/components/parameters/ItemId'
    get:
      tags:
      - Sharing
      summary: List driveItem permissions
      operationId: listDriveItemPermissions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericList'
  /shares/{shareId}:
    parameters:
    - in: path
      name: shareId
      required: true
      schema:
        type: string
    get:
      tags:
      - Sharing
      summary: Access driveItem by share id
      operationId: getSharedItem
      responses:
        '200':
          description: OK
components:
  schemas:
    GenericList:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/GenericObject'
      additionalProperties: true
    GenericObject:
      type: object
      additionalProperties: true
  parameters:
    ItemId:
      in: path
      name: itemId
      required: true
      schema:
        type: string
    DriveId:
      in: path
      name: driveId
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT