sites

Validate a create-site payload (dry run)

Validates the same JSON body as POST /api/v1/sites (templateId, blank, or full pages[]) without persisting or consuming create-site quota. Use before large programmatic imports.

post/api/v1/sites/validate

Request

  • Base URL: https://slatehut.com
  • URL: https://slatehut.com/api/v1/sites/validate
  • Auth: HTTP bearer

Request body

subdomainstring

Optional; random site-xxxxxxxx if omitted

titlestring

Defaults from template or "Untitled site"

descriptionstring

Default meta description (editor “Site settings”)

socialImageUrlstring

Default Open Graph / social share image URL

faviconUrlstring

Tab icon URL (often from media upload)

headScriptsstring

Trusted snippets for head (sanitized like the editor)

templateIdstring

Built-in template id from GET /api/v1/templates (e.g. aiSaas, financialAdvisor, lawFirm, medicalAesthetic, realEstate, executiveCoach, agency, boutiqueHotel, weddingVenue, interiorDesign, dtcProduct, onlineCourse, fineDining, luxuryPortfolio, comingSoon).

blankboolean

If true, home page has no blocks (empty canvas) instead of a template

Response

Valid payload

oktrue required
pageCountinteger required
blockCountinteger required

Changes

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