Skip to content

List a Worker's commits

GET
/api/v1/sites/{site}/commits
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.

site
required
string
>= 1 characters <= 64 characters
ref

A branch, tag or commit id. Left out, the Worker’s deploy branch.

string
>= 1 characters <= 255 characters /^\S+$/

A branch, tag or commit id. Left out, the Worker’s deploy branch.

cursor

The nextCursor of the page before. Leave it out for the first page.

string
<= 400 characters

The nextCursor of the page before. Leave it out for the first page.

limit

Rows on the page: 50 unless it says, 100 at most.

integer
>= 1 <= 100

Rows on the page: 50 unless it says, 100 at most.

Done

Media typeapplication/json
object
rows
required
Array<object>
object
sha
required
string
title
required
string
message
required
string
author
required
object
name
required
string
email
required
string
committer
required
object
name
required
string
email
required
string
authoredAt
required
string format: date-time
committedAt
required
string format: date-time
parents
required
Array<string>
nextCursor
required

Pass it as cursor for the next page; null on the last.

string | null

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).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}