Skip to content

List a book's insights

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

What the interviews learned for a book, in the order it was noted: stories, lessons, facts, quotes, numbers and people, each with the chapter it belongs to and the records it came from.

Needs the books:read permission.

bookId
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
bookId
required
string
kind
required
string
Allowed values: story lesson fact quote number person
text
required
string
chapterHint
required

The outline chapter’s id it belongs to; null for unplaced.

string | null
refs
required

Records it came from or names: a contact, a review, an order…

Array<object>
object
type
required
string
>= 1 characters <= 40 characters
id
required
string
>= 1 characters <= 100 characters
label
required
string
<= 200 characters
interviewId
required
string
turn
required

The transcript turn it was taken from.

integer
>= -9007199254740991 <= 9007199254740991
usedIn
required

The chapters written from it.

Array<string>
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Example

{
"data": [
{
"kind": "story"
}
]
}

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"
}
}