TextP2P provides an HTTP POST API which anyone can call to send text messages from one application / CRM like Infusionsoft, Salesforce, etc. synchronously through TextP2P.
TextP2P also integrates with Zapier which means that it integrates with more than 2000 applications. You can use your API credentials to configure TextP2P zaps! Learn more
By going to the Application page found under your avatar, you will be shown your API url, username, and api secret key. The api secret key is an encrypted hash of your password so if you change your TextP2P login password, it will change your api secret key as well.
Example:
The application should make a http post using the following post parameters below.
POST PARAMETERS:
AUTH_USERNAME = greg@testing.com
AUTH_SECRET = 2a9d121cd9c3a1823asdfadf3293la89
PHONE = 5554442272
MSG = Hey [FIRSTNAME], This is a test!
MMSFILE = http://imageshack.com/myimage.jpg
SENDDATE =2019-01-15 14:43:46
Note: Send date should be the format YYYY-MM-DD HH:MI:SS. If not set, it will send immediately.
MMSFILE and SENDDATE are optional
RETURN:
If successful it will return an http response code of 200.
An error will return 400 or 404.
Authorization error will return 401
Instructions on configuring Infusionsoft
https://classic-infusionsoft.knowledgeowl.com/help/campaign-sequence-http-post
Use the sequence in the campaign builder to send a text message using TextP2P by using the Infusionsoft http api widget
You can configure the http api widget like this:
Curl Example:
curl -v -d "AUTH_USERNAME=greg@testing.com&AUTH_SECRET=XXXXXXXXXXXXX&PHONE=5553152233&MSG=this is a test" https://app.textp2p.com/api-sendtext.php
___________________________________________________________________
You can also send up to 10,000 phone numbers in a single api call.
See example with multiple phone numbers and notice it will now return a JSON array with any errors
curl -d "AUTH_USERNAME=greg@testing.com&AUTH_SECRET=XXXXXXXXXXX&PHONE=5713151000,5552349999,7037712233&MSG=this is a test" http://app.textp2p.com/api-sendtext.php
Returns:
{"status":"SUCCESS","errors":[{"phone":"5552349999","error":"5552349999: Phone number is a bad-number"},{"phone":"7037712233","error":"7037712233: Phone number is a landline"}]}
Note: there is a rate limit of 2 per second on the api.
Comments
0 comments
Please sign in to leave a comment.