POST /v1/nomis/:id/chat
The POST /v1/nomis/:id/chat endpoint allows you to send a message in the main chat for this Nomi and get a reply.
- HTTP Method
POST- URL
https://api.nomi.ai/v1/nomis/:id/chat- URL Parameters
{
id: UUID;
}- Request Body Format
{
messageText: string;
}- Response Body Format
{
sentMessage: {
uuid: UUID;
text: string;
sent: ISODateString;
};
replyMessage: {
uuid: UUID;
text: string;
sent: ISODateString;
};
}- Error Response Types
Type Description NomiNotFoundThe specified Nomi 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.NoReplyThe Nomi did not reply to the message. This is rare but will occur if there is a server issue or if the Nomi does not respond within 30 seconds. NomiStillRespondingThe Nomi is already replying a user message (either made through the UI or a different API call) and so cannot reply to this message. NomiNotReadyImmediately after the creation of a Nomi, there is a short period of several seconds before it is possible to send messages. OngoingVoiceCallDetectedThe Nomi is currently in a voice call and cannot respond to messages. MessageLengthLimitExceededThe provided messageTextis too long. Maximum message length is 400 for free accounts and 800 for users with a subscription.LimitExceededCannot send the message because the user has exhausted their daily message quota. InvalidBodyIssue will be detailed in the errors.issueskey, but there is an issue with the request body. This can happen if themessageTextkey is missing, the wrong type, or an empty string.