AtomicatAtomicat
atomicat.ai
  • English
  • Español
  • Português
Atomicat
  • Website
  • App
  • Help center
API docs
  • Introduction
  • Authentication
  • API reference

© 2026 Atomicat

Information
Account
    Get the authenticated accountgetDownload the OpenAPI documentget
Projects
    List projectsgetCreate a projectpostSearch projectsgetGet a projectgetDelete an unused projectdeleteUpdate a projectpatch
Sites
    List sitesgetCreate a sitepostSearch sitesgetGet a siteget
Pages
    List pagesgetCreate a blank pagepostCreate a page from a templatepostDuplicate a pagepostUpdate page metadatapatchUpdate mapped page contentpatchReplace template variablespostCheck whether a page can be publishedpostPublish a pagepostGet a pagegetDelete a pagedeleteList page templatesgetSearch page templatesgetSearch pagesget
Share
    Create a share linkpost
HTML pages
    Create an HTML pagepostList HTML page filesgetUpload HTML page filespostRead an HTML page filegetReplace an HTML page fileputDelete an HTML page filedeleteEdit HTML elements by selectorpostPublish an HTML pagepostList published HTML copiesgetRestore a published HTML copypost
Builder
    Read the page buildergetRead one builder nodegetUpdate node fieldspatchReplace a builder nodepatchUpdate the page reveal delaypatchRead editable content fieldsget
Quizzes
    List quizzesgetCreate a quiz pagepostSearch quizzesgetGet a quizgetCreate a quiz from a templatepost
Funnels
    List funnelsgetCreate a funnelpostUpdate a funnelpatchSearch funnelsgetGet a funnelget
Videos
    List videosgetUpdate video player settingspatchSearch videosgetGet a videoget
Products
    List productsgetCreate a productpostUpdate a productpatchSearch productsgetGet a productgetDelete a productdelete
Leads
    Search leadsget
Analytics
    Get account countsget
Webhooks
    Subscribe to an eventpostDisable a webhook subscriptiondeleteGet a sample webhook payloadget
Schemas
Atomicat API
Atomicat API

HTML pages

Download schema

Upload an HTML site, edit its files, publish index.html, and restore a published copy.


Create an HTML page

POST
https://automation.atomicat-api.com/api/automation/v1
/pages/html

Creates an empty HTML page on a current site that already has a domain. Requires a paid plan. Upload index.html next. A builder page is not created by this route.

Required scope: pages:write.

Create an HTML page › Request Body

HtmlPageCreate
name
​string · required

Name shown in the pages list.

site_id
​string · required

Site id from GET /sites. The site must be on current hosting and already have a domain.

slug
​string

Path on the site. Empty publishes at the site root.

Create an HTML page › Responses

The created HTML page.

HtmlPage
id
​string

Page id.

name
​string

Page name.

kind
​string

html.

site_id
​string

Site id.

slug
​string

Path on the site.

preview_url
​string | null

Address of the source index.html.

POST/pages/html
curl --request POST \ --url https://automation.atomicat-api.com/api/automation/v1/pages/html \ --header 'Content-Type: application/json' \ --data ' { "name": "name", "site_id": "site_id", "slug": "slug" } '
Example Request Body
{ "name": "name", "site_id": "site_id", "slug": "slug" }
json
Example Responses
{ "id": "page_html", "name": "Spring offer", "kind": "html", "site_id": "site_123", "slug": "spring-offer", "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html" }
json
application/json

List HTML page files

GET
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/files

Required scope: pages:read.

List HTML page files › path Parameters

pageId
​string · required

HTML page id.

List HTML page files › Responses

The source files.

HtmlFileList
id
​string

Page id.

page_id
​string

Page id.

preview_url
​string | null

Address of the source index.html.

​HtmlFile[]

Source files.

GET/pages/{pageId}/files
curl --request GET \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/files
Example Responses
{ "id": "page_html", "page_id": "page_html", "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html", "files": [ { "path": "index.html", "bytes": 4000, "updated_at": "2026-11-16T12:00:00.000Z" } ] }
json
application/json

Upload HTML page files

POST
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/files

Send archive as a base64 zip up to 50 MB, or files for individual files. Text files use content. Images and fonts use data as base64. This body can be up to 70 MB. One HTML file is renamed to index.html and renamed_from is the original path. Several HTML files and no index.html return index_ambiguous, and details lists the paths. Send entry with the main path and call again. An upload with no HTML file is rejected until index.html exists. The upload changes the source copy. The live URL changes on POST /pages/{pageId}/html/publish. A builder page returns page_is_builder.

Required scope: pages:write.

Upload HTML page files › path Parameters

pageId
​string · required

HTML page id.

Upload HTML page files › Request Body

HtmlUpload
archive
​string

Base64 zip of the site. Maximum 50 MB decoded.

​HtmlFileInput[] · maxItems: 200

Individual files. Use this or archive.

entry
​string

Main HTML file to rename to index.html. Required only when the upload has several HTML files and no index.html.

site_id
​string

Site id, when it should change.

slug
​string

Path on the site.

Upload HTML page files › Responses

The stored source files.

HtmlUploadResult
id
​string

Page id.

page_id
​string

Page id.

site_id
​string | null

Site id.

slug
​string

Path on the site.

renamed_from
​string | null

Original path when one HTML file was renamed to index.html.

preview_url
​string | null

Address of the source index.html.

file_count
​integer

Files stored for the page.

bytes
​integer

Total size in bytes.

has_index
​boolean

true when index.html is stored.

​object

Tags read from index.html. Null when this upload did not include it.

POST/pages/{pageId}/files
curl --request POST \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/files \ --header 'Content-Type: application/json' \ --data ' { "archive": "archive", "files": [ { "path": "path", "content": "content", "data": "data" } ], "entry": "entry", "site_id": "site_id", "slug": "slug" } '
Example Request Body
{ "archive": "archive", "files": [ { "path": "path", "content": "content", "data": "data" } ], "entry": "entry", "site_id": "site_id", "slug": "slug" }
json
Example Responses
{ "id": "page_html", "page_id": "page_html", "site_id": "site_123", "slug": "spring-offer", "renamed_from": "home.html", "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html", "file_count": 3, "bytes": 12000, "has_index": true, "seo": { "title": "Spring offer", "description": "A six-week plan." } }
json
application/json

Read an HTML page file

GET
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/file

Returns one text file: HTML, CSS, JavaScript, JSON, text, SVG, or XML. Up to 1 MB. Pass selectors as a JSON array to return those elements instead of the whole file. Each selector that matches nothing or more than one element returns the count and no html. html and body are refused.

Required scope: pages:read.

Read an HTML page file › path Parameters

pageId
​string · required

HTML page id.

Read an HTML page file › query Parameters

path
​string · required

File path, such as index.html or css/app.css.

selectors
​string

JSON array of CSS selectors, such as ["#faq","#hero-title"]. Omit it to return the whole file.

Read an HTML page file › Responses

The file text.

HtmlFileContent
page_id
​string

Page id.

path
​string

File path.

content
​string

File text. Absent when selectors were requested.

​HtmlSelectorMatch[]

One result per requested selector.

GET/pages/{pageId}/file
curl --request GET \ --url 'https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/file?path=%3Cstring%3E'
Example Responses
{ "page_id": "page_html", "path": "index.html", "content": "<!doctype html><title>Spring offer</title>" }
json
application/json

Replace an HTML page file

PUT
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/file

Replaces one text file, up to 1 MB. Images and fonts go through POST /pages/{pageId}/files. This updates the source copy. To change one element, use POST /pages/{pageId}/file/edit. When writing HTML, put a unique id on each section and on each block a person may change.

Required scope: pages:write.

Replace an HTML page file › path Parameters

pageId
​string · required

HTML page id.

Replace an HTML page file › Request Body

HtmlFileWrite
path
​string · required

Text file to replace.

content
​string · required

Full file text. Maximum 1 MB.

Replace an HTML page file › Responses

The replaced file.

HtmlFileWriteResult
page_id
​string

Page id.

path
​string

File path.

preview_url
​string | null

Address of the source index.html.

file_count
​integer

Files stored for the page.

bytes
​integer

Total size in bytes.

has_index
​boolean

true when index.html is stored.

​object

Tags read when the replaced file is index.html.

PUT/pages/{pageId}/file
curl --request PUT \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/file \ --header 'Content-Type: application/json' \ --data ' { "path": "path", "content": "content" } '
Example Request Body
{ "path": "path", "content": "content" }
json
Example Responses
{ "page_id": "page_html", "path": "index.html", "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html", "file_count": 3, "bytes": 12000, "has_index": true, "seo": { "title": "Spring offer" } }
json
application/json

Delete an HTML page file

DELETE
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/file

index.html cannot be deleted. Replace it with an upload. Returns index_required if path is index.html.

Required scope: pages:write.

Delete an HTML page file › path Parameters

pageId
​string · required

HTML page id.

Delete an HTML page file › Request Body

HtmlFileDelete
path
​string · required

File to remove. index.html cannot be deleted.

Delete an HTML page file › Responses

The file was removed.

HtmlFileDeleteResult
page_id
​string

Page id.

success
​boolean

true when the file was removed.

preview_url
​string | null

Address of the source index.html.

file_count
​integer

Files remaining.

bytes
​integer

Total size in bytes.

has_index
​boolean

true when index.html is still stored.

DELETE/pages/{pageId}/file
curl --request DELETE \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/file \ --header 'Content-Type: application/json' \ --data '{ "path": "path" }'
Example Request Body
{ "path": "path" }
json
Example Responses
{ "page_id": "page_html", "success": true, "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html", "file_count": 2, "bytes": 8000, "has_index": true }
json
application/json

Edit HTML elements by selector

POST
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/file/edit

Changes elements in one HTML file. The rest of the file stays as it is. edits is one change or a list of up to 20. selector must match exactly one element. action is replace, contents, before, after, or remove. replace swaps the element and should keep its id. contents swaps the inside and keeps the tag. If any selector is missing, ambiguous, or overlaps another edit, the file is not saved. This updates the source copy. Publish to update the live URL. html and body are refused.

Required scope: pages:write.

Edit HTML elements by selector › path Parameters

pageId
​string · required

HTML page id.

Edit HTML elements by selector › Request Body

HtmlFileEdit
path
​string · required

HTML file to edit, usually index.html.

​object[] · maxItems: 20 · required

The edits to apply together.

Edit HTML elements by selector › Responses

The edited source file.

HtmlFileEditResult
page_id
​string

Page id.

path
​string

File path.

preview_url
​string | null

Address of the source index.html.

​object[]

Edits that were applied.

file_count
​integer

Files stored for the page.

bytes
​integer

Total size in bytes.

has_index
​boolean

true when index.html is stored.

​object

Tags read when the edited file is index.html.

POST/pages/{pageId}/file/edit
curl --request POST \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/file/edit \ --header 'Content-Type: application/json' \ --data ' { "path": "path", "edits": [ { "selector": "selector", "action": "replace", "html": "html" } ] } '
Example Request Body
{ "path": "path", "edits": [ { "selector": "selector", "action": "replace", "html": "html" } ] }
json
Example Responses
{ "page_id": "page_html", "path": "index.html", "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html", "edits": [ { "selector": "#hero-title", "action": "contents", "matches": 1 } ], "file_count": 3, "bytes": 12000, "has_index": true, "seo": { "title": "Spring offer" } }
json
application/json

Publish an HTML page

POST
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/html/publish

Copies the source files to the live slug, adds Atomicat tracking to that live copy, and keeps the uploaded source unchanged. Requires index.html. Each publish keeps the last five source copies. slug_taken means another page on the site already uses the slug.

Required scope: any of pages:publish, pages:write.

Publish an HTML page › path Parameters

pageId
​string · required

HTML page id.

Publish an HTML page › Request Body

HtmlPublish
site_id
​string

Site id. Defaults to the page site.

slug
​string

Path on the site. Defaults to the page slug.

Publish an HTML page › Responses

The live page.

HtmlPublishResult
id
​string

Page id.

page_id
​string

Page id.

success
​boolean

true when publish succeeded.

url
​string | null

Live URL.

domain
​string | null

Published domain.

slug
​string

Published path.

preview_url
​string | null

Address of the source index.html.

revision_id
​string | null

Id of the source copy saved by this publish.

cache_purge_failed
​boolean

true when the page was published and the cache purge failed.

restored_from
​string

Revision id that was restored, when this publish came from a restore.

POST/pages/{pageId}/html/publish
curl --request POST \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/html/publish \ --header 'Content-Type: application/json' \ --data ' { "site_id": "site_id", "slug": "slug" } '
Example Request Body
{ "site_id": "site_id", "slug": "slug" }
json
Example Responses
{ "id": "page_html", "page_id": "page_html", "success": true, "url": "https://example.com/spring-offer", "domain": "example.com", "slug": "spring-offer", "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html", "revision_id": "m1abc", "cache_purge_failed": false }
json
application/json

List published HTML copies

GET
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/html/revisions

Returns up to five published source copies, newest first. The body is a JSON array.

Required scope: pages:read.

List published HTML copies › path Parameters

pageId
​string · required

HTML page id.

List published HTML copies › Responses

Matching records. The body is a JSON array.

​HtmlRevision[]
HtmlRevision
id
​string

Revision id. Send this to the restore route.

published_at
​string | null

ISO-8601 publish time.

file_count
​integer

Files in that copy.

bytes
​integer

Size of that copy.

slug
​string

Slug at publish time.

GET/pages/{pageId}/html/revisions
curl --request GET \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/html/revisions
Example Responses
[ { "id": "m1abc", "published_at": "2026-11-16T12:00:00.000Z", "file_count": 3, "bytes": 12000, "slug": "spring-offer" } ]
json
application/json

Restore a published HTML copy

POST
https://automation.atomicat-api.com/api/automation/v1
/pages/{pageId}/html/revisions/{revisionId}/restore

Replaces the source with that published copy and publishes it. Files added after that version are removed. revision_id comes from GET /pages/{pageId}/html/revisions.

Required scope: any of pages:publish, pages:write.

Restore a published HTML copy › path Parameters

pageId
​string · required

HTML page id.

revisionId
​string · required

Revision id.

Restore a published HTML copy › Responses

The restored live page.

HtmlPublishResult
id
​string

Page id.

page_id
​string

Page id.

success
​boolean

true when publish succeeded.

url
​string | null

Live URL.

domain
​string | null

Published domain.

slug
​string

Published path.

preview_url
​string | null

Address of the source index.html.

revision_id
​string | null

Id of the source copy saved by this publish.

cache_purge_failed
​boolean

true when the page was published and the cache purge failed.

restored_from
​string

Revision id that was restored, when this publish came from a restore.

POST/pages/{pageId}/html/revisions/{revisionId}/restore
curl --request POST \ --url https://automation.atomicat-api.com/api/automation/v1/pages/:pageId/html/revisions/:revisionId/restore
Example Responses
{ "id": "page_html", "page_id": "page_html", "success": true, "url": "https://example.com/spring-offer", "domain": "example.com", "slug": "spring-offer", "preview_url": "https://atomicatpages.b-cdn.net/user/html-src/page_html/index.html", "revision_id": "m1def", "cache_purge_failed": false, "restored_from": "m1abc" }
json
application/json

ShareBuilder