List site changes
const url = 'https://digize.com/api/v1/site-changes';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/site-changes \ --header 'x-api-key: <x-api-key>'The agent’s changes to a site’s code, or every site’s, the newest first: where each stands, its preview and what it changed.
Needs the sites:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Done
object
The worker’s name.
Coding in its container, previewing while its preview builds, ready with its screenshots (waiting on its card or about to merge), pull_request while open on GitHub for a site that deploys from there, deploying once merged, watching once live for as long as AI › Settings says (fifteen minutes unless an owner changed it; with the watch off it’s done as soon as it’s live), then done, rolled_back, failed or discarded.
Where the run works: agent/
The site’s branch it merges into.
The Claude model its coding run used.
object
Container minutes used.
For a site that deploys from GitHub: the pull request the change went out as, which merging there deploys.
object
Example
[ { "status": "coding", "files": [ { "status": "added" } ], "previewStatus": "none" }]What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}