Workflows
Photos
Photos never travel through MCP tools. They go to two plain HTTP endpoints with the same API key: upload_media for one photo and upload_media_batch for up to ten.
Whose photos
Photos are the creator's own files. Never download images from the web, stock sites or social media, and never generate them. Ask who took each photo: a photo that is not the creator's own carries the photographer's name in credit, which stays stored with the photo. Buyers see a credit only where creditShown is true (update_media), off by default, or the photo's licence requires it.
The one exception is a guide the creator asks you to build from licensed photos: then only licences that allow commercial use (the Unsplash License, CC0, public domain; CC BY always shows its credit), and every photo carries credit, licence, sourcePageUrl and creditUrl.
Upload one photo
Resize to 2,048 px on the long side and compress first (around 80 percent quality, well under 1 MB). Then send the bytes with the owner on the query string:
curl -X POST "https://sceniq.earth/api/v1/media/upload?ownerType=spot&ownerId=SPOT_ID&credit=Mara%20Lindgren&alt=Rainbow%20rings%20of%20Grand%20Prismatic%20Spring" \
-H "Authorization: Bearer $SCENIQ_API_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary @grand-prismatic.jpgownerType is spot, product (store thumbnail and sales page material), collection (a chapter) or listing (sales page slides). Multipart with a file field and the same fields works too.
What the server does
It checks the real file type (JPEG, PNG or WebP; at most 6 MB and 6,000 px per side), applies the EXIF rotation, scales the long side to 2,048 px, stores WebP without EXIF, GPS, XMP or IPTC metadata, and keeps the capture date as capturedOn. Photos get a 640 px thumbnail the apps use for maps, lists and offline downloads. The response is the new photo with its mediaId.
Several photos at once
curl -X POST "https://sceniq.earth/api/v1/media/upload-batch" \
-H "Authorization: Bearer $SCENIQ_API_KEY" \
-F 'manifest=[{"file":"a","ownerType":"spot","ownerId":"SPOT_ID","credit":"Mara Lindgren","alt":"The spring from the overlook"}]' \
-F "a=@overlook.jpg"Each file succeeds or fails on its own; the response lists every result. Each file counts against the upload limit.
Main picture and store thumbnail
Choose these with update_guide, using existing ids from list_media:
mainPictureMediaId: the main picture, the large photo behind the guide's title on its Home in the app, before and after purchase. Choose a scenic photo with room for the overlaid title.thumbnailMediaId: the store thumbnail's own photo, for the tall 4:5 guide card in the Sceniq Earth Store, on the creator's profile and in buyers' libraries. A collage or cover artwork can suit this card.
By default the store thumbnail follows the main picture (thumbnailLinked: true): every card shows the picture the guide opens on, and the app opens the card out of that same photo. Setting thumbnailMediaId unlinks the two, so the cards show their own photo; thumbnailLinked: true links them again and keeps that photo for later.
Either choice can use a spot photo of this guide and makes it public before purchase. A photo of another guide is refused. Both fields can be sent in the same request, so the two choices can be exchanged together without uploading the photos again.
clearMainPicture: true restores the automatic main picture: the first credited photo in the main published sales-page hero, then the store thumbnail's own photo or available guide photos. clearThumbnail: true removes the store thumbnail's own photo. Clearing either choice leaves the other chosen image unchanged. Setting a sales-page hero does not explicitly select a main picture, but it can change that automatic fallback. homeCoverMediaId and clearHomeCover are deprecated earlier names of the main picture's fields and still work.
get_guide and the update reply return mainPictureMediaId (null for automatic), the resolved mainPictureUrl, thumbnailUrl and thumbnailLinked. Read them back to check both surfaces.
Chapter page photos
Use ownerType=collection and ownerId=collectionId to upload a chapter-owned photo, singly or in a batch. Both paths return a mediaId and a thumbnail. Reference that id in a Cover, Photo and text, Big photo, Gallery, Quote or About me slot through set_chapter_pages. You can reuse spot photos of the same guide from list_media, without copying them. Product and listing photos are refused.
Send the full page stack, keeping stable ids and the last updatedAt as expectedUpdatedAt. A Spots page shows a heading only when kicker, title or lead has text. Contents, Collections and Itineraries show referenced items first in ref order, then unreferenced guide rows in guide order. Refs also dress or hide those rows.
A chapter's spots are the unique spotKey refs on its Spots pages, in page order then ref order. A Spots page holds up to 500 spots, with at most 500 distinct spots per chapter. Saving pages sets the chapter membership; pages [] clears it. set_chapter_members keeps retained spots where they are on their pages, removes dropped ones and appends new ones to the last Spots page, or a new trailing reader page when needed. Reorder through the pages.
For data awaiting the spotsIntoPages migration, read members as well as pages and carry member spots missing from the pages onto a Spots page before saving. Page replacement removes any spots left out.
target=blob remains available for a menu thumbnail via update_chapter coverStorageId. set_chapter_intro is deprecated for one release and converts its legacy input to pages; new integrations use media ids and set_chapter_pages. The deprecated body input creates Text pages, and can update chapters with only Text and Spots pages, preserving existing Spots pages and leftover member spots. Chapter responses expose pages, replacing intro and body.
After the upload
- Upload each photo once. Keep the
mediaId; change captions, credits and the rest with update_media. For a chapter page replacement, upload the new photo and save the page stack; unused chapter-owned media is released on save. Reused spot photos stay on their spot. For a spot photo replacement, upload the new one and delete_media the old one. - Upload the full framing and set a focal point (
focalX,focalYfrom 0 to 1) instead of cropping: the apps crop per surface and keep that point in frame. - Write
altfor what the photo shows; the caption is stored, but buyers do not see it for now. - Say what it shows (
shows) and, when known, where it was taken (takenAtwith its precision) and how that was confirmed (locationVerifiedBy). Readiness flags a precise location more than 2 km from the pin, and photos taken before a change at the spot. - reorder_media moves a photo in its gallery; list_media shows every photo with its fields.
A guide publishes only when every live spot with photos turned on has at least one photo.