Perspective Compatibility Suggestscore
Accept a Google Perspective-style suggestscore request and translate it into Respectify's feedback pipeline.
This endpoint is intended for easier migration from raw Perspective score-correction integrations. summaryScore.value is supported. Google-style spanScores are accepted and validated for compatibility, but Respectify currently stores summary-score feedback rather than span-level corrections.
Only PROBABILITY score types are supported. In practice, that means 0 to 1 scores where higher values mean more of the requested attribute. Other score types are rejected. The feedback you submit here is retained intentionally. That is the point of this endpoint: if you call it, Respectify retains the feedback you send. sessionId and communityId are accepted as request metadata for traceability, but they do not change scoring behaviour.
| Header Parameters |
|---|
X-User-Email email — REQUIREDAccount email address, for authentication |
X-API-Key string — REQUIREDAPI key owned by the user (email), for authentication |
| Request Body — REQUIRED | ||||
|---|---|---|---|---|
comment — REQUIRED | ||||
attributeScores object — REQUIRED | ||||
context object
| ||||
languages string[] | ||||
clientToken string | ||||
doNotStore booleanAccepted for compatibility. Respectify does not currently use analyse traffic for training, but this endpoint intentionally stores the feedback you submit. | ||||
sessionId stringAccepted for compatibility as request metadata for traceability. Does not affect scoring behaviour. | ||||
communityId stringAccepted for compatibility as request metadata for traceability. Does not affect scoring behaviour. |
| Responses | |||||
|---|---|---|---|---|---|
200Google-style suggestscore compatibility response
| |||||
400Invalid request, including unsupported non-PROBABILITY score types. The request must change before it is retried.
| |||||
401Missing or invalid credentials (the X-User-Email and X-API-Key headers).
| |||||
402The account's credit balance does not cover this call. Do not retry until funds have been added.
| |||||
413The request body is over the 1 MB (1,048,576 byte) limit, or was sent with chunked transfer encoding. Requests must include a Content-Length header.
| |||||
429Rate limit exceeded for score suggestions (shared with the feedback endpoint). Retry after the number of seconds given in the message.
| |||||
503Scoring is temporarily unavailable. Retry after a few seconds (or the
|