JSON Examples

Simple makecall:

    {
      "action": "makeCall",
      "to": "sip:1234@1.2.3.4",
      "apiKey": "bd75a37a-1ccd-42f4-b2c9-abb30bf4bbe0"
    }
    

Makecall with caller id set:

    {
      "action": "makeCall",
      "to": "sip:1234@1.2.3.4",
      "callerId": "5678",
      "apiKey": "bd75a37a-1ccd-42f4-b2c9-abb30bf4bbe0"
    }
    

Simple start application

    {
      "action": "startApplication",
      "to": "sip:1234@1.2.3.4",
      "apiKey": "b0c953f3-1d4f-4736-b881-65a7ac824207"
    }
    

Make call with String application data

    {
      "action": "makeCall",
      "to": "sip:1234@1.2.3.4",
      "apiKey": "bd75a37a-1ccd-42f4-b2c9-abb30bf4bbe0",
      "appData": "Hello world"
    }
        

Make call with Object application data

    {
      "action": "makeCall",
      "to": "sip:1234@1.2.3.4",
      "apiKey": "bd75a37a-1ccd-42f4-b2c9-abb30bf4bbe0",
      "appData": {
                  "hello": "world",
                  "foo": "bar"
                 }
    }
    

Make call with 2 second timeout

    {
      "action": "makeCall",
      "to": "sip:1234@1.2.3.4",
      "timeout": 2000,
      "apiKey": "bd75a37a-1ccd-42f4-b2c9-abb30bf4bbe0"
    }