IT Glue API: Create, retrieve, update, and delete data in your IT Glue account. Use the IT Glue API to access all of your IT Glue data and pull information into your own applications or integrate with third-party tools that we don’t currently integrate with yet.
Introduction
Efficiency, consistency, open communication, connectivity, process automation, and flexibility. These core values are ingrained in your service model - why not do the same with your data?
The IT Glue API can be used to give you all of the above core values by allowing you to sync your data with nearly any platform and get information from external sources into your account. Taking advantage of an API allows you to automate, drive scalability, and grow your company in the long run.
API Basics
Starting with the basics, what exactly is an API? Application program interface (API) is application code that serves as a communication bridge to other apps, databases, services, or operating systems. It allows separate applications to exchange messages or data in a standardized format to automate processes, create consistency, streamline data sharing, and save developers time.
[optin-monster slug="rspxzypcbhn0djbrsncg"]
Nowadays, APIs are the backbone of modern connectivity, ensuring you are getting the ultimate information transfer experience. In simpler terms, think of APIs as the intermediary that allows two apps to talk to each other. What does that look like to the end user? When you use an app on your browser, the app connects to the Internet and sends data to a server. The server receives and interprets the data quickly, performs the needed actions, and sends the data back to your app.
IT Glue’s API is a RESTful API that conforms to the JSON API spec. Our API can be used with any programming language that supports the creation of HTTP requests and can parse JSON. Let’s break down what that means.
HTTP Request/Response
HTTP requests consist of a request line (to get a resource), headers, and an optional message body. HTTP request methods are as follows:
GET - Retrieves data from a specified resource
POST - Creating or updating a resource
DELETE - Deletes a specified resource
PATCH - Applies modifications to a resource
RESTful API
A RESTful API is based on representational state transfer (REST) technology. REST refers to an architectural style of API communication. This style of API takes advantage of HTTP by using GET, POST, PATCH and DELETE.
RESTful APIs work by breaking down transactions into smaller modules, representing different parts of the transaction. This provides developers with flexibility when building their APIs. Since data is not tied to methods and resources, REST is able to handle multiple types of calls and return different data formats. It is also not constrained to just one format, but instead can return XML, JSON, YAML, or any other format depending on what the client requests.
JSON
JSON stands for JavaScript Object Notation and is a lightweight format for storing and transporting data. It is often used when data is sent from a server to a webpage. Since JSON format is text only and doesn’t have a user interface, it can be easily sent to and from a server and is both human and machine readable.
The IT Glue API is a powerful tool for automation and getting data from external sources into your IT Glue account. Take a look at the following use cases to see how our API allows you to access your data so you can pull it into your own applications or integrate with third-party tools that we don’t currently integrate with yet.
Use Cases
Let’s take a closer look at how some of our partners are using the IT Glue API in their businesses.
Use Case 1: Creating documentation
As a CTO, Bob wants to ensure that his technical team always has the latest information on their client’s AD setup. Right now, this needs to be updated in IT Glue manually whenever there is a change to their AD setup.
To reduce the risk of inaccurate information, Bob would like to automate the process for updating this information in IT Glue. By using PowerShell that is included with his client’s Active Directory server, he can easily script this and keep it up-to-date.
This module can be installed directly from the PowerShell Gallery with the following command:
Install-Module -Name ITGlueAPI
The first time you run this module, you will need to configure the base URI and API key that are used to communicate with IT Glue. Doing so is as follows:
Run Add-ITGlueBaseURI. By default, IT Glue’s api.itglue.com URI is entered. If you have your own API gateway or proxy, you may put in your own custom URI by specifying the -base_uri parameter, as follows:
Use the following set of commands to update IT Glue with the AD information for each client.
To get started, an Initialize-ActiveDirectoryFlexAsset.ps1 script has been created. Running this script will automatically create a new Flexible Asset Template in your IT Glue account and generate a config.psd1 configuration file.
Once your configuration file is appropriately set up, run the script with .\ActiveDirectory.ps1 -api api_config-ActiveDirectory.psd1 and the script will take care of the rest, including auto-updating the config document with the flexible asset id that is created.
Keep this information up to date by scheduling a task in your RMM to update monthly.
As the Service Desk Manager, Cheryl wants to ensure that her team is utilizing their IT Glue documentation. They already have a custom BrightGauge dashboard that she wants to populate with IT Glue’s engagement data. She will use IT Glue’s API to get the raw engagement scores of her users to display on their dashboard.
In BrightGauge, add the IT Glue data source.
Create an API key in your IT Glue account.
Input the newly created API key in BrightGauge.
Test and save your connection.
Get Started with API Documentation
To get started with the IT Glue API, access our documentation at https://api.itglue.com/developer. This repository gives you access to all of our API endpoints that allow you to create, retrieve, update, and delete data in your IT Glue account. Our developer docs are organized by resource type and each have their own set of endpoints. The intended audience for these docs are developers with HTTP and JSON API experience. We also have some Knowledge Base articles that are helpful if you’re using our API for the first time:
All API endpoints will need to be authenticated using a private API key - a unique identifier submitted alongside an API request in order to identify the origin of the request. API keys are used to track and control the API request process. All users with an Administrator role in IT Glue are able to generate API keys.
OK, I’ve Got It! What’s next?
Now that you have the background information needed to get started working with our API, it’s time to plan your first project. The easiest way to conceptualize it is to think about what information you want to put into IT Glue that isn’t already there. Then, determine the most reliable source for that information. Basically, anything that must be entered into IT Glue manually is a prime candidate for building an API integration.
Introducing IT Glue’s Integration With Datto Endpoint Backup for PCs
At IT Glue, we continue to evolve our platform to provide the best possible tools for managing and safeguarding your IT environment. Over the past year, we’ve integrated with Datto SaaS Protection, offering user-level protection for platforms like Microsoft 365 and Google Workspace, and Datto BCDR, delivering server-level backup protection to ensure business continuity. Today, […]
Protect User Productivity and Data With Backup Documentation in IT Glue
Software-as-a-Service (SaaS) data protection has swiftly emerged as a critical priority for organizations worldwide. As businesses increasingly rely on SaaS platforms like Microsoft 365 and Google Workspace, these environments have become prime targets for cybercriminals. This is where Datto, a globally recognized vendor in the managed service provider (MSP) space, saves the day for MSPs. […]
IT Operations Q3 2024 Product Update Webinar Summary
Explore IT Glue’s latest Q3 2024 updates, including new features and integrations that enhance intelligence, automation, productivity and more. Discover how we’re revolutionizing IT operations.