Chat Message

Purpose

Sends a new message in an ongoing conversation.

HTTP Method

POST

Endpoint

https://platform-api.feedloop.ai/widget/convo_id/chats

Name
Type
Required
Description

Token

String

Unique app authentication token.

Content-Type

String

Set to application/json.

Path Parameter

Field
Type
Required
Description

convo_id

String

Conversation ID obtained from the Chat Initialization API.

Request Body

Field
Type
Required
Description

Identity

String

Unique identifier for the user (e.g., email or user ID).

Data

Object

Additional user information, such as name and email

Example

{
    "message": "Hello, can you help me?",
    "user_id": "09883cac-2d0f-498c-be07-0d8724ab7e6c"
}

Response

Field
Type
Description

status

String

Indicates success or failure.

type

String

Message type (e.g., text).

payload

object

Contains the response content.

Example:

{
    "status": "success",
    "type": "text",
    "payload": {
        "content": "Sure! How can I help?",
        "references": []
    }
}

Last updated