URL:
https://api2.protexting.com/v1/contacts-opt-in/create-custom?access_token=your_access_token
Method:
POST
* required parameters
Parameter | Description |
---|---|
* PhoneNumber | string, valid phone number |
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"}'
{ "message": "Phone number successfully opted in", }
<response>
<message>
Phone number successfully opted in
</message>
</response>
The standard HTTP Status Codes are used. More information is available here: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
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 and Examples here »