Builder

Live editing: what the editor shows (pages and their sections, theme, languages, pictures) and the edit version

get/builder/sessions/{sessionId}/edits

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/edits
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

sessionIdstring uuid required

Response

The editor state

availableboolean required
reason'archived' | 'not_ready' | 'no_pages' | 'null' nullable required

Why editing is not available (null when it is)

versioninteger required
pendingChangesinteger required
defaultLangstring required
languagesstring[] required
siteTheme'light' | 'dark' required
imageGenerationboolean required

AI pictures can be generated on this server

freePhotosboolean required

The free CC0 photo search is available

previewingstring nullable required

The version (turn id) the preview shows read-only, editing off meanwhile (null: the current files)

Changes

No recorded changes to this operation across all 1 revision of this API.