Skip to content

Create a print document

POST
/api/v1/print/documents
curl --request POST \
--url http://127.0.0.1:8080/api/v1/print/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "book": "example", "options": { "claims": true, "custom_scale": "example", "description": true, "image": "automatic", "layout": "automatic", "locale": "example", "measurement": "original", "microwave_output_watts": 1, "notes": true, "nutrition": true, "output": "native", "scale": "original", "size": "letter", "source": true }, "recipes": [ "example" ] }'

Freezes the revision of every named recipe, resolves the batch and measures asked for, and typesets the result. The document is generated on demand and is not stored as part of any recipe.

Media typeapplication/json
object
book

Book to print instead of a recipe selection

string
options
object
claims

Print the dietary and allergen statements the recipe’s source makes

boolean
custom_scale

Exact batch factor, required when scale is custom

string
/^([1-9][0-9]*|[1-9][0-9]*/[1-9][0-9]*)$/
description

Print the recipe’s headnote

boolean
image

Whether the recipe photograph is printed

string
Allowed values: automatic include omit
layout

Full-page composition

string
Allowed values: automatic side-by-side stacked
locale

Language tag the document is presented in

string
<= 35 characters
measurement

Measures the recipe is written in for this print

string
Allowed values: original metric us au
microwave_output_watts

Explicit cooking-output basis for an adjusted print; omitted prints authored timings

integer format: int64
>= 100 <= 5000
notes

Print the recipe’s notes

boolean
nutrition

Print the nutrition the recipe’s source states; off by default

boolean
output

Whether cards become pages of their own size or are arranged on sheets for trimming

string
Allowed values: native sheet-letter sheet-a4
scale

Which batch to print

string
Allowed values: original preferred custom
size

Physical output size

string
Allowed values: letter a4 card-3x5 card-4x6 card-5x8
source

Print where the recipe came from

boolean
recipes

Library entries to print, in the order they should appear. Capabilities report the most one document holds.

Array<string> | null

Created

Media typeapplication/json
object
bytes
required
integer format: int64
filename
required

Suggested filename for a download

string
format
required
object
card

Exact card size when cards are arranged on sheets

object
height
required
object
unit
required
string
Allowed values: in mm pt
value
required
number format: double
key
additional properties
any
width
required
object
unit
required
string
Allowed values: in mm pt
value
required
number format: double
key
additional properties
any
key
additional properties
any
family
required
string
height
required
object
unit
required
string
Allowed values: in mm pt
value
required
number format: double
key
additional properties
any
size
required
string
width
required
object
unit
required
string
Allowed values: in mm pt
value
required
number format: double
key
additional properties
any
key
additional properties
any
id
required

Signature of the renderer, effective title, source identity and revision, authorization scope, recipe revisions, preferences, and print options

string
pages
required
integer format: int64
recipes
required

Exactly which version of each recipe was printed

Array<object> | null
object
entry_id
required
string
revision
required
integer format: int64
title
required
string
key
additional properties
any
title
required
string
url
required

Where to read the generated PDF

string
warnings

What degraded without invalidating the document, such as a photograph this library no longer holds

Array<string> | null
key
additional properties
any
Example
{
"format": {
"card": {
"height": {
"unit": "in"
},
"width": {
"unit": "in"
}
},
"height": {
"unit": "in"
},
"width": {
"unit": "in"
}
}
}
Location
string

Bad Request

Media typeapplication/problem+json
object
code

Stable application error code; clients may also use the problem type suffix.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

key
additional properties
any
instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
params

Structured context for the stable error code.

object
key
additional properties
any
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
violations
Array<object>
object
code
required
string
location
required
string
params
object
key
additional properties
any
key
additional properties
any
Example
{
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}

No valid session or API token (authentication-required), or the credential sent is invalid (invalid-credentials).

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer format: int64
title
required
string
type
required
string
key
additional properties
any
Examplegenerated
{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not Found

Media typeapplication/problem+json
object
code

Stable application error code; clients may also use the problem type suffix.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

key
additional properties
any
instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
params

Structured context for the stable error code.

object
key
additional properties
any
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
violations
Array<object>
object
code
required
string
location
required
string
params
object
key
additional properties
any
key
additional properties
any
Example
{
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}

Request Entity Too Large

Media typeapplication/problem+json
object
code

Stable application error code; clients may also use the problem type suffix.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

key
additional properties
any
instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
params

Structured context for the stable error code.

object
key
additional properties
any
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
violations
Array<object>
object
code
required
string
location
required
string
params
object
key
additional properties
any
key
additional properties
any
Example
{
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}

Unprocessable Entity

Media typeapplication/problem+json
object
code

Stable application error code; clients may also use the problem type suffix.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

key
additional properties
any
instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
params

Structured context for the stable error code.

object
key
additional properties
any
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
violations
Array<object>
object
code
required
string
location
required
string
params
object
key
additional properties
any
key
additional properties
any
Example
{
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}

Internal Server Error

Media typeapplication/problem+json
object
code

Stable application error code; clients may also use the problem type suffix.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

key
additional properties
any
instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
params

Structured context for the stable error code.

object
key
additional properties
any
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
violations
Array<object>
object
code
required
string
location
required
string
params
object
key
additional properties
any
key
additional properties
any
Example
{
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}

Service Unavailable

Media typeapplication/problem+json
object
code

Stable application error code; clients may also use the problem type suffix.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

key
additional properties
any
instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
params

Structured context for the stable error code.

object
key
additional properties
any
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
violations
Array<object>
object
code
required
string
location
required
string
params
object
key
additional properties
any
key
additional properties
any
Example
{
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}