create_screenshot_links

Links to screenshot the guide for the sales page.

POST/v1/guides/{productId}/screenshot-links
MCP tool create_screenshot_linksScope: writeBetaSince 2026-11-20.3
Markdown

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.

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

Path parameters

Body parameters

  • spotKeystringoptional

    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 Created with this object.

  • productIdstring · guide idrequired

    The guide's id.

  • expiresAtnumberrequired

    When the links stop opening the guide, in ms since the epoch (30 minutes after the call).

  • viewportobjectrequired

    The browser size to screenshot at: 16:9, the shape of the gallery's display screen.

    Show 2 fields
    • widthnumberrequired

      Pixels wide: 1600.

    • heightnumberrequired

      Pixels high: 900.

  • nextStepstringrequired

    What to do next.

Response 201
{
  "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

Every error is { error: { code, message } }. Act on the code.

  • 400invalid_argumentA 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).
  • 400invalid_requestA 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.
  • 401unauthenticatedThe request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
  • 401invalid_api_keyThe key is unknown, revoked or expired.
  • 403api_scope_requiredA read-only key called a write operation, or a key without the publish option called publish_changes.
  • 403forbiddenThe key belongs to a creator account that is no longer active.
  • 404not_foundThe id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
  • 413payload_too_largeA JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
  • 429rate_limitedOver a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
  • 500internal_errorAn unexpected failure. The message is hidden on purpose.