Send Message
Send a message to a chatbot session and receive an AI response.
Send a message within an existing session. The chatbot processes the message and returns an AI-generated response.
Required: Owner, Editor, or Operator role
Authorization
bearerToken
AuthorizationBearer <token>
API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.
In: header
Request Body
application/x-www-form-urlencoded
project_uid*string
The project unique identifier
session_uid*number
The session UID from Create Session
message*string
The message text to send
content_type?string
Message content type
Default
"text"Value in
"text" | "picker" | "image" | "audio" | "video" | "file"Response Body
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/sendMessage" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'project_uid=string&message=string'{
"type": "RXSUCCESS",
"message": "AI reply",
"data": {
"send_by": "string",
"origin": "string",
"session_uid": "string",
"type": "string",
"message_id": 0,
"message": "string",
"content_type": "string",
"id": 0
}
}