Get Session Messages (Project API Key)
Retrieve a paginated list of messages for a specific chat session using your project API Key.
Retrieve a paginated list of messages for a specific chat session.
Authorization
apiKey
API key for authentication. Generate your API key from the Integration settings in your YourGPT dashboard.
In: header
Request Body
application/json
The unique session identifier obtained from the Get Sessions or Create Session API
Sort order of messages. Defaults to ASC
"ASC" | "DESC"Number of messages per page (max 100). Defaults to 10
value <= 100Page number for pagination. Defaults to 1
Response Body
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/getSessionMessages" \ -H "Content-Type: application/json" \ -d '{ "session_uid": "string" }'{
"type": "RXSUCCESS",
"message": "string",
"data": [
{
"id": 0,
"session_id": 0,
"send_by": "string",
"rate": "string",
"message": "string",
"type": 0,
"seen": "string",
"sender_id": 0,
"content_type": "string",
"choices": [],
"targets": {},
"url": "string",
"delivered": "string",
"provider_message_id": "string",
"streaming": true,
"response_source": "string",
"extra_data": {},
"createdAt": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"AILog": [
{
"id": 0,
"query_message_id": 0,
"reply_message_id": 0,
"source_node": "string"
}
]
}
]
}{
"type": "RXERROR",
"message": "string"
}{
"type": "RXERROR",
"message": "string"
}Send Message (Project API Key)
Send a message in a chat session using your project API Key. Use send_by to control whether the message is from the user, operator, or assistant.
Make Outbound Call
Initiate an AI-powered outbound phone call using your Voice Agent. This endpoint triggers your configured Phone AI Agent to call a specified phone number, enabling use cases like appointment reminders, lead qualification, customer outreach, and automated sales calls.