---
title: "Add Document"
method: POST
path: "/api/field/assistant/documents"
tags: ["field"]
---

# Add Document

`POST /api/field/assistant/documents`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/field/assistant/documents`
- Auth: none declared

Upload a PDF, Word, text or Markdown file (its text is kept, not the file), or paste text.

## Request body `multipart/form-data`

- object
  - `title` string
  - `text` string
  - `file` string, binary, nullable

## Response `200`

OK

- AssistantDocumentDetailSchema
  - `id` integer, required
  - `title` string, required
  - `filename` string, required
  - `enabled` boolean, required
  - `characters` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, required
  - `text` string, required

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-10-30** `2667fc5b11f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/field/assistant/documents/post.md)

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
