Undo Opt Out Contact


URL:

https://api2.protexting.com/v1/contacts-opt-in/create-custom?access_token=your_access_token


Method:

POST

Request parameters:

* required parameters

Parameter Description
* PhoneNumber  string, valid phone number

Example Request:

curl -i -H "Accept:application/json" -H "Content-Type:application/json" -XPOST "https://api2.protexting.com/v1/contacts-opt-in/create-custom?access_token=your_access_token" -d '{"PhoneNumber":"16461234567"}'

Example Response Body:

{
        "message": "Phone number successfully opted in",
}
<response>
<message>
Phone number successfully opted in
</message>
</response>

 

HTTP Status Codes:

The standard HTTP Status Codes are used. More information is available here: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml 

Example HTTP Status Code:

Status Code

(response header)

Description 

(response header)

Field 

(response body)

Message 

(response body)

 422  Data Validation Failed  The attribute that didn't pass the validation  The message, describing the validation error 

Error Codes:

Error Codes and Examples here »

Important: 

  • The API call will work ONLY if the number has been opted out via the Opt out Contact API
  • Check if contact/s are eligible to opt in via the Contacts List API, with status OptedOutViaApi = 1
  • If contacts texted in STOP or they unsubscribed by other methods, they need to text in a KEYWORD in order to re-subscribe.