Step 1. Submit the AI Job request
Endpoints: POST - /api/v1/content/detect_emails
Attribute |
Type |
Mandatory |
Description |
content |
String |
Yes |
Provide the content from where email addresses need to be detected. |
REQUEST EXAMPLE:
{
"content": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Contact us at example@email.com or lorem.ipsum@email.com for more information."
}
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
Endpoints: GET - /api/v1/content/detect_emails/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": "06f4a1ba-b6b1-48b3-b071-807e3d41db4d",
"attributes": {
"status": "success",
"type": "content_detect_emails",
"result": [
"example@email.com",
"lorem.ipsum@email.com"
]
}
}
}