backup_guide
A full backup of one guide, to keep on the creator's computer.
/v1/guides/{productId}/backupEverything the guide is made of, for a backup the creator keeps: every row of the draft as it is stored (the guide's settings, maps, properties, spots, chapters and lists, photos with their credits, hikes, places, itineraries, links between pins and the sales pages), the active prices, and files, every stored file those rows use with its path, size, SHA-256 and download link. Buyers, sales, reviews and analytics are not part of it. Returns two links that work for one hour: backup, the JSON file, and kml, the live pins in chapter folders, which open in Google Earth and go back into a guide through the studio's spot import (null when no spot has a pin). Save both under the returned file names where the creator asked, then download every entry of the JSON's files list to its path, relative to the JSON file (for example curl -o <path> <url>), and check each one against its sha256 (shasum -a 256). The backup holds the guide's paid content: share it with nobody but the creator. A read key is enough. At most 10 backups of a guide an hour. Refused with 409 busy when the guide kept changing while it was read: try again once the edits have stopped.
curl "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/backup" \
-H "Authorization: Bearer $SCENIQ_API_KEY"Path parameters
- productIdstring · guide idrequired
Id of the guide (a product of type map). From
list_guidesorcreate_guide.
Returns
200 OK with this object.
- productIdstring · guide idrequired
The guide's id.
- namestringrequired
The guide's name.
- expiresAtnumberrequired
When the backup and kml links stop working, in ms since the epoch (one hour after the call).
- backupobjectrequired
The backup itself: format sceniq-earth-guide-backup, with readme, guide, counts, prices, tables (every row by table, ids included), files (each stored file with path, size, sha256,
contentType, url andusedBy, the rows and fields that use it) andmissingFiles(fields naming a file that is gone).Show 3 fieldsHide fields
- urlstringrequired
Where to download the backup's JSON file until
expiresAt. - fileNamestringrequired
A name to save it under: <guide>-backup-<YYYY-MM-DD>.json.
- bytesnumberrequired
Its size in bytes.
- kmlobject or nullrequired
The live spots as pins in chapter folders, named by their titles: it opens in Google Earth and any map app, and the studio's spot import reads it back. Null when no spot has a pin.
Show 4 fieldsHide fields
- urlstringrequired
Where to download the KML file until
expiresAt. - fileNamestringrequired
A name to save it under: <guide>-backup-<YYYY-MM-DD>.kml.
- bytesnumberrequired
Its size in bytes.
- spotsnumberrequired
Pins in it: the live spots with a location.
- countsobjectrequired
What the backup holds.
Show 3 fieldsHide fields
- rowsmap of numbersrequired
Rows in the backup per table (products, maps,
propertyDefs, spots, collections, listings, media, routes,routeSpots, facilities,routeFacilities, itineraries,collectionMembers,spotLinks). - filesnumberrequired
Stored files in the files list.
- fileBytesnumberrequired
Their size together, in bytes: what downloading them all takes.
- missingFilesnumberrequired
Fields that name a file the guide no longer has (listed in the JSON's
missingFiles); 0 normally. - nextStepstringrequired
What to do next.
{
"productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
"name": "American West: Parks at First Light",
"expiresAt": 1790676840000,
"backup": {
"url": "https://quiet-heron-512.convex.cloud/api/storage/0b6c2f1e-7d4a-4c1b-9a35-2f8e1d6c4b70",
"fileName": "american-west-parks-at-first-light-backup-2026-09-29.json",
"bytes": 412806
},
"kml": {
"url": "https://quiet-heron-512.convex.cloud/api/storage/5e2d7a90-1c3b-4f6e-8d21-a47b9c0e3f15",
"fileName": "american-west-parks-at-first-light-backup-2026-09-29.kml",
"bytes": 6412,
"spots": 12
},
"counts": {
"rows": {
"products": 1,
"maps": 1,
"propertyDefs": 6,
"spots": 12,
"collections": 3,
"listings": 1,
"media": 31,
"routes": 2,
"routeSpots": 4,
"facilities": 0,
"routeFacilities": 3,
"itineraries": 1,
"collectionMembers": 14,
"spotLinks": 2
},
"files": 88,
"fileBytes": 21604318
},
"missingFiles": 0,
"nextStep": "Within the hour: save backup.url as american-west-parks-at-first-light-backup-2026-09-29.json and kml.url as american-west-parks-at-first-light-backup-2026-09-29.kml in the folder the creator chose, then download each entry of the JSON's files list (88 files) to its path next to the JSON file and check it against its sha256. The files' own links keep working after the hour. Keep the backup to the creator: it holds the guide's paid content."
}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).
- 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.
- 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.
- 409busydiscard_guide_changes while the guide's save or a publish is still building; backup_guide when the guide kept changing while it was read.
- 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.