Hamming home page
Search or ask...
Dashboard
Support
Dashboard
Search...
Navigation
API Reference
Send a message
Documentation
SDK Reference
Chat Simulation API
API Reference
POST
Start a new conversation
POST
End a conversation
POST
Send a message
API Reference
Send a message
POST
https://chat-api-demo.hamming.ai/v1
/
completion
Send
Server
baseUrl
string
baseUrl
string
Base URL for the API
Body
object
*
conversation_id
string
*
conversation_id
Required
string
user_message
string
*
user_message
Required
string
Body
application/json
conversation_id
string
required
user_message
string
required
Response
200 - application/json
Option 1
Option 2
role
enum<string>
required
Available options:
assistant
content
string
required
tool_calls
object[]
Show child attributes
tool_calls.
id
string
required
tool_calls.
type
enum<string>
required
Available options:
function
tool_calls.
function
object
required
Show child attributes
tool_calls.function.
name
string
required
tool_calls.function.
arguments
string
required
End a conversation