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
| ||||
400Google-style compatibility error, including unsupported non-PROBABILITY score types. | ||||
429Rate limit exceeded. Retry after the indicated time. |