cURL
curl --request POST \ --url https://api.example.com/partner/{partner_id}/session/{session_id}/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "session_id": 123, "sender_type": "student", "content": "<string>", "sender_id": 123, "message_type": "text", "tokens": 123, "latency_ms": 123, "meta": {} } '
{ "id": 123, "session_id": 123, "sender_type": "student", "message_type": "text", "content": "<string>", "created_at": "2023-11-07T05:31:56Z", "sender_id": 123, "tokens": 123, "latency_ms": 123, "meta": {} }
세션에 메시지 추가.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
강사 ID
x >= 1
student
staff
system
text
image
audio
file
tool
Successful Response