---
title: "Get a File Insight Preview Image"
method: POST
path: "/Me/Insights/Files/Preview"
tags: ["Me"]
---

# Get a File Insight Preview Image

`POST /Me/Insights/Files/Preview`

**Requires permissions:** *StaffMember* or *Student*

Resolves the preview image for a file insight (SharePoint links are fetched via Graph).

## Request body

- GetInsightsFilePreviewImageRequest
  - `id` string, nullable
  - `lastShared` LastShared
    - `sharedDateTime` string, nullable
    - `sharingType` string, nullable
    - `sharedBy` SharedBy
      - `displayName` string, nullable
      - `address` string, nullable
      - `id` string, nullable
  - `resourceVisualization` ResourceVisualization
    - `title` string, nullable
    - `type` string, nullable
    - `mediaType` string, nullable
    - `previewImageUrl` string, nullable
    - `previewText` string, nullable
    - `containerWebUrl` string, nullable
    - `containerDisplayName` string, nullable
    - `containerType` string, nullable
    - `preview` MicrosoftInsightsFilePreview
      - `@odata.context` string, nullable
      - `height` integer, nullable
      - `url` string, nullable
      - `width` integer, nullable
  - `resourceReference` ResourceReference
    - `webUrl` string, nullable
    - `id` string, nullable
    - `type` string, nullable

## Response `200`

Success - Returned preview

- GetInsightsFilePreviewImageResponse
  - `@odata.context` string, nullable
  - `height` integer, nullable
  - `url` string, nullable
  - `width` integer, nullable

## Other responses

- `400` — An Error Occurred - Could not get preview
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.net/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/versions/fab57bf5558a/schema)
