Menu QaldyDocs

Sites

Static sites and single-page apps at their own address: versions, going live, rolling back, and the files in a version. 6 routes, from the API’s own OpenAPI document.

6 routes. Every path starts at https://cloud-api.qaldy.com. Sign-in, tokens, errors and limits are on the overview.

Routes

MethodPathWhat it does
GET/​v1/​sites/​{id}One site: versions, traffic and storage
DELETE/​v1/​sites/​{id}Delete a site, all its versions and the files only it used (owner; type its name)
POST/​v1/​sites/​{id}/​activateMake a version live: the newest, or an older one to roll back
DELETE/​v1/​sites/​{id}/​versions/​{versionId}Delete a version that is not live, and the files only it used
GET/​v1/​sites/​{id}/​versions/​{versionId}/​filesThe files of one version: path, size and type
GET/​v1/​workspaces/​{ws}/​sitesSites you can open: status, live version and page views for 14 days

Reference

GET /v1/sites/{id}

One site: versions, traffic and storage.

  • Authentication: the console’s session cookie.
  • Token: a personal access token or an MCP sign-in with the read scope.
  • Who: can_view. Tokens: read
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
idstringyes
workspaceIdstringyes
namestringyes
slugstringyes
urlstring or nullyes
status"live" · "paused" · "empty"yes
sharing"private" · "shared" · "workspace" · "public"yes
currentobject or nullyes
current.idstringyes
current.numberintegeryesat least 1
current.createdAtstring (date-time)yes
current.createdByobject or nullyes
current.bundleHashstringyes
current.fileCountintegeryesat least 0
current.totalBytesintegeryesat least 0
current.spabooleanyes
current.hasIndexbooleanyes
current.notestring or nullyes
current.source"console" · "api"yes
current.currentbooleanyes
versionCountintegeryesat least 0
createdAtstring (date-time)yes
updatedAtstring (date-time)yes
sparkinteger[]yes
pages14dintegeryesat least 0
canEditbooleanyes
descriptionstringyes
canDeletebooleanyes
versionsobject[]yes
versions[].idstringyes

…and 13 more fields. The full schema is in openapi.json.

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/sites/{id}

Delete a site, all its versions and the files only it used (owner; type its name).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: owner (owner relation); signed-in person only
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
confirmstringyes1 to 200 characters

Response 200

FieldTypeRequiredNotes
oktrueyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/sites/{id}/activate

Make a version live: the newest, or an older one to roll back.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: can_edit; signed-in person only
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
versionIdstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
idstringyes
workspaceIdstringyes
namestringyes
slugstringyes
urlstring or nullyes
status"live" · "paused" · "empty"yes
sharing"private" · "shared" · "workspace" · "public"yes
currentobject or nullyes
current.idstringyes
current.numberintegeryesat least 1
current.createdAtstring (date-time)yes
current.createdByobject or nullyes
current.bundleHashstringyes
current.fileCountintegeryesat least 0
current.totalBytesintegeryesat least 0
current.spabooleanyes
current.hasIndexbooleanyes
current.notestring or nullyes
current.source"console" · "api"yes
current.currentbooleanyes
versionCountintegeryesat least 0
createdAtstring (date-time)yes
updatedAtstring (date-time)yes
sparkinteger[]yes
pages14dintegeryesat least 0
canEditbooleanyes
descriptionstringyes
canDeletebooleanyes
versionsobject[]yes
versions[].idstringyes

…and 13 more fields. The full schema is in openapi.json.

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/sites/{id}/versions/{versionId}

Delete a version that is not live, and the files only it used.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: can_edit; signed-in person only
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters
versionIdpathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
idstringyes
workspaceIdstringyes
namestringyes
slugstringyes
urlstring or nullyes
status"live" · "paused" · "empty"yes
sharing"private" · "shared" · "workspace" · "public"yes
currentobject or nullyes
current.idstringyes
current.numberintegeryesat least 1
current.createdAtstring (date-time)yes
current.createdByobject or nullyes
current.bundleHashstringyes
current.fileCountintegeryesat least 0
current.totalBytesintegeryesat least 0
current.spabooleanyes
current.hasIndexbooleanyes
current.notestring or nullyes
current.source"console" · "api"yes
current.currentbooleanyes
versionCountintegeryesat least 0
createdAtstring (date-time)yes
updatedAtstring (date-time)yes
sparkinteger[]yes
pages14dintegeryesat least 0
canEditbooleanyes
descriptionstringyes
canDeletebooleanyes
versionsobject[]yes
versions[].idstringyes

…and 13 more fields. The full schema is in openapi.json.

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

GET /v1/sites/{id}/versions/{versionId}/files

The files of one version: path, size and type.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: can_view
ParameterInTypeRequiredNotes
idpathstringyes1 to 128 characters
versionIdpathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
versionIdstringyes
spabooleanyes
filesobject[]yes
files[].pathstringyes
files[].sizeintegeryesat least 0
files[].typestringyes
files[].sha256stringyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

GET /v1/workspaces/{ws}/sites

Sites you can open: status, live version and page views for 14 days.

  • Authentication: the console’s session cookie.
  • Token: a personal access token or an MCP sign-in with the read scope.
  • Who: member, filtered to can_view. Tokens: read
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
idstringyes
workspaceIdstringyes
namestringyes
slugstringyes
urlstring or nullyes
status"live" · "paused" · "empty"yes
sharing"private" · "shared" · "workspace" · "public"yes
currentobject or nullyes
current.idstringyes
current.numberintegeryesat least 1
current.createdAtstring (date-time)yes
current.createdByobject or nullyes
current.bundleHashstringyes
current.fileCountintegeryesat least 0
current.totalBytesintegeryesat least 0
current.spabooleanyes
current.hasIndexbooleanyes
current.notestring or nullyes
current.source"console" · "api"yes
current.currentbooleanyes
versionCountintegeryesat least 0
createdAtstring (date-time)yes
updatedAtstring (date-time)yes
sparkinteger[]yes
pages14dintegeryesat least 0
canEditbooleanyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

Type to search. Up and down to choose, Enter to open, Esc to close.