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
  • Authorization Type
  • User Name
  • Secret
  • Additional Request Headers
  • Send Secret via POST Data
  • Connection Settings
  • URL
  • Request Type
  • Additional Request Headers
  • POST Content Type
  • Request Data
  • Request Parameters
  • Timeout
  • Operations/Commands
  1. App Editor
  2. Connections
  3. Services

API Call

PreviousTwilioNextAPI Key

Last updated 1 year ago

The API Call service allows your app to communicate with other apps including third-party software services.

Even if initiated from your app's page or form, the API Call request is always securely routed via Zingy's cloud infrastructure.

This ensures that any sensitive information stored in the profile or the connection settings are never exposed on the user's browser.


Profile Settings

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

Authorization Type

The allowed choices are:

  • none: No authentication is required for the API call.

  • Custom: Any other custom authentication method specific to the API.

User Name

Only needed if 'Basic' is chosen as the Authorization Type.

Secret

This is a versatile field. Depending on the context:

  • API Key: For some services that provide an API key for authentication.

  • Custom value: Any other secret value needed for a custom authentication mechanism.

Additional Request Headers

Some APIs require additional headers for various reasons, be it for specifying content type, passing additional metadata, or for tracking. This field allows users to pass in extra header values in a JSON string format. For instance:

{
    "Custom-Header1": "customValue1",
    "Custom-Header2": "customValue2"    
}

Send Secret via POST Data

In some scenarios, especially when dealing with tokens or keys, the secret is not sent in the headers but rather in the body of the request. This field lets the system know how to handle the secret—whether to include it in the headers or in the body of the request.

The allowed choices are:

  • no: The secret won't be sent in the request's body.


Connection Settings

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

URL

Specifies the destination URL of the API call, including the protocol (either http or https). It points to the server endpoint to which the API request is made. Example: https://api.example.com/data

Request Type

Defines the HTTP or HTTPS request method to be used for the API call.

Allowed choices are:

  • GET: Retrieve data from the server.

  • POST: Send new data to the server.

  • PUT: Update existing data on the server.

  • PATCH: Partially update existing data on the server.

  • DELETE: Remove data from the server.

  • HEAD: Retrieve only the headers from the server.

  • OPTIONS: Discover communication options available for the target URL.

Additional Request Headers

Headers are specified in a JSON string format. As an example:

{"Accept-Language": "en-US", "Custom-Header": "customValue"}

POST Content Type

Allowed choices are:

  • Default (JSON): The request body will be sent as a JSON.

  • Form: The request body will be sent as a standard form.

  • Multipart Form: The request body will be sent as a multipart form, commonly used for file uploads.

Request Data

For example:

{"userId": "12345", "details": {"firstName": "John", "lastName": "Doe"}}

Request Parameters

Optional. These are parameters appended to the URL as a query string. Specified as a JSON string with key-value pairs. Additional or dynamic parameters can be appended using Widget, Page Flow, and Cloud Flow blocks.

For example: If the value is:

{"sortBy": "date", "order": "desc"}

then, the final URL might look like: https://api.example.com/data?sortBy=date&order=desc

Timeout

Optional. Specifies the duration (in milliseconds) the API call will wait for a response before timing out. If not set, the default timeout is 10,000 milliseconds (10 seconds).

For example: Setting a value of 5000 would result in a 5-second timeout for the API call.


Operations/Commands

Keep in mind that when integrating with an external API, always consult its official documentation to ensure correct configuration of endpoints, request types, headers, and other specifications.

Defines how the will be constructed and used for the API call. The chosen value dictates how other settings (like and ) might be used.

Basic: Utilizes the where credentials (username & password or API key) are sent as Base64-encoded in the header.

Bearer: Utilizes . This means sending a token (often JWT) as a header.

The username, typically used in 'Basic' . It's part of the credentials that might be needed for some APIs. This field will be used alongside the setting to form the 'Basic' authentication header by encoding them to Base64.

Password: If 'Basic' is chosen and a username is provided, this would be the password.

yes: The secret will be parsed as JSON and included in the body of .

Defines supplementary headers to be included in the request that is combined with the .

Defines the content type of the body for . The chosen value specifies how the data in the field will be formatted when sent.

Optional. Contains the data to be sent in the request body, specified as a JSON string with key-value pairs. Additional or dynamic data using , and can be added to the data provided here.

When considering API calls within , it's advisable to input sensitive or static information directly into these settings. Reserve the data strictly for details that are dynamic.

When considering API calls within , it's advisable to input sensitive or static information directly into these settings. Reserve the data strictly for details that are dynamic.

Use the block in and to invoke the API Call.

💻
Basic Authentication method
Bearer Token Authentication
Page Flow
Cloud Flow
Page Flow
Page Flow
Page Flow
Page Flow
Execute API Call
Page Flow
Cloud Flow
HTTP Authorization request header
User Name
Secret
Authorization Type
Secret
Authorization
POST request
Additional Request Headers provided in the profile settings
POST, PUT, and PATCH requests
Request Data