TextMagic

The TextMagic modules allow you to monitor, add, update, list. and delete the calls, contacts, custom fields, lists, and messages from your TextMagic account.

Getting Started with TextMagic

Prerequisites

  • A TextMagic account

In order to use TextMagic with Integromat, it is necessary to have a TextMagic account. If you do not have one, you can create a TextMagic account at textmagic.com.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting TextMagic to Integromat

To connect your TextMagic account to Integromat you need to obtain the API Key from your TextMagic account and insert it in the Create a connection dialog in the Integromat module.

1. Log in to your TextMagic account.

2. Click Accounts > API > Add new API key

tPEPgPHujg.gif

3. Enter your app name and click Generate new key.

LY8AEgLXst.png

4. Copy the API Key to your clipboard.

L24yjhu8yt.png

5. Go to Integromat and open the TextMagic module's Create a connection dialog.

FspNaQxZuM.gif

6. In the Connection name field, enter a name for the connection.

7. In the Username field, enter your TextMagic account's username, You can find the username at Account > Account Settings.

eblN9xf7qe.gif

8. In the API Key field, enter the API key copied in step 4, and click Continue.

The connection has been established.

Lists

Search Lists

Searches lists by given criteria.

ConnectionEstablish a connection to your TextMagic account.
LimitSet the maximum number of lists Integromat should return during one execution cycle.
List IDsAdd the List IDs you want to search.
QueryEnter a keyword or phrase to search the lists that match the specified query.
Only MineSelect whether you want to search only the lists related to the current user.
Only DefaultSelect whether you want to search only the default lists related to the current user.
Order BySelect or map the option in which you want to order the lists:
  • List ID
  • Name
  • Members Count
DirectionSelect or map the direction in which you want to list the results:
  • Asc
  • Desc

Get a List

Gets the details of a specific list.

ConnectionEstablish a connection to your TextMagic account.
List IDSelect or map the List ID whose details you want to retrieve.

Create a List

Creates a new list.

ConnectionEstablish a connection to your TextMagic account.
List NameEnter the name for the list.
SharedSelect whether the list is shared.
FavoritedSelect whether the list is marked as favorite.
Is DefaultSelect whether this is the default list for new contacts.

Assign Contact to a List

Assigns contacts to a list.

ConnectionEstablish a connection to your TextMagic account.
List IDSelect or map the List ID to which you want to assign the contact.
Contact IDSelect or map the Contact ID which you want to assign to the list.

Unassign Contact from a List

Unassigns contact from a list.

ConnectionEstablish a connection to your TextMagic account.
List IDSelect or map the List ID from which you want to unassign the contact.
Contact IDSelect or map the Contact ID which you want to unassign from the list.

Update a List

Updates a list.

ConnectionEstablish a connection to your TextMagic account.
List IDSelect or map the List ID whose details you want to update.
NameEnter a new name for the list.
SharedSelect whether the list is shared.
FavoritedSelect whether the list is marked as favorite.
Is DefaultSelect whether this is the default list for new contacts.

Delete a List

Deletes a list.

ConnectionEstablish a connection to your TextMagic account.
List IDSelect or map the List ID you want to delete.

Contacts

Search Contacts

Searches contacts by given criteria.

ConnectionEstablish a connection to your TextMagic account.
LimitSet the maximum number of contacts Integromat should return during one execution cycle.
Contact IDsAdd the Contact IDs you want to search.
SharedSelect whether you want to search the shared contacts.
List IDSelect or map the List ID whose contacts you want to search.
Include BlockedSelect whether you want to include the blocked contacts in the results.
QueryEnter a keyword or phrase to search the contacts that match the specified query.
LocalSelect whether you want to include the local phone numbers of the contacts in the results.
Exact MatchSelect whether you want to search only the contacts that exactly match the search criteria.
Order BySelect or map the option in which you want to order the contacts:
  • Contact ID
  • First Name
  • Last Name
DirectionSelect or map the direction in which you want to list the results:
  • Asc
  • Desc

Get a Contact

Gets contact.

ConnectionEstablish a connection to your TextMagic account.
Contact IDSelect or map the Contact ID whose details you want to retrieve.

Create a Contact

Creates contact.

ConnectionEstablish a connection to your TextMagic account.
PhoneEnter the contact's phone number. For example, 12125369215.
List IDSelect or map the List ID to which you want to assign the contact.
First NameEnter (map) the contact's first name.
Last NameEnter (map) the contact's last name.
EmailEnter (map) the contact's email address.
Company NameEnter (map) the contact's company name.
FavoritedSelect whether you want to mark the contact as favorite.
BlockedSelect whether you want to block the contact.
Type of PhoneSelect or map the contact's phone number type:
  • Landline
  • Mobile
Custom Field ValuesAdd the custom fields and their values for the contact.
LocalSelect whether the contact's phone number is local.
CountryEnter the contact's phone number's two-character country code. For example, US for the United States. 

Update the Custom Field Value

Updates the custom field value of a specified contact.

ConnectionEstablish a connection to your TextMagic account.
Custom Field IDSelect or map the Custom Field ID which you want to update for the contact.
Contact IDSelect or map the Contact ID whose values you want to update.
ValueEnter the new value for the custom field.

Update a Contact

Updates contact.

ConnectionEstablish a connection to your TextMagic account.
Contact IDSelect or map the Contact ID whose value you want o update.
PhoneEnter the contact's phone number. For example, 12125369215.
List IDSelect or map the List ID to which you want to assign the contact.
First NameEnter (map) the contact's first name.
Last NameEnter (map) the contact's last name.
EmailEnter (map) the contact's email address.
Company NameEnter (map) the contact's company name.
FavoritedSelect whether you want to mark the contact as favorite.
BlockedSelect whether you want to block the contact.
Type of PhoneSelect or map the contact's phone number type:
  • Landline
  • Mobile
Custom Field ValuesAdd the custom fields and their values for the contact.
LocalSelect whether the contact's phone number is local.
CountryEnter the contact's phone number's two-character country code. For example, US for the United States. 

Delete a Contact

Deletes contact.

ConnectionEstablish a connection to your TextMagic account.
Contact IDSelect or map the Contact ID you want to delete.

Custom Fields

List Custom Fields

Gets all custom fields.

ConnectionEstablish a connection to your TextMagic account.
LimitSet the maximum number of custom fields Integromat should return during one execution cycle.

Get a Custom Field

Gets a custom field.

ConnectionEstablish a connection to your TextMagic account.
Custom Field IDSelect or map the Custom Field ID whose details you want to retrieve.

Create a Custom Field

Creates a new custom field.

ConnectionEstablish a connection to your TextMagic account.
NameEnter the custom field name.

Update a Custom Field

Updates a custom field.

ConnectionEstablish a connection to your TextMagic account.
Custom Field IDSelect or map the Custom Field ID whose details you want to update.
NameEnter the custom field name.

Delete a Custom Field

Deletes a custom field.

ConnectionEstablish a connection to your TextMagic account.
Custom Field IDSelect or map the Custom Field ID you want to delete.

Messages

You do not have to add the webhooks in the TextMagic as it is automatically done for you once you add and save an instant trigger module to your scenario.

Watch Incoming Message

Triggers when a new incoming message is received.

Webhook NameEnter a name for the webhook.
ConnectionEstablish a connection to your TextMagic account.

List Outgoing Messages

Gets all messages.

ConnectionEstablish a connection to your TextMagic account.
LimitSet the maximum number of outgoing messages Integromat should return during one execution cycle.

Get an Outgoing Message

Gets a message.

ConnectionEstablish a connection to your TextMagic account.
Message IDSelect or map the Message ID whose details you want to retrieve.

Send a Message

Sends a message.

ConnectionEstablish a connection to your TextMagic account.
TextEnter the message text.
Template IDSelect or map the Template ID for the message.
ContactsSelect or map the contacts to whom you want to send the message. You should specify at least one of the Phones, Contacts, Lists fields.
ListsAdd the lists to which you want to send the message.
PhonesAdd the phone numbers to which you want to send the message.
Sending Date TimeEnter the date and time when you want to send the message.
Cut ExtraSelect whether you want the sending method to cut extra characters which do not fit supplied partsCount or return 400 Bad request response instead.
Parts CountEnter the maximum number of parts you can divide the message into. You can divide the message into a maximum of six parts. 
Reference IDEnter the custom message Reference ID.
FromEnter (map) the Sender ID from which you want to send the message. The value should be either a phone number or an alphanumeric sender ID. If specified Sender ID is not allowed for some destinations, a fallback default Sender ID will be used to ensure delivery.
RruleEnter the iCal RRULE parameter to create recurrent scheduled messages. Send time is mandatory as the start point of sending. See the Rrule generator for format details.
Create ChatSelect whether you want to create a new chat with recipients.
TTSSelect whether you want to send a text-to-speech message.
LocalSelect whether you want to consider the phone numbers as local.
CountryEnter the contact's phone number's two-character country code. For example, US for the United States. 
DestinationSelect or map the message destination:
  • MMS
  • TTS 
ResourcesEnter the file name from the MMS attachment response if you are sending the MMS message.

Delete an Outgoing Message

Deletes a message.

ConnectionEstablish a connection to your TextMagic account.
Message IDSelect or map the Message ID you want to delete.

Calls

You do not have to add the webhooks in the TextMagic as it is automatically done for you once you add and save an instant trigger module to your scenario.

Watch Incling Call

Triggers when someone calls your TextMagic number.

Webhook NameEnter a name for the webhook.
ConnectionEstablish a connection to your TextMagic account.

Watch Missed Call

Triggers when you miss an incoming call to your Textmagic number.

Webhook NameEnter a name for the webhook.
ConnectionEstablish a connection to your TextMagic account.

Change the Forwarding Numbers

Changes the forwarding number.

ConnectionEstablish a connection to your TextMagic account.
Number IDSelect or map the Number ID which you want to change.
Forwarding NumberEnter the new number you want to change.

Other

You do not have to add the webhooks in the TextMagic as it is automatically done for you once you add and save an instant trigger module to your scenario.

Watch Unsubscriber

Triggers when someone unsubscribed from your communication.

Webhook NameEnter a name for the webhook.
ConnectionEstablish a connection to your TextMagic account.

Carrier Lookup

Allows retrieving additional information about a phone number.

ConnectionEstablish a connection to your TextMagic account.
PhoneEnter the phone number of whose carrier you want to lookup.
CountryEnter the two-character country code to which the phone number belongs. For example, US for the United States.

Email Lookup

Allows retrieving additional information about a phone number.

ConnectionEstablish a connection to your TextMagic account.
Email AddressEnter (map) the email address you want to lookup.

Make an API Call

Performs an arbitrary authorized API call.

ConnectionEstablish a connection to your TextMagic account.
URL

Enter a path relative to https://rest.textmagic.com. For example: /api/v2/lists

For the list of available endpoints, refer to the TextMagic API Documentation.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example of Use - List Contacts

The following API call returns all the contacts from your TextMagic account:

URL:
/api/v2/contacts

Method:
GET

qqNJV7gz4H.png

Matches of the search can be found in the module's Output under BundleBody > resources
In our example, 2 contacts were returned:

gY6GFe9eiC.png

 

Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.