API reference
SharePoint bindings
List
GET/api/bindings
json
{
"templates": [ /* Binding[] */ ],
"agreements": [ /* Binding[] */ ]
}Create
POST/api/bindings
json
{
"role": "agreements",
"site_id": "contoso.sharepoint.com,…",
"drive_id": "b!…",
"item_id": "01…",
"name": "Contracts/Signed",
"web_url": "https://contoso.sharepoint.com/sites/contracts/Shared Documents/Signed"
}Resolve
POST/api/bindings/resolve
Resolves a SharePoint URL to a (site_id, drive_id, item_id) triple ahead of binding.
Re-ingest
POST/api/bindings/{role}/{drive_id}/{item_id}/reingest
Poll now
POST/api/bindings/poll
Triggers an immediate pass across every binding. New files are also picked up automatically on a regular schedule.
Preview
POST/api/bindings/preview
Lists files in a candidate folder without binding it. Useful for the folder browser.
Delete
DELETE/api/bindings/{role}/{drive_id}/{item_id}
Graph helpers
GET/api/graph/sites
GET/api/graph/sites/{site_id}/drives
GET/api/graph/drives/{drive_id}/folders
GET/api/graph/drives/{drive_id}/breadcrumb/{item_id}