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
conversation_id
string
required
user_message
string
required

Response

200 - application/json
Message processed successfully
role
enum<string>
required
Available options:
assistant
content
string
required
tool_calls
object[]