Ingestion APIs
Overview
Ingestion APIs enable external systems to push payloads of different types to your Aisera applications. The payloads for the following Entities vary by the endpoints that are registered to the external systems:
Look up each of these Entities in the API Reference section of this chapter for examples of how to use each Entity call.
Prerequisites
Follow the steps in the Integrations and Data Sources section to setup connections for your Aisera application.
Setup
External System
Webhook (also known as callback) should be configured on external system to send data to the ingestion APIs. Follow the relevant system guides. The following should be included in the requests:
Endpoint URL: depending on the data being ingested, the corresponding endpoint should be used:
https://<tenant>.api.aisera.cloud/alerts
https://<tenant>.api.aisera.cloud/changes
https://<tenant>.api.aisera.cloud/incidents
https://<tenant>.api.aisera.cloud/knowledge-articles
https://<tenant>.api.aisera.cloud/problems
https://<tenant>.api.aisera.cloud/requests
https://<tenant>.api.aisera.cloud/requestitems
https://<tenant>.api.aisera.cloud/conversations
App Token (x-app-token) should be added to the header (see the Auth section)
Bearer access token (Authorization) should be added to the header the authorization header (see the Auth section)
Auth
App token and access (bearer) token are required to send data to the endpoints.
App token is available on the App details page:
Login to your Aisera management portal (<tenant>.login.aisera.cloud)
Navigate to Settings > AiseraGPT
Choose the app of interest to open its details page
Add a data source as the System of Record (SOR)
The App Token will then be available here
The bearer access token can be generated and added to the header:
Create a service account on your tenant with the necessary permissions:
Navigate to Settings > User Accounts
Click on + New User
Create the new account with the Login Role of Service Account
POST a request to the following URL: https://<tenant>.api.aisera.cloud/tenant-users/oauth2/token
Include the following parameters in the body...
"grant_type": "password"
"client_id": App Token available on the details page of the channel
"username": username of the service account
"password": password of the service account
Use the Postman collection to generate your token using the above steps.
The bearer access token generated using the method above expires in an hour. External system support for OAuth2 is recommended.
Use
Depending on the data being ingested, the corresponding APIs should be used:
https://<tenant>.api.aisera.cloud/alerts
https://<tenant>.api.aisera.cloud/changes
https://<tenant>.api.aisera.cloud/incidents
https://<tenant>.api.aisera.cloud/knowledge-articles
https://<tenant>.api.aisera.cloud/problems
https://<tenant>.api.aisera.cloud/requests
https://<tenant>.api.aisera.cloud/requestitems
https://<tenant>.api.aisera.cloud/conversations
Examples of these APIs are available in the Postman collection.
Handling Errors
Aisera uses standard HTTP response codes to indicate whether a method completed successfully. HTTP response codes in the 2xx range indicate success. A response in the 4xx range is some sort of failure, and a response in the 5xx range usually indicates an internal system error that cannot be resolved by the user.
Restrictions
Rate Limits: Aisera does not enforce any hard rate limits on the endpoints. However, we recommend restricting to 5 calls, per endpoint, per minute.
Payload Size: Aisera does not enforce any hard limits on the size of the payload. However, we recommend restricting the payload to a maximum of 50 records and 1 MB of content.
Postman Collection
Changelogs
Review the Product Release Notes.
The payloads vary by the endpoints that are registered to the external systems:
Last updated
Was this helpful?
