Skip to main content

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; // 600 characters max
}
Response Body Format
{
sentMessage: {
uuid: UUID;
text: string;
sent: ISODateString;
};
}
Error Response Types
TypeDescription
RoomNotFoundThe specified room was not found. It may not exist or may not be associated with this account.
InvalidRouteParamsThe id parameter is not a valid UUID.
InvalidContentTypeThe Content-Type header is not application/json.
InsufficientPlanUser plan is not entitled to room feature.
MessageCharacterLimitExceededThe provided messageText is too long. Maximum message length is 600.
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.issues key, but there is an issue with the request body. This can happen if the messageText key is missing, or the wrong type.