...
Code Block | ||
---|---|---|
| ||
{ "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 | ||
---|---|---|
| ||
{ "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 | ||
---|---|---|
| ||
{ "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> } } |
...