POST
/
document
/
chat
/
{chat_id}
/
complete
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const response = await client.documents.chat.complete('chat_id', { message: 'message' });

console.log(response);
"<any>"

Headers

authorization
string

Path Parameters

chat_id
string
required

Body

application/json

Request model for document chat completion.

Response

200
application/json

Successful Response

The response is of type any.