Skip to content

Get a book's briefing and plan

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

What the agent knew before the interview (the briefing and the sources it read), the outline, and the questions it means to ask with which it has.

Needs the books:read permission.

id
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
bookId
required
string
status
required
string
Allowed values: brief briefing interviewing generating editing ready published
briefing
required

What the agent already knew before the interview, from the sources: what the business is, sells, is praised and criticised for, notable customers and numbers.

string
sources
required

The sources it read, with what it found in each.

Array<object>
object
id
required
string
>= 1 characters <= 60 characters
label
required
string
<= 120 characters
found
required
string
<= 300 characters
failed
required
boolean
error
required

Why reading the sources failed, when it did.

string | null
outline
required
object
chapters
required
Array<object>
object
id
required
string
>= 1 characters <= 40 characters
title
required
string
>= 1 characters <= 200 characters
promise
required
string
<= 400 characters
questions
required

The questions the interview means to ask, and which it has.

Array<object>
object
id
required
string
>= 1 characters <= 40 characters
question
required
string
>= 1 characters <= 500 characters
why
required
string
<= 300 characters
chapterId
required
Any of:
string
<= 40 characters
from
required
string
Allowed values: plan author
askedIn
required
Any of:
string
<= 40 characters
interviewedAt
required
Any of:
string format: date-time

Example

{
"status": "brief",
"questions": [
{
"from": "plan"
}
]
}

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