---
title: "Create Policy With Document"
method: POST
path: "/api/policies/with-document"
---

# Create Policy With Document

`POST /api/policies/with-document`

## Request

- Base URL: `https://api.gethesperai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gethesperai.com/api/policies/with-document`
- Auth: none declared

Save a policy AND attach its source PDF in one request.

## Headers

- `X-Team-Id` string, nullable

## Request body `multipart/form-data`

- BodyCreatePolicyWithDocumentApiPoliciesWithDocumentPost
  - `file` string, binary, required
  - `body` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gethesperai/apis/hesper-ai-claims-investigator.md) - [All operations](https://skmtc.dev/gethesperai/apis/hesper-ai-claims-investigator/llms.txt) - [OpenAPI document](https://skmtc.dev/gethesperai/apis/hesper-ai-claims-investigator/revisions/1a031ee6acf1?raw)
