Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
  "command": "channel.dialrequest.incontact.getscripts",
  "target": "<session-id>.<channel-id>" |
  "<session-id>.<channel-group-id>.<channel-id>",
  "data":
  {
    "destination": "<number-to-dial>",
  
 "extensions":     {
      <platform-specific-extensions>
    }
  }
}

Success Response

Code Block
languagejson
{
  "command": "channel.dialrequest.incontact.getscripts",
  "target": "<session-id>.<channel-id>" |
  "<session-id>.<channel-group-id>.<channel-id>",
  "result": "success",
  "data":
  {
    <Same data contents as original request>"scripts":
    [
      {
        "scriptId": "<script_id>",
        "scriptName": "<script_name>"
      }
    ]
  }
}

Failure Response

Code Block
languagejson
{
  "command": "channel.request.incontact.dialgetscripts",
  "target": "<session-id>.<channel-id>" |
  "<session-id>.<channel-group-id>.<channel-id>",
  "result": "failure",
  "failure":
  {
    "code": "<error-code-for-failure>",
    "message": "<error-message>",
    "context": "<stack-trace-if-applicable>"
  },
  "original":
  {
    <Contains the original request JSON structure>
  }
}

...