Using Webhook Feature in Asset Infinity
Api Integration for Asset Infinity can be achieved through webhook feature of the application/software wherein Asset Infinity as a subscriber, consumes the API published by any other company.
A user can follow the given path to navigate to Integration settings for authorizing, triggering, and maintaining logs in webhook-
Menu> Advanced Settings> Integration Settings
Webhook
Webhooks are HTTP callbacks that are triggered by specific events. They allow you to automate the flow of data between different applications.
Configuring Webhooks in Asset Infinity
Follow the below steps to configure webhooks
in Asset Infinity:
Step 1- Webhook Authorization: The first step in configuring webhooks is to authorize the connection between Company 'XYZ' and Asset Infinity. This can be done by providing the necessary authentication credentials to the webhook page in Asset Infinity.
As the user clicks the Webhook Authorization
section, Webhook Authorization page opens as shown in the image below-
The user is required to fill the details in the fields as discussed below-
i) Auth Type- A user can select the type of authentication from the dropdown menu to configure the authorization type of an organization’s API for authentication purpose.
ii) Auth Type Description- A
user can add description of the Authentication Type describing its use, purpose
etc. in the text field.
iii) Token-
A user can define
a token here in the text field in case the selected Auth Type is Bearer
Fixed Token. This token is fixed, and the same token can be used every time
the API is invoked.
iv) Auth
URL- A
user can hit this URL to generate the token for accessing the API. This Auth
URL can be defined in case the selected Auth Type is Bearer Runtime
Token. This token is for one time use and a different token is generated every
time the API is invoked.
v) Request
Data- The
credentials required login to an organization’s application such as the
Organization Name, Email, Password etc. are passed here in JSON format. A user
can enter the request data in the text field here. This request data is passed
against the Auth URL and is required only when the selected Auth Type is Bearer Runtime
Token or a token which is not fixed.
vi) Username-
A user can set a username
to access an API in case the selected Auth Type is Basic.
Step 2- Webhook Triggers: The next step is to set up the webhook triggers. These are the events that will trigger the webhook to send a request to the API published by a Company. For example, if Company "XYZ" publishes an API that sends a notification when a new asset is added, the webhook trigger in Asset Infinity would be set up to send a request to the API when the asset is added.
The user is required to fill the details in the fields as discussed below-
i) Web
API - A user can
select web API from the dropdown menu. This API will be called when the Webhook/URL
configured in the URL field is invoked.
iii) Authorization –A user can select the Authorization from the dropdown menu which is actually the Webhook Authorization that was configured under Webhook Authorization.
iv) HTTP
Method –
A user can define the HTTP method for calling the API. The Method can be set as
GET or POST.
iv) Is
Active –
The Webhook trigger is enabled or made active by setting the toggle to YES and can
be made inactive by disabling it.