Serverless AI Feedback Rating

AI powered feedback rating service that evaluates feedback based on quality, relevance, clarity, constructiveness, and overall sentiment.

Endpoint

Feedback rating with multiple evaluation dimensions and sentiment analysis

POSThttps://api.xtartapp.com/text/rating

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
textstringYes2500The text feedback to rate

Response

NameTypeDescription
dataobjectObject containing the rating scores and sentiment
data.qualitynumberScore for writing style, grammar, and professionalism (0-10)
data.relevancenumberScore for focus and topic adherence (0-10)
data.claritynumberScore for text understandability (0-10)
data.constructivenessnumberScore for helpfulness, value and clarity (0-10)
data.ratingnumberOverall rating based on sentiment and context (0-10)
data.sentimentstringSentiment classification (Positive, Negative, or Neutral)
metadataobjectMetadata about the rating process
metadata.costnumberThe cost of the rating request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTEx.: The request is invalid.
400TEXT_RATING_ERROREx: could not rate the text | parsing error
400HARM_CONTENTEx.: The content is harmful and cannot be processed.
400INSUFFICIENT_BALANCEThe user has insufficient balance
401UNAUTHORIZEDEx.: The token is invalid.
429TOO_MANY_REQUESTSEx.: The request limit has been reached.