API Reference
Send a message
API Reference
Send a message
POST
/
completion
curl --request POST \
--url https://chat-api-demo.hamming.ai/v1/completion \
--header 'Content-Type: application/json' \
--data '{
"conversation_id": "<string>",
"user_message": "<string>"
}'
[
{
"role": "assistant",
"content": "<string>",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
]
Body
application/json
Response
200 - application/json
Message processed successfully
Was this page helpful?
curl --request POST \
--url https://chat-api-demo.hamming.ai/v1/completion \
--header 'Content-Type: application/json' \
--data '{
"conversation_id": "<string>",
"user_message": "<string>"
}'
[
{
"role": "assistant",
"content": "<string>",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
]