Skip to main content
POST
Agent Chat Completion (GHL-Safe)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
conversation_id
string
required

ID of the conversation

contact_id
string
required

ID of the contact

last_message_id
string
required

ID of the last message

channel
string
required

Communication channel

input
string
required

User input text

location_id
string
required

Location ID

assistant_id
string
required

ID of the assistant

messages
object[]

Message history

Response

200 - application/json

Chat completion successful

run
object