Skip to content

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
GET /sites?search=*
GET /sites/{site-id}
GET /sites/{site-id}/drives
GET /sites/{site-id}/drive/root/children
GET /sites/{site-id}/drive/root:/{folder-path}:/children
GET /sites/{site-id}/drive/items/{item-id}/content
GET /sites/{site-id}/drive/root/search(q='{query}')
PUT /sites/{site-id}/drive/root:/{filename}:/content
Body: [file content]

Common OData query parameters:

  • $select: Choose specific fields
  • $expand: Include related entities
  • $filter: Filter results
  • $orderby: Sort results
  • $top: Limit number of results

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"
}

Use source_microsoft_oauth_trigger to start the Microsoft OAuth flow.