Step 1. Submit the AI Job request
Endpoint: POST - /api/v1/content/detect_spam
Attribute |
Type |
Mandatory |
Description |
content |
String |
Yes |
Provide the content to check whether it is spam. |
RESPONSE EXAMPLE:
{
"status_url": "https://sharpapi.com/api/v1/content/translate/job/status/5de4887a-0dfd-49b6-8edb-9280e468c210",
"job_id": "5de4887a-0dfd-49b6-8edb-9280e468c210"
}
Step 2. Monitor & Fetch AI Job Results
Endpoint: GET - /api/v1/content/detect_phones/job/status/:uuid
An endpoint is used to check on the progress of the requested API job.
RESULT EXAMPLE:
{
"data": {
"type": "api_job_result",
"id": "f7d3eec2-7ba6-4104-9f30-ff418428de2c",
"attributes": {
"status": "success",
"type": "content_detect_spam",
"result": {
"pass": false,
"score": 85,
"reason": "The message appears to be a solicitation for financial services, which is a common characteristic of spam."
}
}
}
}