---
title: "POST /document/{tenantLocator}/documents/render"
method: POST
path: "/document/{tenantLocator}/documents/render"
---

# POST /document/{tenantLocator}/documents/render

`POST /document/{tenantLocator}/documents/render`

## Request

- Base URL: `https://docs.socotra.com`
- URL: `https://docs.socotra.com/document/{tenantLocator}/documents/render`
- Auth: none declared
- TypeScript: <https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/docs/document/:tenantLocator/documents/render/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantLocator` string, uuid, required

## Query parameters

- `referenceType` 'quote' | 'policy' | 'invoice' | 'transaction' | 'segment' | 'term' | 'quoteGroup', required
- `referenceLocator` string, ulid, required
- `productName` string
- `templateFormat` 'liquid' | 'velocity'
- `documentConfig` string
- `staticName` string
- `templateName` string

## Request body `multipart/form-data`

- TemplateResponse
  - `file` object
    - `file` string, binary
  - `template` string

## Response `200`

OK

- StreamingResponseBody

---

[API](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi.md) - [All operations](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/revisions/77ee7d8172b9?raw)
