---
title: "Create a new DocumentAutomation"
method: POST
path: "/document_automations.json"
tags: ["Document Automations"]
---

# Create a new DocumentAutomation

`POST /document_automations.json`

Outlines the parameters and data fields used when creating a new DocumentAutomation

## Query parameters

- `fields` string

## Headers

- `X-API-VERSION` string

## Request body

- object
  - `data` object, required
    - `document_template` object, required
      - `id` integer, required — The unique identifier for a single DocumentTemplate associated with the DocumentAutomation. The keyword `null` is not valid for this field.
    - `filename` string, required — The filename the generated document should have.
    - `formats` string[], required — The formats the document should be generated as. It can either be generated as a PDF and/or in whatever type the document template is.
    - `matter` object, required
      - `id` integer, required — The unique identifier for a single Matter associated with the DocumentAutomation. The keyword `null` is not valid for this field.

## Response `201`

Created

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `429` — Too Many Requests

---

[API](https://skmtc.net/clio/apis/clio-api-documentation.md) · [All operations](https://skmtc.net/clio/apis/clio-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clio/clio-api-documentation/revisions/73791ddd1207/schema)
