prePing
This endpoint allows you to check if a phone can be sent to the postLead api.
POSThttps://api.ntherm.com/v1/prePing
prePing
- Name
phone_number- Type
- string
- Required
- Required
- Example
- Ex: 999999999
- Description
Phone number to check.
Request
POST
/v1/prePingcurl -X POST https://api.ntherm.com/v1/prePing \
-u username:password \
-d '{"phone_number": "999999999"}'
Response 200
HTTP/1.1 200 OK
{
"can_post_phone_bit": true,
"message": "Phone number can be sent to postLead."
}
Response 422
HTTP/1.1 422 Unprocessable Entity
{
"can_post_phone_bit": false,
"message": [{"error": "Phone number can not be sent to postLead at this time."}]
}
Response 400
HTTP/1.1 400 Bad Request
{
"can_post_phone_bit": false,
,"message":[{"error":"Invalid Characters: 7271234567x"}]
}