List a Worker's commits
const url = 'https://digize.com/api/v1/sites/example/commits';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/sites/example/commits \ --header 'x-api-key: <x-api-key>'A Worker’s git history, newest first along first parents, from a branch, tag or commit: its deploy branch unless it says.
Needs the sites:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”A branch, tag or commit id. Left out, the Worker’s deploy branch.
A branch, tag or commit id. Left out, the Worker’s deploy branch.
The nextCursor of the page before. Leave it out for the first page.
The nextCursor of the page before. Leave it out for the first page.
Rows on the page: 50 unless it says, 100 at most.
Rows on the page: 50 unless it says, 100 at most.
Responses
Section titled “Responses”Done
object
object
object
object
Pass it as cursor for the next page; null on the last.
Example generated
{ "rows": [ { "sha": "example", "title": "example", "message": "example", "author": { "name": "example", "email": "example" }, "committer": { "name": "example", "email": "example" }, "authoredAt": "2026-04-15T12:00:00Z", "committedAt": "2026-04-15T12:00:00Z", "parents": [ "example" ] } ], "nextCursor": "example"}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" }}