---
title: "Chat With Ai Note"
method: POST
path: "/notes/chat"
tags: ["provider", "scribe", "note"]
---

# Chat With Ai Note

`POST /notes/chat`

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Request body

- NoteChatParams
  - `parentNoteId` string, required
  - `providerId` string, required
  - `message` string, required

## Response `200`

Successful Response

- NoteScribeResponse
  - `id` string, required
  - `content` DefaultNoteContent, required
    - `noteContent` string, required — The content of the note to be created. Please follow the template exactly to fill the contents of the note.
  - `template` NoteTemplateTableItem
    - `id` string, required
    - `name` string, required
    - `contentTemplate` string, nullable
    - `attachments` NoteTemplateAttachmentResponse[]
      - `id` string, required
      - `name` string, required
      - `gcsPath` string, nullable
      - `signedUrl` string, nullable
      - `createdDate` string, date-time, required
    - `createdDate` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) · [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decodahealth/decoda-api/revisions/4939a65a89d2/schema)
