Version 6, last updated by Richard Dallaway at Jul 05 06:37 2010 UTC

Web hooks allow you to dynamically send message content based on the content of a text message received by Taykt:

Here's how it works. When Taykt receives a message it will be POSTed to your URL which you will have registered for that word. We will wait for up to 10 seconds for your application to respond before closing the connection and sending the regular Taykt message registered against the word. This means that: (a) Your web hook needs to be mildly responsive; and (b) your standard message text entered via the Taykt.com web interface can not be empty and needs to say something sensible.

 

Details

When we POST the message to you, we include the entire text of the message plus an identifier which is unique per phone number. In effect it's a proxy for the phone number which allows you to keep track of what messages you have sent to that particular phone number.

The two POST parameters are pid and text . You need to respond with a message body that is the message text to send on, which, unsurprisingly need to be no longer than 160 characters.

The pid will be 36 characters in length (e.g. 7c48160a-3989-4ffe-9dc3-da2642d6500a).

 

Setting up a webhook

To set up a web hook, go to your word in Taykt, and in the "web hooks" area specify a URL to post to (HTTP protocol only):

Screens...

 

Further reading

  • If you want to read more about web hooks, check out webhooks.org