curl --request POST \
--url https://api.scalev.com/v3/chatgpt/pages/{page_id}/html-mode/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_html": "<main><h1>Launch offer</h1><a href=\"#order\">Buy now</a></main>",
"agent_css": "main { max-width: 960px; margin: 0 auto; }",
"agent_js": "const data = window.Scalev.data.get();",
"agent_csp_policy": {
"img_src": [
"https://cdn.example.com"
]
}
}
'{
"valid": true,
"validation_warnings": [
{
"severity": "warning",
"code": "head_content_not_allowed",
"field": "agent_html",
"message": "<string>"
}
],
"validation_errors": [
{
"severity": "warning",
"code": "head_content_not_allowed",
"field": "agent_html",
"message": "<string>"
}
]
}Validates arbitrary Agent HTML Mode payload without saving. Use this before draft creation when feasible.
curl --request POST \
--url https://api.scalev.com/v3/chatgpt/pages/{page_id}/html-mode/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_html": "<main><h1>Launch offer</h1><a href=\"#order\">Buy now</a></main>",
"agent_css": "main { max-width: 960px; margin: 0 auto; }",
"agent_js": "const data = window.Scalev.data.get();",
"agent_csp_policy": {
"img_src": [
"https://cdn.example.com"
]
}
}
'{
"valid": true,
"validation_warnings": [
{
"severity": "warning",
"code": "head_content_not_allowed",
"field": "agent_html",
"message": "<string>"
}
],
"validation_errors": [
{
"severity": "warning",
"code": "head_content_not_allowed",
"field": "agent_html",
"message": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.scalev.com/llms.txt
Use this file to discover all available pages before exploring further.
OAuth access tokens are rate-limited per OAuth application and merchant installation.
Numeric Scalev page ID.
Body-only HTML Mode payload. Do not include head, meta, title, favicon, crawler, domain, credential, cookie, token, or private backend behavior.
Body-only HTML. Do not include doctype, html, body, head, meta, link, title, favicon, SEO, crawler, or domain settings.
204800102400JavaScript must use documented window.Scalev runtime APIs only.
102400Supported Agent HTML CSP keys. Unsupported keys are rejected.
Show child attributes
Apakah halaman ini membantu?