📞
API Docs
  • Welcome
  • NUMBERS / ORDERING
    • List Areas
    • List Numbers
    • Order Numbers - No Cart
    • Delete Numbers
    • Change Call Forward
    • Vanity Tollfree - Search
    • Vanity Toll Free - Order
  • Shopping Cart Ordering
    • Add Number to Cart
    • List Numbers in Cart
    • Delete Number from Cart
    • Complete Order Cart
  • MY INVENTORY
    • List My Nmbers
    • List Call Flows
    • Change CallFlow
    • CDR Records
  • SMS/MMS
    • Send SMS
    • Send MMS
    • Receive SMS/MMS
    • Receive Delivery Receipts
  • Campaigns
    • Submit TollFree Campaign
  • CALL APIS
    • Calls
    • Set Incoming URL
    • Incoming Calls
    • Listing Calls
    • Making Calls
      • Example Code
        • Outbound to Tel#
        • Outbound to SIP Device
        • Example Responses
    • Modifying Live Calls
      • Examples
    • Recordings
      • Get List of Recordings
      • Delete a Recording
  • CALL API MARKUP
    • API Call Markup Language
      • Say
      • Dial
        • Number
        • Client
        • SIP
      • Play
      • Gather
      • Record
      • Hangup
      • Pause
      • Reject
      • Redirect
  • LOOKUPS
    • Carrier and CNAM
  • Number Portability
    • Validate Portability
    • Lookup Port Request
    • Submit Port Request
  • FAXING
    • Create Outbound Fax
    • Lookup Outbound Fax Status
    • List Faxes
    • Download File
  • registered agent
    • List Companies
    • List Registered Agents
    • List Documents
    • Download Document
    • Create Company
    • Delete Company
    • Create Registered Agent
    • Modify Registered Agent
Powered by GitBook
On this page
  1. CALL APIS
  2. Making Calls

Example Code

API Token Notice

You will need both your API Token and your Call API SID (ACCOUNT_SID). Both are available in User Settings at the top right of the portal.

Examples of making calls using the Call API

Full CallAPI URL:

https://v1.api19.com/call/2012-04-24/Accounts/ACCOUNT_SID/Calls.json

This section includes several examples in different languages of how to make calls.

The following table includes the supported POST variables that can be sent with your HTTP calls.

Request Parameters

Parameter

Description

From (Required)

The phone number to use as the caller id.

To (Required)

The phone number to call.

Url (Required)

The fully qualified URL that should be executed when the call connects.

Method

The HTTP method Platform should use when making its request to the above Url. Defaults to POST.

FallbackUrl

The URL that Platform will request if execution of Url fails for any reason.

FallbackMethod

The HTTP method that Platform should use to request the FallbackUrl. Must be either GET or POST. Defaults to POST.

StatusCallbackEvent

A comma separated list of events on which we are interested in getting a callback on. Possible values are initiated, ringing, answered, completed. Defaults to none.

StatusCallback

URL to receive the callback events at. Default none.

StatusCallbackMethod

Set to GET or POST. Defaults to POST.

Timeout

The number of seconds that the Platform should allow the phone to ring before assuming there is no answer. The default is 60 seconds.

PreviousMaking CallsNextOutbound to Tel#

Last updated 1 year ago

You can

view example code here