curl --request GET \
--url https://api.contentmod.io/text/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"isSafe": true,
"confidence": 90,
"sentiment": "positive",
"sentimentScore": 90,
"riskScores": {
"overall": 90,
"spam": 90,
"toxicity": 90
},
"topics": [
"politics",
"sports"
],
"nsfwCategories": [
{
"category": "sexual",
"severity": 90
}
],
"summary": {
"profanity": true,
"totalFlags": 1,
"contentRating": "G",
"language": "en"
},
"suggestedActions": {
"reject": true,
"review": true
},
"filteredContent": "This is a filtered text",
"content": "This is the original text",
"request": {
"requestId": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"timestamp": "2023-04-05T12:00:00.000Z"
},
"meta": "<any>",
"hash": "93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
3
"27fbdc0b-b295-46ce-93f5-81b2fc08a381"
Fetch a text moderation by its ID
The response is of type object
.
curl --request GET \
--url https://api.contentmod.io/text/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"isSafe": true,
"confidence": 90,
"sentiment": "positive",
"sentimentScore": 90,
"riskScores": {
"overall": 90,
"spam": 90,
"toxicity": 90
},
"topics": [
"politics",
"sports"
],
"nsfwCategories": [
{
"category": "sexual",
"severity": 90
}
],
"summary": {
"profanity": true,
"totalFlags": 1,
"contentRating": "G",
"language": "en"
},
"suggestedActions": {
"reject": true,
"review": true
},
"filteredContent": "This is a filtered text",
"content": "This is the original text",
"request": {
"requestId": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"timestamp": "2023-04-05T12:00:00.000Z"
},
"meta": "<any>",
"hash": "93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa"
}
curl --request GET \
--url https://api.contentmod.io/text/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"isSafe": true,
"confidence": 90,
"sentiment": "positive",
"sentimentScore": 90,
"riskScores": {
"overall": 90,
"spam": 90,
"toxicity": 90
},
"topics": [
"politics",
"sports"
],
"nsfwCategories": [
{
"category": "sexual",
"severity": 90
}
],
"summary": {
"profanity": true,
"totalFlags": 1,
"contentRating": "G",
"language": "en"
},
"suggestedActions": {
"reject": true,
"review": true
},
"filteredContent": "This is a filtered text",
"content": "This is the original text",
"request": {
"requestId": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"timestamp": "2023-04-05T12:00:00.000Z"
},
"meta": "<any>",
"hash": "93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
3
"27fbdc0b-b295-46ce-93f5-81b2fc08a381"
Fetch a text moderation by its ID
The response is of type object
.
curl --request GET \
--url https://api.contentmod.io/text/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"isSafe": true,
"confidence": 90,
"sentiment": "positive",
"sentimentScore": 90,
"riskScores": {
"overall": 90,
"spam": 90,
"toxicity": 90
},
"topics": [
"politics",
"sports"
],
"nsfwCategories": [
{
"category": "sexual",
"severity": 90
}
],
"summary": {
"profanity": true,
"totalFlags": 1,
"contentRating": "G",
"language": "en"
},
"suggestedActions": {
"reject": true,
"review": true
},
"filteredContent": "This is a filtered text",
"content": "This is the original text",
"request": {
"requestId": "27fbdc0b-b295-46ce-93f5-81b2fc08a381",
"timestamp": "2023-04-05T12:00:00.000Z"
},
"meta": "<any>",
"hash": "93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa"
}