Using Deluge Scripting, you can make API calls easily from ServiceDesk Plus MSP Cloud to any third-party applications.
ServiceDesk Plus MSP Cloud REST APIs enable you to perform all operations that you execute through the web client. To understand the APIs available in ServiceDesk Plus MSP Cloud and their structures, refer to the V3 API documentation in the application (Admin > General > API).

API calls will be triggered through the account of the support rep whose API key is configured in the custom function. You can make API calls to other service desk instances if the support rep account that you use has sufficient permissions for the API calls.
API Calls Within ServiceDesk Plus MSP Cloud
Write custom functions in the following syntax to trigger API calls within ServiceDesk Plus MSP Cloud:
- response = invokeurl
- [
- url: "http://servername:portnumber/api/v3/<....>"
- type: POST\GET\PUT\DELETE
- parameters: {"input_data":<INPUT_DATA>,"TECHNICIAN_KEY":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","PORTALID":<HELPDESKID>}
- ];
Sample API Calls
1. Get the list of requests in the application
2. Fetch the first 50 requests created in the application that are currently open
- resp = invokeurl
- [
- url: "http://servername:portnumber/api/v3/requests"
- type:GET
- parameters: {"input_data":{"list_info":{"row_count":"50","search_criteria":{"field":"status.name","condition":"is","value":"Open"}}},"TECHNICIAN_KEY":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","PORTALID":<HELPDESKID>}
- ];
3. Create a request with the subject 'New Issue'
In the above sample, the API response in the 'resp' variable will be in JSON format since ServiceDesk Plus MSP Cloud v3 API responses are in JSON format. In further lines of code, you can use the 'resp' variable like any other variable. The API response must be treated as the 'Map' data type.
API Calls to External Applications
Write custom functions in the following syntax to trigger API calls to any external applications:
- resp = invokeurl[
- url: <URL>
- type: <GET|POST|PUT|DELETE|PATCH>
- parameters: <PARAMETERS>
- headers: <HEADERS>
- files: <FILE_NAME>
- ];
Use the following pointers to fill out the custom function details:
<URL>: Provide your API URL.
<PARAMETERS>: Specify the parameters of your API.
<HEADERS>: Provide the authorization details of the third-party application. For example, if your API accepts 'authtoken', then provide the authtoken generated for the third party application.
<FILE_NAME>: If you are triggering an API to submit a file (received from another API's response), specify the file name in this space.
Related Articles
Basic Concepts of Deluge
Deluge supports data types, conditional statements, loops, functions, and return statements that are comparable to other popular programming languages, such as C++, Python, Java, JavaScript, and Swift. In the following document, we will discuss the ...
Callback Functions
Callback functions allow you to manipulate data within ServiceDesk Plus MSP Cloud whenever an event occurs in an external application. For example, you can write a callback function to notify and update the necessary information in ServiceDesk Plus ...
Life Cycle
Life Cycles in ServiceDesk Plus MSP Cloud allow admins to formulate a resolution process with built-in guidance for the help desk technician. A life cycle ensures efficient process adherence; you can establish a directional flow, minimize the scope ...
Custom Menu
Custom functions can be executed using Custom Menu to perform a variety of user-defined actions within ServiceDesk Plus MSP Cloud and external applications. You can configure custom functions for custom menu actions in requests, problems, changes, ...
Workflows
Workflows help you define a directional pathway to process the requests through its life cycle. You can execute workflows for requests, problems, changes, and releases, and assets. Workflows consist of two main parts: Conditions and Actions. You can ...