---
title: "Generate an assistant chat completion for a patient"
method: POST
path: "/assistantInstances/patients/{patientId}/completions"
tags: ["assistantInstances"]
---

# Generate an assistant chat completion for a patient

`POST /assistantInstances/patients/{patientId}/completions`

## Request

- Base URL: `https://api.lumahealth.io/api/v2`
- URL: `https://api.lumahealth.io/api/v2/assistantInstances/patients/{patientId}/completions`
- Auth: HTTP bearer

Generates an AI completion for a patient's chat conversation with the Navigator assistant.

## Path parameters

- `patientId` string, required

## Request body

- object

## Response `200`

The generated completion

- object
  - `text` string

## Other responses

- `400`: Not found chat activity, default assistant, or internal entry point in assistant
- `401`: Not authenticated
- `403`: Access token does not have the required scope

---

[API](https://skmtc.dev/lumahealth/apis/rest-service.md) - [All operations](https://skmtc.dev/lumahealth/apis/rest-service/llms.txt) - [OpenAPI document](https://skmtc.dev/lumahealth/apis/rest-service/revisions/f19aeba84a26?raw)
