---
title: "Generate document from URL"
method: POST
path: "/v2/document-generations/url"
---

# Generate document from URL

`POST /v2/document-generations/url`

## Request

- Base URL: `https://api.signnow.com`
- URL: `https://api.signnow.com/v2/document-generations/url`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/signnow/apis/signnow-api/docs/v2/document-generations/url/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows API users to generate a PDF document by providing a publicly accessible URL to a `.docx` file with tags.

> In development mode, downloaded generated documents will include a watermark.

Learn more about [document generation](/docs/document-generations).

## Request body

- object
  - `data` object, required: An object containing variable mappings. Keys correspond to tag names in the `.docx` template; values are the pre-filled text for each tag. Supports arrays of objects for repeating sections (e.g., tables, lists).
  - `docx_url` string, required: Publicly accessible URL to the `.docx` file.
  - `single_document` boolean: If `true`, a single document is generated. If `false`, a document group is generated.

## Response `201`

Successful response.

- object
  - `data` object: Document generation process.
    - `status` 'in_progress' | 'completed' | 'failed': Current status of the document generation process.
    - `process_id` string: ID of the document generation process.

## Other responses

- `400`: * `docx_url` is not a valid URL. * `docx_url` is an empty string. * `data` is empty. * `single_document` is not a boolean.

---

[API](https://skmtc.dev/signnow/apis/signnow-api.md) - [All operations](https://skmtc.dev/signnow/apis/signnow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/signnow/apis/signnow-api/revisions/1c9c30a6142b?raw)
