# create_screenshot_links

Links to screenshot the guide for the sales page.

`POST /v1/guides/{productId}/screenshot-links` · MCP tool `create_screenshot_links` · scope `write` · beta · since 2026-11-20.3

For the sales page gallery's display frame (gallery.frame display). Returns links to the guide's Home, Explore, Map, a spot and a collection in the web viewer that open without a sign-in, read-only, for 30 minutes; a new call ends the earlier links. Screenshot each link in a headless browser at the returned viewport once the page marks itself ready, for example: npx playwright screenshot --channel chrome --viewport-size "1600, 900" --wait-for-selector "[data-preview-ready]" --wait-for-timeout 1500 "<url>" explore.png (without Google Chrome installed, run npx playwright install chromium and leave out --channel chrome). Look at every file before you use it. Upload the good ones with upload_media (ownerType product, the link's caption as caption), then put their mediaIds in the gallery with save_sales_page_draft and frame display. When you cannot run a browser, give the creator the links: they open each in a desktop browser window, take a screenshot and add it in the studio. The links show the guide's paid content: share them with nobody but the creator.

## Path parameters

- `productId` (string, required): Id of the guide (a product of type map). From list_guides or create_guide.

## Body parameters

- `spotKey` (string, optional): Optional: the spot whose page to link. Absent: the guide's first preview spot, else the first spot of its first collection, else any spot that is not archived.

## Returns

201.

- `productId` (string, required): The guide's id.
- `expiresAt` (number, required): When the links stop opening the guide, in ms since the epoch (30 minutes after the call).
- `viewport` (object, required): The browser size to screenshot at: 16:9, the shape of the gallery's display screen.
  - `width` (number, required): Pixels wide: 1600.
  - `height` (number, required): Pixels high: 900.
- `links` (array of objects, required): One link per page; spot and collection only when the guide has one.
  - `screen` (string, required): Which page of the guide: home, explore (every photo on one wall), map, spot (one spot's page) or collection (one collection). One of `home`, `explore`, `map`, `spot`, `collection`.
  - `url` (string, required): The page in the web viewer. It opens the guide without a sign-in until expiresAt; keep it to yourself and the creator.
  - `caption` (string, required): A caption for the slide made from this screenshot.
- `nextStep` (string, required): What to do next.

## Examples

### Links to screenshot the parks guide for the gallery's display frame

```bash
curl -X POST "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/screenshot-links" \
  -H "Authorization: Bearer $SCENIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

MCP `tools/call`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_screenshot_links",
    "arguments": {
      "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2"
    }
  }
}
```

Response 201:

```json
{
  "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
  "expiresAt": 1790675040000,
  "viewport": {
    "width": 1600,
    "height": 900
  },
  "links": [
    {
      "screen": "home",
      "url": "https://app.sceniq.earth/Pk7Rw2#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "American West: Parks at First Light: the guide's Home"
    },
    {
      "screen": "explore",
      "url": "https://app.sceniq.earth/Pk7Rw2/explore#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "Every spot's photos on one wall"
    },
    {
      "screen": "map",
      "url": "https://app.sceniq.earth/Pk7Rw2/map#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "Every spot on the map"
    },
    {
      "screen": "spot",
      "url": "https://app.sceniq.earth/Pk7Rw2/01M2Z1G0Y0QG7M2V6N9R3T5W8Y#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "Grand Prismatic Spring"
    },
    {
      "screen": "collection",
      "url": "https://app.sceniq.earth/Pk7Rw2/collection/first-light#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "First light"
    }
  ],
  "nextStep": "Screenshot each link at the viewport once [data-preview-ready] is on the page, look at each file, upload the good ones with upload_media (ownerType product), then add them to the gallery with save_sales_page_draft and frame display."
}
```

### The same, with Grand Prismatic as the spot

```bash
curl -X POST "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/screenshot-links" \
  -H "Authorization: Bearer $SCENIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "spotKey": "01M2Z1G0Y0QG7M2V6N9R3T5W8Y"
}'
```

MCP `tools/call`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_screenshot_links",
    "arguments": {
      "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
      "spotKey": "01M2Z1G0Y0QG7M2V6N9R3T5W8Y"
    }
  }
}
```

Response 201:

```json
{
  "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
  "expiresAt": 1790675040000,
  "viewport": {
    "width": 1600,
    "height": 900
  },
  "links": [
    {
      "screen": "home",
      "url": "https://app.sceniq.earth/Pk7Rw2#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "American West: Parks at First Light: the guide's Home"
    },
    {
      "screen": "explore",
      "url": "https://app.sceniq.earth/Pk7Rw2/explore#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "Every spot's photos on one wall"
    },
    {
      "screen": "map",
      "url": "https://app.sceniq.earth/Pk7Rw2/map#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "Every spot on the map"
    },
    {
      "screen": "spot",
      "url": "https://app.sceniq.earth/Pk7Rw2/01M2Z1G0Y0QG7M2V6N9R3T5W8Y#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "Grand Prismatic Spring"
    },
    {
      "screen": "collection",
      "url": "https://app.sceniq.earth/Pk7Rw2/collection/first-light#preview=3f9c2e71-5b0d-4a8e-9c61-7d2b4f0e8a13",
      "caption": "First light"
    }
  ],
  "nextStep": "Screenshot each link at the viewport once [data-preview-ready] is on the page, look at each file, upload the good ones with upload_media (ownerType product), then add them to the gallery with save_sales_page_draft and frame display."
}
```

## Errors

- `invalid_argument` (400): A required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- `invalid_request` (400): A writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- `unauthenticated` (401): The request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- `invalid_api_key` (401): The key is unknown, revoked or expired.
- `api_scope_required` (403): A read-only key called a write operation, or a key without the publish option called publish_changes.
- `forbidden` (403): The key belongs to a creator account that is no longer active.
- `not_found` (404): The id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
- `payload_too_large` (413): A JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
- `rate_limited` (429): Over a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- `internal_error` (500): An unexpected failure. The message is hidden on purpose.

Reference: https://developers.sceniq.earth/reference/create_screenshot_links
