Builder

AI content: translate the whole site into one more language (saved as a version; multilingual sites are an add-on). Metered in Build Credits (DeepSeek, a few hundredths of a credit for a short text); the answer includes usage.

post/builder/sessions/{sessionId}/content/languages

Request

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

Path parameters

sessionIdstring uuid required

Request body

langstring required
formality'informal' | 'formal'
glossarystring[]

Words never translated (brand and product names); saved for later updates

translateAddressesboolean

Give the pages addresses in the new language (default: yes for Latin-script languages)

Response

The version

previousTurnIdstring nullable required

Restore this version to undo the change

changedFilesstring[] required
untranslatedstring[] required

Texts that keep the default language's words for now (shown as "needs update")

Changes

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