Skip to content

Stream an EPUB-internal resource (image, CSS, font, …)

GET
/assets/{id}/epub/resources/{path}
id
required
string format: uuid
path
required
string

Zip-internal absolute path of the resource (image, CSS, font, etc.). Resolved from the chapter’s relative ref during chapter rewriting; the frontend never constructs these by hand.

Resource bytes

string format: binary

Malformed request

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}

Resource not found

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Unexpected server error

object
error
required

Human-readable error summary

string
Example
the request could not be completed