---
title: "Resolve and read a SharePoint modern page from its URL"
method: GET
path: "/v1/capabilities/microsoft-365/site-page-by-link"
tags: ["Capability Sources"]
---

# Resolve and read a SharePoint modern page from its URL

`GET /v1/capabilities/microsoft-365/site-page-by-link`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/capabilities/microsoft-365/site-page-by-link`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Turns a SharePoint modern page link (ending in .aspx under SitePages) into its site and full readable page content. Use this instead of drive-item-by-link for SitePages .aspx links. Uses the SharePoint site access permission.

## Query parameters

- `url` string, starts_with, required

## Response `200`

Resolved SharePoint page, or not_found when no page matched on the site.

- union
  - object
    - `ok` true, required
    - `status` 'page', required
    - `site` Microsoft365Site, required
      - `id` string, required
      - `name` string, required
      - `webUrl` string, required
      - `description` string, required
    - `page` Microsoft365SitePage, required
      - `id` string, required
      - `name` string, required
      - `title` string, required
      - `description` string, required
      - `webUrl` string, required
      - `createdDateTime` string, required
      - `lastModifiedDateTime` string, required
      - `pageLayout` string, required
      - `sectionCount` integer, required
      - `sections` Microsoft365SitePageSection[], required
        - `layout` string, required
        - `text` string, required
        - `unsupportedWebPartCount` integer, required
      - `text` string, required
      - `truncated` boolean, required
  - object
    - `ok` true, required
    - `status` 'not_found', required
    - `site` Microsoft365Site, required
      - `id` string, required
      - `name` string, required
      - `webUrl` string, required
      - `description` string, required
    - `message` string, required

## Other responses

- `400`: A request parameter or payload is invalid.
- `401`: The caller must be signed in.
- `403`: The connection is blocked by organization policy.
- `409`: The calling member has not connected Microsoft 365 or is missing permission.
- `502`: Microsoft Graph rejected the request.

## Changes

- **2026-12-02** `79f1f5ef5c76`: 1 info
  - removed the non-success response with the status `404`
- **2026-11-30** `8491c9c1b679`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/capabilities/microsoft-365/site-page-by-link/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
