---
title: "Preview my private context"
method: GET
path: "/api/me/resources/{id}/preview"
---

# Preview my private context

`GET /api/me/resources/{id}/preview`

## Request

- Base URL: `https://www.toma.com`
- URL: `https://www.toma.com/api/me/resources/{id}/preview`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

## Path parameters

- `id` string, required

## Response `200`

Private member data. Responses use Cache-Control: private, no-store.

- union
  - object
    - `kind` 'note', required
    - `text` string, required
  - object
    - `kind` 'file', required
    - `preview` union, required
      - object
        - `kind` 'image', required
        - `fileId` string, required
        - `path` string, required
        - `mimeType` 'image/png' | 'image/jpeg', required
        - `data` string, byte, required
      - object
        - `kind` 'unavailable', required
        - `fileId` string, required
        - `path` string, required
        - `reason` string, required
  - object
    - `kind` 'recording', required
    - `videoUrl` string, nullable, required
    - `audioUrl` string, nullable, required
    - `captionsUrl` string, nullable, required
    - `transcript` string
    - `durationMs` number, required
    - `originals` object[], required
      - `trackId` string, required
      - `kind` string, required
      - `mimeType` string, required
      - `url` string, required
  - object
    - `kind` 'unavailable', required
    - `reason` string, required

## Other responses

- `400`: Invalid input.
- `401`: Sign in. Capture tokens do not grant access to context.
- `404`: Context or task creation is missing, removed, or owned by another member.
- `409`: The revision, context version, quota, or task state changed. Refresh before retrying.
- `503`: Storage or automatic processing is unavailable. Originals remain private.

---

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