Skip to main content

POST /v1/nomis/:id/chat

The POST /v1/nomis/:id 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
TypeDescription
NomiNotFoundThe specified Nomi 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.
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 15 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 messageText is too long. Maximum message length is 400 for free accounts and 600 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.issues key, but there is an issue with the request body. This can happen if the messageText key is missing, the wrong type, or an empty string.