This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WordPress TextIt SDK


How it works

  1. Create your TextIt account
  2. Go to your TextIt account page and enter {your wordpress url}/textit-webhook-receiver as your WebHook URL
  3. Paste the generated API token in the WordPress TextIt SDK settings page and save changes
  4. Go to Settings > Permalinks and save to refresh the WordPress rewrite rules
  5. Now you can use the textit_webhook_event hook in your custom plugin or theme to respond to TextIt webhook events, and WordPressTextItSDK::textItDo() to call the TextIt REST API

TextIt API
Full documentation is available:

Quick method reference:

  • contacts – To list or modify contacts.
  • fields – To list or modify contact fields.
  • messages – To list and create new SMS messages.
  • relayers – To list, create and remove new Android phones.
  • calls – To list incoming, outgoing and missed calls as reported by the Android phone.
  • flows – To list active flows.
  • runs – To list or start flow runs for contacts.
  • campaigns – To list or modify campaigns on your account.
  • events – To list or modify campaign events on your account.
  • boundaries – To retrieve the geometries of the administrative boundaries on your account.


To call the TextIt API, use WordPressTextItSDK::textItDo($method, $args, $http)

$method - string - One of the TextIt API methods listed above

$args - array - 2 dimensional array containing argument names and values. Details of accepted arguments in the TextIt documentation

$http - string - Either `GET` or `POST`, depending on whether you want to list or add / modify data

The return value will be either an array with a TextIt API response or an exception

E.g. WordPressTextItSDK::textItDo( 'contacts', array(), 'GET' ) would return a list of contacts from your TextIt account


To respond to TextIt webhook events (e.g. Incoming Messages, Outgoing Messages, Incoming Calls, Outgoing Calls, Relayer Alarms) use add_action( 'textit_webhook_event', 'my_custom_function', 2, 1 )

Your custom function should accept a single argument – $event – an array containing the data TextIt posted via the webhook


  1. Upload wp-textit-sdk to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Contributors & Developers

“WordPress TextIt SDK” is open source software. The following people have contributed to this plugin.

Translate “WordPress TextIt SDK” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.