Using Postman to interact with CluedIn API
CluedIn provides a powerful set of REST and GraphQL APIs. You can use them to ingest data to CluedIn, export data from CluedIn, migrate configuration, etc. As CluedIn is a web application with web UI (client) and API (server), you can do API anything you do via UI.
Everything we will do in this article can be done in any programming language, command-line tools like curl and wget, UI apps like Insomnia or Nightingale, and many others. However, we will use Postman, which is probably the most popular tool for working with APIs.
So, let's spinup a CluedIn instance, open Postman, and begin.
Environment setup
First, we need a CluedIn instance, of course. I have mine at: https://foobar.172.167.52.102.sslip.io/.
If we look at this URL, the subdomain foobar is a so-called "organization name" — you need to know it because technically, you can have multiple "organizations" configured on the same CluedIn instance so users, settings and data from one organization are isolated from another.
The 172.167.52.102.sslip.io part is the main domain of your CluedIn instance that you automatically get when you install CluedIn from Azure Marketplace. (of course, you can configure it to your domain, like mdm.contoso.com)
Now, in Postman, you can create your collection or import the one that I use daily: https://github.com/romaklimenko/cluedin/blob/main/postman/CluedIn.postman_collection.json.
In the next step, let's create a new Environment that will keep the domain and credentials configuration. If you use the template from here: https://github.com/romaklimenko/cluedin/blob/main/postman/CluedIn-%20Home.postman_environment.json, you only need to change a few things:
Finally, the environment contains some predefined URLs:
Get a token
We have the Postman environment; let's try to "log in" with Postman, i.e., call the API to get the user's access token.
To do so, call the "Get a Token" endpoint:
Congratulations! The request is successful. And if you check the environment now, you will find a few new variables added automatically:
Call CluedIn APIs
Now you can call CluedIn APIs. For example, try calling "Get Schema" to get the full list of CluedIn Vocabulary keys and their mappings:
Conclusion
To summarize and give a few recommendations: