# Workspace org template preview

`POST /org/{orgId}/templates/preview` · Rivier · workspace

The renderable view of a template or starter with the organization's branding and sample figures; nothing is saved.

- Scope: workspace:write
- Mcp: rivier_templates_preview
- Graphql: Mutation.workspaceOrgTemplatePreview
- Sdk: workspace.orgTemplate.preview
- Cli: templates preview

## Parameters

- `orgId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "templateId": {
      "type": "string",
      "format": "uuid"
    },
    "galleryKey": {
      "type": "string",
      "maxLength": 80
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "dv",
        "ar"
      ]
    },
    "layout": {
      "type": "string",
      "enum": [
        "minimal",
        "classic",
        "modern",
        "bold"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "quote",
        "proposal",
        "invoice"
      ]
    },
    "client": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 200,
          "default": ""
        },
        "address": {
          "type": "string",
          "maxLength": 1000,
          "default": ""
        },
        "email": {
          "type": "string",
          "maxLength": 254,
          "default": ""
        }
      },
      "additionalProperties": false
    },
    "currency": {
      "type": "string",
      "pattern": "^[a-z]{3}$",
      "default": "usd"
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/org/{orgId}/templates/preview' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "templateId": "string",
  "galleryKey": "string",
  "language": "en",
  "layout": "minimal",
  "kind": "quote",
  "client": {
    "name": "",
    "address": "",
    "email": ""
  },
  "currency": "usd"
}'
```
