Create message

Add a message to a conversation.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Request

This endpoint expects an object.
contentstringRequired>=1 character
roleenumRequired
Allowed values:
directionenumOptional
Allowed values:
externalMessageIdstringOptional<=500 characters
flowStepResultIdstringOptional
metadataobjectOptional

Response

Created message
contentstring
conversationIdstring
createdAtstring
directionstring or null
externalMessageIdstring or null
flowStepResultIdstring or null
idstring
metadatamap from strings to any
rolestring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error