Step 1. Submit the AI Job request
Endpoint: POST - /api/v1/content/detect_phones
Attribute |
Type |
Mandatory |
Description |
content |
String |
Yes |
Provide the content from where the mobile number needs to be detected. |
REQUEST EXAMPLE:
{
"content": "Where to find us? Call with a sales tech advisor: Call: 1800-394-7486 or our Singapore office +65 8888 8888"
}
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": "d43b36dc-3d1d-4ba7-9a17-36a438d91f09",
"attributes": {
"status": "success",
"type": "content_detect_phones",
"result": [
{
"parsed_number": "+18003947486",
"detected_number": "1800-394-7486"
},
{
"parsed_number": "+6588888888",
"detected_number": "+65 8888 8888"
}
]
}
}
}