Skip to content

Bias Feedback API

Submit Feedback

Submit feedback for a previously analyzed bias check result.

Request

Request Structure

const response = await fetch('https://api.xstereotype.com/api/bias/feedback', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
},
body: JSON.stringify({
content_id: "aa3b8b64-71eb-41d2-8e19-e4f8239bbf5c",
query_Text: "His handwriting is like a asian boy",
is_Liked: true,
bias_Label: "race"
})
});

Headers

HeaderRequiredDescription
X-Api-KeyYesYour API authentication key
Content-TypeYesMust be application/json

Request Parameters

ParameterTypeRequiredDescription
content_idstringYesUnique identifier from the bias check response
query_TextstringYesOriginal text that was analyzed
is_LikedbooleanYesWhether the bias analysis was helpful
bias_LabelstringYesCategory of bias that was detected

Response

"Feedback recorded"