POST /v1/rooms/:id/chat
The POST /v1/rooms/:id/chat endpoint allows you to send a message in the specific room.
- HTTP Method
POST- URL
https://api.nomi.ai/v1/rooms/:id/chat- Request Body Format
{
messageText: string; // 800 characters max
}- Response Body Format
{
sentMessage: {
uuid: UUID;
text: string;
sent: ISODateString;
};
}- Error Response Types
Type Description RoomNotFoundThe specified room was not found. It may not exist or may not be associated with this account. InvalidRouteParamsThe idparameter is not a valid UUID.InvalidContentTypeThe Content-Typeheader is notapplication/json.InsufficientPlanUser plan is not entitled to room feature. MessageCharacterLimitExceededThe provided messageTextis too long. Maximum message length is 800.RoomStillCreatingImmediately after the creation of a room, there is a short period of several seconds before any messages can be sent to the room. InvalidBodyIssue will be detailed in the errors.issueskey, but there is an issue with the request body. This can happen if themessageTextkey is missing, or the wrong type.