Interakt

Usage Instructions

Use Interakt, the WhatsApp Business platform for Indian businesses, to send approved WhatsApp templates with header, body, and button values, reply with free-form text or media, create and update contacts with traits and tags, record events that start Interakt campaigns, and list your templates. WhatsApp allows free-form messages only within 24 hours of the customer’s last message. Outside that window, or to start a conversation, send an approved template. Interakt can also trigger workflows on incoming messages and on template status (sent, delivered, read, failed, clicked).

Actions

Interakt List Templates

List the WhatsApp templates in your Interakt account with their code name, language, category, approval status, and text. Use it to find the template name and variables before sending a template.

Input

ParameterTypeRequiredDescription
apiKeystringYesInterakt API key (Interakt → Settings → Developer Settings → Secret Key)
templateNamestringNoOnly return the template with this code name
approvalStatusstringNoOnly return templates with this approval status, e.g. APPROVED
languagestringNoOnly return templates in this language code, e.g. en
offsetnumberNoNumber of templates to skip, for the next page when hasNext is true

Output

ParameterTypeDescription
templatesarrayTemplates in the account
↳ idstringInterakt template ID
↳ namestringCode name used to send the template
↳ displayNamestringDisplay name in Interakt
↳ languagestringLanguage code
↳ categorystringTemplate category, e.g. UTILITY or MARKETING
↳ approvalStatusstringWhatsApp approval status, e.g. APPROVED
↳ headerFormatstringHeader format, if any
↳ headerstringHeader text, if any
↳ bodystringBody text with {{1}}-style variables
↳ footerstringFooter text, if any
↳ buttonsstringButtons as a JSON string
↳ variablePresentstringWhether the template has variables
↳ waTemplateIdstringWhatsApp template ID
↳ createdAtstringWhen the template was created (UTC)
countnumberNumber of matching templates
hasNextbooleanWhether more templates are available

Interakt Send Session Message

Send a free-form WhatsApp reply (text, image, document, audio, or video) through Interakt. WhatsApp only allows free-form (session) messages within 24 hours of the customer’s last message to your number. Outside that window, or to start a conversation, you must send a pre-approved template. Interakt rejects a session message when the customer has not messaged in the last 24 hours.

Input

ParameterTypeRequiredDescription
apiKeystringYesInterakt API key (Interakt → Settings → Developer Settings → Secret Key)
phoneNumberstringNoCustomer phone number without the country code or a leading 0 (e.g. 9876543210). Use with countryCode
countryCodestringNoCountry code of phoneNumber, with a plus sign (e.g. +91). Defaults to +91
fullPhoneNumberstringNoFull phone number with the country code and no plus sign (e.g. 919876543210). Use instead of phoneNumber and countryCode
messageTypestringYesMessage type: Text, Image, Document, Audio, or Video
messagestringNoMessage text. Required for Text; the caption for media messages
mediaUrlstringNoPublic URL of the media file. Required for Image, Document, Audio, and Video
fileNamestringNoFile name shown for a media message, e.g. invoice.pdf
callbackDatastringNoUp to 512 characters returned in this message’s webhooks

Output

ParameterTypeDescription
messageIdstringInterakt message ID; delivery-status webhooks refer to it
messagestringConfirmation message from Interakt

Interakt Send Template

Send an approved WhatsApp template message through Interakt, filling its header, body, and button variables. WhatsApp only allows free-form (session) messages within 24 hours of the customer’s last message to your number. Outside that window, or to start a conversation, you must send a pre-approved template. Returns the message ID that delivery-status webhooks refer to.

Input

ParameterTypeRequiredDescription
apiKeystringYesInterakt API key (Interakt → Settings → Developer Settings → Secret Key)
phoneNumberstringNoCustomer phone number without the country code or a leading 0 (e.g. 9876543210). Use with countryCode
countryCodestringNoCountry code of phoneNumber, with a plus sign (e.g. +91). Defaults to +91
fullPhoneNumberstringNoFull phone number with the country code and no plus sign (e.g. 919876543210). Use instead of phoneNumber and countryCode
templateNamestringYesCode name of an approved template in Interakt (shown by the info icon on the Templates page), e.g. order_confirmation
languageCodestringYesLanguage the template was created in, e.g. en, en_US, or hi
headerValuesarrayNoHeader variable values in order. For an image, video, or document header, a single public media URL
bodyValuesarrayNoBody variable values in order: the first fills {{1}}, the second {{2}}, ...
buttonValuesjsonNoDynamic URL button values keyed by button index starting at 0, e.g. {"1": ["ORDER123"]} fills {{1}} in the URL of the second button
buttonPayloadjsonNoQuick reply payloads keyed by button index starting at 0, e.g. {"0": ["yes"], "1": ["no"]}. Strings of at most 128 characters, up to 3 buttons
fileNamestringNoFile name shown for a document header, e.g. invoice.pdf
callbackDatastringNoUp to 512 characters returned in this message’s webhooks, e.g. your order or lead ID
campaignIdstringNoInterakt API campaign ID, so the send is counted in that campaign’s analytics

Output

ParameterTypeDescription
messageIdstringInterakt message ID; delivery-status webhooks refer to it
messagestringConfirmation message from Interakt

Interakt Track Event

Record an event (e.g. "Order Placed", "Cart Abandoned") with properties on a contact’s Interakt timeline. An Interakt ongoing campaign that uses the event as its trigger then sends its approved template automatically.

Input

ParameterTypeRequiredDescription
apiKeystringYesInterakt API key (Interakt → Settings → Developer Settings → Secret Key)
phoneNumberstringNoCustomer phone number without the country code or a leading 0 (e.g. 9876543210). Use with countryCode
countryCodestringNoCountry code of phoneNumber, with a plus sign (e.g. +91). Defaults to +91
fullPhoneNumberstringNoFull phone number with the country code and no plus sign (e.g. 919876543210). Use instead of phoneNumber and countryCode
userIdstringNoYour own ID for the contact. Either userId or a phone number is required
eventNamestringYesName of the event, e.g. Order Placed
traitsjsonNoFlat JSON object of event properties, e.g. {"orderNumber": "CUS001", "orderValue": "50.00"}

Output

ParameterTypeDescription
idstringID of the recorded event
messagestringConfirmation message from Interakt

Interakt Track User

Create or update a WhatsApp contact in Interakt with traits (name, email, custom attributes) and tags. A new value for an existing trait replaces the old one; tags can only be added, not removed.

Input

ParameterTypeRequiredDescription
apiKeystringYesInterakt API key (Interakt → Settings → Developer Settings → Secret Key)
phoneNumberstringNoCustomer phone number without the country code or a leading 0 (e.g. 9876543210). Use with countryCode
countryCodestringNoCountry code of phoneNumber, with a plus sign (e.g. +91). Defaults to +91
fullPhoneNumberstringNoFull phone number with the country code and no plus sign (e.g. 919876543210). Use instead of phoneNumber and countryCode
userIdstringNoYour own ID for the contact. Either userId or a phone number is required; a new userId must not belong to another contact
traitsjsonNoFlat JSON object of contact attributes, e.g. {"name": "Asha", "email": "asha@example.com", "city": "Pune"}. Values must not contain newlines, tabs, or runs of spaces
tagsarrayNoTags to add to the contact, e.g. ["new customer", "potential lead"]

Output

ParameterTypeDescription
messagestringConfirmation message from Interakt