POST
/
messages
/
create

Authorizations

X-API-Key
string
header
required

Your duohub API key. Type: str

Body

application/json
content
string
required

Content of the message

role
enum<string>
required

Role of the message sender

Available options:
norole,
system,
assistant,
user,
function,
tool
customerUserID
string

Optional ID of the customer user

id
string

Optional unique identifier for the message. If not provided, a UUID will be generated.

sessionID
string

ID of the session this message belongs to

Response

201 - application/json
data
object
status
enum<string>
Available options:
success