API Example
Send a transactional message
POST
https://txnhog.co/txn/api/your_message_key
API POST Example for sending a transactional message. This is a simple example of sending a name, email, and phone number to the transactional template. The API accepts only string values, as application/json or application/x-www-form-urlencoded. When using an email template, the parameter "email" is required, and when using an sms template, the parameter "phone" is required.
Request Body
You can POST any key/value pair of up to 1400 characters each. This allows for variables to insert password reset links, image urls, just about anything. Note that HTML will be sanitized and encoded.
Last updated