cURL
curl --request POST \ --url https://api.vectorify.ai/v1/chats/{chat}/messages \ --header 'Api-Key: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "text": "<string>" }'
{ "data": { "id": "<string>", "chat_id": "<string>", "role": "<string>", "user": { "id": "<string>", "name": "<string>", "email": "<string>", "avatar": "<string>", "created_at": "<string>" }, "text": "<string>", "text_html": "<string>", "identifier": "<string>", "feedback": "<string>", "created_at": "<string>" } }
Create a new message in a chat. The response includes the latest message in the chat.
The chat ID
ChatMessage
The response is of type object.
object
Was this page helpful?