GenPages
Get a campaign's current page design.
Changed onReturns the HTML and CSS the campaign renders. Every generated page is this design with the lead's variables substituted in, so this is what to read to see what the pages actually say.
get/api/external/v1/pages/design
Request
- Base URLhttps://backend.genpage.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
workspace_idinteger required
The workspace the campaign belongs to.
Example:55
campaign_idinteger required
From campaigns/get-list.
Example:231
Response
Example response
{
"campaign_id": 231,
"has_design": true,
"is_live": true,
"has_unpublished_changes": false,
"html": "<section>…</section>",
"css": "body{…}",
"updated_at": "2026-08-17T09:00:00.000000Z",
"note": null
}Changes
- breaking
added
subschema #1subschema #2to the response bodyoneOflist for the response status - info
removed
subschema #1subschema #2from the response bodyoneOflist for the response status
- breaking
- info
endpoint added
- info