Skip to content

List a chapter's versions

GET
/api/v1/books/{bookId}/chapters/{id}/versions
curl --request GET \
--url https://digize.com/api/v1/books/example/chapters/example/versions \
--header 'x-api-key: <x-api-key>'

The chapter’s last five versions before its current one, the newest first: each saved by the author or kept before the writer wrote it again.

Needs the books:read permission.

bookId
required
string
>= 1 characters <= 64 characters
id
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
data
required
Array<object>
object
version
required
integer
>= -9007199254740991 <= 9007199254740991
title
required
string
words
required
integer
>= -9007199254740991 <= 9007199254740991
savedAt
required
string format: date-time
savedBy
required
string

Example generated

{
"data": [
{
"version": 1,
"title": "example",
"words": 1,
"savedAt": "2026-04-15T12:00:00Z",
"savedBy": "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"
}
}