sites-ai

Generate section block HTML with AI

Returns sanitized html and optional scoped css for a section block. Consumes workspace AI credits. Does not persist; PATCH the block afterward.

post/api/v1/sites/{subdomain}/generate-section

Request

  • Base URL: https://slatehut.com
  • URL: https://slatehut.com/api/v1/sites/{subdomain}/generate-section
  • Auth: HTTP bearer

Request body

promptstring required
existingHtmlstring
existingCssstring
intentstring

Response

Generated section

htmlstring
cssstring
generationModelstring

Changes

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