List SharePoint Sites

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.zerionsoftware.com/doc/iformbuilder-v80/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "iFormBuilder V80 MCP server": {
    "url": "https://apidocs.zerionsoftware.com/doc/iformbuilder-v80/mcp"
  }
}

Close
GET /media_storage/connections/7/sites

Lists the SharePoint sites the profile's SharePoint connection can use, for site_id in PUT /media_storage/active. The tenant's root site is listed with the id root.

Authorization

Internal clients only, and a SERVER or COMPANY user.

Headers

  • Authorization string

    e.g. Bearer {access_token}

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required

      root, or a Graph site id (host,siteCollectionId,webId); pass as site_id

    • label string Required

      the site's display name

  • 401

    Unauthorized - missing or invalid bearer token.

  • 403

    Forbidden - the client is not an internal client, or the token belongs to a BASIC user.

  • 409

    Conflict - the profile has no SharePoint connection, or it must be reconnected.

  • 422

    Unprocessable Entity - the SharePoint connection is a personal Microsoft account; SharePoint needs a work or school account.

  • 502

    Bad Gateway - Microsoft Graph failed.

GET /media_storage/connections/7/sites
curl \
 --request GET 'https://api.iformbuilder.com/exzact/api/v80/[servername]/media_storage/connections/7/sites' \
 --header "Authorization: Bearer {access_token}"
Response examples (200)
[
  {
    "id": "root",
    "label": "Contoso (root)"
  },
  {
    "id": "contoso.sharepoint.com,2C712604-1370-44E7-A1F5-426573FDA80A,2D2244C3-251A-49EA-93A8-39E1C3A060FE",
    "label": "Operations"
  }
]