SharePoint
SharePoint
Section titled “SharePoint”Access to Microsoft SharePoint sites, document libraries, and files via the Microsoft Graph API.
- List and search SharePoint sites
- Access document libraries and folders
- Read, upload, and manage files
- Access site lists and list items
Common Endpoints
Section titled “Common Endpoints”List All Sites
Section titled “List All Sites”GET /sites?search=*Get Site by ID
Section titled “Get Site by ID”GET /sites/{site-id}List Document Libraries (Drives)
Section titled “List Document Libraries (Drives)”GET /sites/{site-id}/drivesList Files in Drive Root
Section titled “List Files in Drive Root”GET /sites/{site-id}/drive/root/childrenList Files in Folder
Section titled “List Files in Folder”GET /sites/{site-id}/drive/root:/{folder-path}:/childrenDownload File Content
Section titled “Download File Content”GET /sites/{site-id}/drive/items/{item-id}/contentSearch Files in Site
Section titled “Search Files in Site”GET /sites/{site-id}/drive/root/search(q='{query}')Upload File
Section titled “Upload File”PUT /sites/{site-id}/drive/root:/{filename}:/contentBody: [file content]Query Parameters
Section titled “Query Parameters”Common OData query parameters:
$select: Choose specific fields$expand: Include related entities$filter: Filter results$orderby: Sort results$top: Limit number of results
Setup Guide
Section titled “Setup Guide”Configuration
Section titled “Configuration”Required config.json:
{ "name": "SharePoint", "slug": "sharepoint", "enabled": true, "provider": "microsoft", "type": "api", "api": { "baseUrl": "https://graph.microsoft.com/v1.0/", "authType": "bearer", "microsoftService": "sharepoint", "testEndpoint": { "method": "GET", "path": "sites?search=*" } }, "iconUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20241209.001/assets/brand-icons/product/svg/sharepoint_48x1.svg"}Authentication
Section titled “Authentication”Use source_microsoft_oauth_trigger to start the Microsoft OAuth flow.