---
title: "Generate EPUB & DOCX Manuscript Files API"
slug: generate-epub-docx-manuscript-files
url: https://apyhub.com/freedailypro/service/generate-epub-docx-manuscript-files
provider: FreeDailyPro
tags: [epub, epub3, ebook-generation, docx-generation, word-export, manuscript-formatting, book-export, document-generation, self-publishing, digital-publishing]
auth: api_key
version: v1
service_type: sync
endpoints: 2
atoms: 10
mcp: true
---

# Generate EPUB & DOCX Manuscript Files API

Turn chapter text into a ready-to-download EPUB 3 e-book or a standard-format Word manuscript. One API call, no formatting by hand.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/generate-epub-docx-manuscript-files/epub` | What it does Generates an EPUB manuscript file from the book metadata and content you send in the r… | 10 |
| POST | `https://api.eu.apyhub.com/freedailypro/generate-epub-docx-manuscript-files/manuscript-docx` | What it does Generates a DOCX manuscript from the submitted book metadata and chapter content, base… | 10 |

## Endpoint reference

### Publishing: epub

`POST https://api.eu.apyhub.com/freedailypro/generate-epub-docx-manuscript-files/epub` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `isbn` | body | string | no |  |
| `eisbn` | body | string | no |  |
| `chapters` | body | array of object | yes |  |
| `chapters[].title` | body | string | yes |  |
| `chapters[].blocks` | body | array | yes |  |
| `chapters[].partTitle` | body | string | no |  |
| `language` | body | string | yes |  |
| `stableId` | body | string | no |  |
| `subtitle` | body | string | no |  |
| `bookTitle` | body | string | yes |  |
| `watermark` | body | boolean | no |  |
| `authorNames` | body | array of string | yes |  |
| `copyrightYear` | body | integer | no |  |
| `publisherName` | body | string | no |  |
| `epigraphBlocks` | body | array | no |  |
| `copyrightHolder` | body | string | no |  |
| `dedicationBlocks` | body | array | no |  |
| `coverImageDataUri` | body | string | no |  |

#### Quickstart

Generate an EPUB manuscript from your book metadata, chapters, and optional front/back matter in one POST request.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/generate-epub-docx-manuscript-files/epub" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "bookTitle": "The Last Lighthouse",
    "authorNames": ["Avery Stone"],
    "language": "en",
    "chapters": [
      {
        "title": "Chapter 1",
        "blocks": [
          {
            "type": "paragraph",
            "runs": [
              {
                "text": "The sea was calm that morning."
              }
            ]
          }
        ]
      }
    ]
  }'
```

#### What you'll get back

Returns the e-book file itself as binary file

### Publishing: manuscript-docx

`POST https://api.eu.apyhub.com/freedailypro/generate-epub-docx-manuscript-files/manuscript-docx` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `byline` | body | string | yes |  |
| `chapters` | body | array of object | yes |  |
| `chapters[].title` | body | string | yes |  |
| `chapters[].blocks` | body | array | yes |  |
| `chapters[].partTitle` | body | string | no |  |
| `bookTitle` | body | string | yes |  |
| `watermark` | body | boolean | no |  |
| `authorEmail` | body | string | no |  |
| `authorPhone` | body | string | no |  |
| `authorAddress` | body | string | no |  |
| `authorLegalName` | body | string | yes |  |

#### Quickstart

Generate a DOCX manuscript file from a book title, author name, and at least one chapter.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/generate-epub-docx-manuscript-files/manuscript-docx" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "bookTitle": "The Last Lantern",
    "byline": "A novel by Mira Sol",
    "authorLegalName": "Mira Sol",
    "chapters": [
      {
        "title": "Chapter 1",
        "blocks": [
          {
            "type": "heading",
            "level": 1,
            "runs": [
              {
                "text": "A New Beginning"
              }
            ]
          },
          {
            "type": "paragraph",
            "runs": [
              {
                "text": "The story begins on a quiet evening."
              }
            ]
          }
        ]
      }
    ]
  }'
```

#### What you'll get back

#### Response

Returns the manuscript as a Word file in binary form

## About

## What it does
Manuscript Files generates publishing-ready EPUB and DOCX manuscripts from structured chapter content. Send a book title, chapter titles, and rich text blocks, and get back document files formatted for ebook or manuscript workflows.

Use **Manuscript Files** when you need to turn editorial content into distributable book formats without hand-building layouts. The EPUB endpoint accepts `bookTitle`, `authorNames`, `language`, `chapters`, and optional metadata such as `isbn`, `eisbn`, `subtitle`, `publisherName`, `copyrightYear`, `stableId`, `watermark`, `epigraphBlocks`, `dedicationBlocks`, and `coverImageDataUri`. Chapter content supports paragraphs, headings, images, lists, tables, and scene breaks, with inline styling like bold, italic, underline, superscript, subscript, color, alignment, and line height.

The DOCX endpoint is built for manuscript output. It accepts `bookTitle`, `byline`, `authorLegalName`, and `chapters`, with optional contact fields like `authorEmail`, `authorPhone`, `authorAddress`, plus `watermark`. If you are exporting a novel draft, submitting a review copy, or assembling chaptered nonfiction from a CMS, this lets you generate consistent files from the same content model.

Use the EPUB output for ebook distribution and the DOCX output for editorial review, publishing handoff, or print preparation. The service is a fit when your app already has structured chapter data and you want document generation without manual formatting.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/freedailypro/service/generate-epub-docx-manuscript-files
