Skip to main content
Search the caller's drafts

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
draftsQuery
object

What to look for and how to page through it. It is applied within the caller's own drafts; no query can widen the search past them.

source
object

Which fields of each matched draft to return. A draft holds a whole document in progress, so narrowing this down keeps the response to what the caller actually renders.

Response

Returns the matching drafts and how many there are in total.

results
object[]

The drafts making up this page of results, each in the shape it is stored in and carrying its own identifier and version.

total
integer

How many drafts match in total, not just how many this page holds.