Zingy Docs
Visit our websiteTry a DemoPricingContact
  • Introduction
  • 🎛️Dashboard
    • Overview
    • Apps
    • Account Profile
    • Billing - View Invoices
    • Billing - Payment Methods
    • Billing - Subscription
  • 💻App Editor
    • App Components
    • App Editor Tour
    • App Settings
    • App Users
    • App User Groups
    • Publishing your App
    • Pages and Forms
      • Create a Page
      • Create a Structured Page
      • What is a Structured Page ?
      • Create a Form
      • Page Editor
      • Working with Forms
    • Page Editor
      • Page Editor Tour
      • Adding Page Content
      • Adding Content to Structured Pages
      • Working with Page Elements
      • Page Element Settings
      • Responsive Design
      • Padding and Margin
      • Editing Text
      • Using AI Wiz in the Page Editor
      • Built-in elements
        • Link
        • Image
        • Spacer
        • Flexible Area
        • Layout Container
        • Layout Row
        • Layout Column
        • 1 Column
        • 2 Columns
        • 3 Columns
        • Add Column
        • Table
        • Table Row
        • Table Column Cell
        • Table Heading Cell
        • Table (3 cols)
        • Table (4 cols)
        • Input
        • Checkbox
        • Toggle Switch
        • Dropdown
        • Multi-line
        • Label
        • Button
        • Button Group
        • Input Group
        • Button Toolbar
        • Menubar Holder
        • Menubar Collapsible
        • Menubar
        • Menubar Item
        • Menubar Item Link
        • Menubar Style1
        • Menubar Style2
        • Menu Item
        • Popup Menu
        • Popup Menu Item
        • Menubar Popup Menu
        • Popup Menu Style1
        • Popup Menu Style2
        • Popup Menu Separator
        • Card
        • Card Group
        • Card Style1
        • Card Style2
        • Card Style3
        • Alert
        • Badged Text
        • Collapsible Area
        • Data Table
        • Stripe Payment
        • Form
        • Menubar Login Info
        • Data Design
      • Working with Forms
      • Using Forms
      • Page Preview
    • Page Settings
    • Page Flow
      • Block Anatomy
      • Toolbox Blocks
        • Set Content
        • Get Content
        • Badged Text
        • Alert Text
        • Status Animation
        • Set Style
        • Set CSS
        • Set Input Value
        • Get Input Value
        • Set Toggle Switch State
        • Get Toggle Switch State
        • Set Input Feedback
        • Enable/Disable Element
        • Set Element Attribute
        • Get Element Attribute
        • Get Element by Name
        • Element
        • URL Parameter Value
        • Navigate Page
        • Timer
        • Timer Repeat
        • Show Popup Form
        • Show Information Popup
        • Show Confirmation Popup
        • Popup Form Data
        • Collapsible Area Action
        • Mouse/Keyboard Action
        • Event Action
        • Action/Event Info
        • Show Menu
        • Menu Text
        • Menu Index
        • Write Log Message
        • Log Category
        • Data Table Action Menu Customize
        • Data Table Attach Form
        • Data Table Add Action
        • Data Table Load Next Page
        • Data Table Load Prev Page
        • Data Table Refresh
        • Data Table Custom Query
        • Data Table : Table Name
        • Data Table : Data
        • Content from Data Design
        • Set Content in Data Design
        • Get Content in Data Design
        • Get Element Attribute in Data Design
        • Set Element Attribute in Data Design
        • Set Style in Data Design
        • Set CSS in Data Design
        • Set Input Value in Data Design
        • Get Input Value in Data Design
        • Get Toggle Switch State in Data Design
        • Set Toggle Switch State in Data Design
        • Set Input Feedback in Data Design
        • Enable/Disable Element in Data Design
        • Initialize Toggle Switch in Data Design
        • Event Action in Data Design
        • Collapsible Area Action in Data Design
        • Data Record Count
        • Data Record at Index
        • Data Record Loop
        • Data Record Info
        • Data Record Loop Index
        • Data Record ID
        • Data Table Name
        • Data Query Name
        • Data Read
        • Data Read Next
        • Data Read Previous
        • Data Lookup
        • Data Lookup with ID
        • Data Status
        • Data Add Record
        • Data Update Record with ID
        • Data Delete Record with ID
        • Data Input Popup
        • Lock/Unlock Form
        • Save Form with Data
        • Reset Form
        • Set Form Event Status
        • Set Form Event Status Message
        • Form Submit Complete
        • Set Field Input Value
        • Get Field Input Value
        • Form Data
        • Form in Edit Mode
        • Form Events
        • Execute Connection Command
        • Execute API Call
        • Connection Data
        • Connection Error
        • API Call Connection
        • Connection
        • Connection Command
        • Cloud Flow Invoke Hook
        • Cloud Flow : URL of Web Hook
        • HTTP Post
        • HTTP Get
        • HTTP Data
        • HTTP Error
        • Date
        • Custom Code
        • Date from Text
        • Get Object Property
      • Coding in Page Flow
      • Zingy API For Page Flow
      • References
        • Value Types
        • Popup Customization
        • Prerequisite for Dynamic Content block examples
        • Prerequisite for Data examples
    • Dynamic Content
    • Data
      • Database Tables
      • Database Queries
      • Data Tool
    • Cloud Flow
      • Cloud Flow Editor
      • Block Anatomy
      • Toolbox Blocks
        • Data Update Records
        • Data Delete Records
      • Coding in Cloud Flow
      • SDK/Library Integration
    • Media
    • Connections
      • Services
        • Stripe
        • Sendgrid
        • Twilio
        • API Call
        • API Key
Powered by GitBook
On this page
  • Profile Settings
  • Account SID
  • API Key (optional)
  • Auth Token/API Key Secret
  • Connection Settings
  • Operations/Commands
  • Send Message
  • List Messages
  • Read Message
  • Update Message
  • Delete Message
  • Advanced Functionality
  1. App Editor
  2. Connections
  3. Services

Twilio

PreviousSendgridNextAPI Call

Last updated 1 year ago

The Twilio service allows you to send automated text/sms/mms messages from your app using the .


Profile Settings

NOTE: All profile settings are encrypted and stored in Zingy's cloud infrastructure.

Account SID

API Key (optional)

Twilio allows you to use its API services using either Auth Tokens or API Keys with Key secrets.

If you plan on using API Key, enter the value here.

Auth Token/API Key Secret


Connection Settings

The Twilio service does not have any connection specific settings.


Operations/Commands

Send Message

Use this command to send a text/sms/mms using the Twilio service.

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

fromPhone

fromService

toPhone

msg

The message body.

customProps

Output

List Messages

Use this command to list messages in your Twilio account.

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

criteria

limit

Optional. Limit the number of messages listed per page.

Output

Read Message

Use this command to retrieve/fetch a specific text/sms/mms message in your Twilio account.

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

sid

The unique Message SID identifying the message to be read.

Output

Update Message

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

sid

The unique Message SID identifying the message to be updated.

customProps

Object containing properties to be updated. Please note that Twilio restricts specific properties from being updated based on the status of the message.

Output

Delete Message

Use this command delete a text/sms/mms message in your Twilio account.

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

sid

The unique Message SID identifying the message to be deleted.

Output

This command does not provide any output beyond the Success/Fail status.


Advanced Functionality

To access the Twilio client initialized with credentials saved on this Twilio service connection, see the following example:

// To use a twilio client initialized with credentials provided 
// in a Twilio connection
const client = zingyConn.twilio(connectionName);

You may also initialize a seperate Twilio client, by specifying account credentials directly:

// To create a new twilio client specifying account credentials
const client = require('twilio')(accountSid, authToken);

Enter your here.

Click for more information.

If you entered a API Key above, enter the API Key Secret value here. If not, enter your Twilio account's here.

Click for more information on Auth Token vs API Keys.

The block is available in both and . Using this block you can add logic to trigger the operations/commands supported by the Sendgrid service.

For security purposes, all operations/commands offered by the Twilio service are only available in and cannot be used in .

A origination phone number in .

Optional. If sending the message as part of a campaign, specify the here.

The recipient phone number in in .

Optional. For advanced users, this specifies an object with properties based on parameters used by the .

containing information about the message. Please refer to the for details.

Optional. Object containing criteria for listing as specified by the .

of messages retrieved based on the criteria specified.

representing the message.

Use this command update properties of a text/sms/mms message in your Twilio account. This command is usually used to .

containing information about the message. Please refer to the for details.

In your app's Cloud Flow Web Hooks and Background Tasks, the block can be used to access and implement advanced functionality related to the Twilio messaging service.

After the client object is initialized, you can use it to call into the Twilio library. Refer to documentation for more information.

💻
Twilio Account SID
here
Auth Token value
here
Execute Connection Command
Page Flow
Cloud Flow
Cloud Flow
Page Flow
Object
Twilio API documentation
List
Object
redact a message
Object
Twilio API documentation
Custom Code
Twilio library
text
registered and approved
E.164 format
text
Message Service SID
text
E.164 format
text
object
Twilio API
object
Twilio API
numeric
text
text
object
text
Twilio API