GenPages
Ask the AI builder to design a campaign's page. Returns a run id.
Changed onThe builder writes its result straight onto the campaign, so once the run finishes, pages/design returns the new HTML and newly generated pages use it. Generation spends credits; with none left the request fails with 402.
By default the builder edits the campaign's existing design. Pass replace: true to have it start from a blank page instead.
post/api/external/v1/pages/generate
Request
- Base URLhttps://backend.genpage.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"workspace_id": 55,
"campaign_id": 231,
"prompt": "A landing page for fintech CTOs, with a hero, three benefits, and a demo CTA."
}Response
Example response
{
"run_id": "run_01H…",
"status": "queued",
"campaign_id": 231
}Changes
- info
endpoint added
- info