Get a site change
const url = 'https://digize.com/api/v1/site-changes/example';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/example \ --header 'x-api-key: <x-api-key>'One of the agent’s changes to a site: its summary, the files it changed, its preview link, its screenshots of the pages it touches, live and on the preview at desktop and phone widths, and its watch once live.
Needs the sites:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path 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
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" } ], "screenshots": [ { "side": "live", "viewport": "desktop" } ], "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" }}