Quote Generation

Price a book before creating it. Never blocks the creation: if the balance or the plan lookup fails, answer with the price the request alone implies and let POST /api/generate (which re-checks credits and plan limits before spending anything) be the authority.

post/api/generate/quote

Request

  • Base URL: https://api.kdpcoloringbook.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.kdpcoloringbook.com/api/generate/quote
  • Auth: HTTP bearer

Request body

themestring
titlestring nullable
length'test' | 'short' | 'medium' | 'long'
pagesinteger nullable
style_idstring nullable
custom_stylestring nullable
reference_promptstring nullable
distribution_type'progressive' | 'bold_and_easy' | 'cute_and_cozy'
character_countinteger nullable
language'en' | 'es'
style_descriptionstring nullable
allow_textboolean
include_copyrightboolean
include_tipsboolean
include_reviewboolean
include_testboolean

Response

Successful Response

titlestring required
pagesinteger required
frontmatter_pagesinteger required
cover_creditsinteger required
required_creditsinteger required
credits_to_chargeinteger required
available_creditsinteger required
is_freeboolean required
can_createboolean required
blocker_codestring nullable
blocker_messagestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.