This API allows third party/external applications to make event requests using a RESTful API over HTTPS to the IMIconnect platform.
Know Your Endpoint
Based on the domain you use to log in to imiconnect, the endpoint for your API varies. See the endpoint section to understand which endpoint to use for your domain.
Prerequisites
Event Linking
An event must be linked to a rule or flow within a service for it to perform an action on imiconnect.
Events can be created from under the integrations or directly from the flow start node.
API Endpoint
If your domain is mycompany.imiconnect.com, then your API base URL will be https://api.imiconnect.com.
If your domain is mycompany.imiconnect.io, then your API base URL will be https://api-us.imiconnect.io if you are in North America and https://api.imiconnect.io for Rest of World
Body Parameters
The following table describes the elements in the request body:
Parameter | Type | Mandatory | Description |
---|---|---|---|
expiry | String | No | Expiry time is in UTC format, after which no action is taken. For example, { "expiry":"2015-04-12T18:51:19"//expiry time in utc format } |
notifyurl | String | No | Specifies a URL that receives notifications. This URL overrides the service's Notify URL. For example, { "notifyurl":"" } |
events | Array of Strings | Yes | Specifies the events in an array. The parameters are: evtid: Mandatory {String} - Specifies the event id that is generated by imiconnect. correlationid: Optional {String} - Specifies a unique transaction ID up to 50 bytes used by service providers to match requests with responses. * parameters: Optional {JSONObject} - Specifies the parameters block that may contain multiple name/value pairs if required to pass additional information to the event/trigger handler. For example, { "events":[ { "evtid":"", "correlationid":"", "parameters": { "param1":"value1", "param2":"value2", ... } } ] } |
If a mandatory parameter is missing, then the API will execute with default values. If the default values are not defined then the API request will be rejected.
If an optional parameter is missing, then the API will execute with default values. The API request is accepted even if the default values are not defined.
Webex Connect Event API is an asynchronous API. When you make an Event API call, Webex Connect returns an immediate response code and description to confirm whether your request has been successfully queued or not. Here's the list of various response codes with their description.
Response Code | Message | Description |
---|---|---|
1002 | Queued | Returned when the request is accepted by imiconnect. |
7000 | Invalid JSON | Returned when an invalid JSON request is sent. |
7001 | Authentication failed | Returned when an invalid service key or profile key is provided in the request. |
7004 | Invalid parameters/values | Returns when any invalid value is given for any parameter in request body. |
7005 | Internal error occurred | Returned when there is an issue with imiconnect. |
7020 | You have reached maximum transaction limit | Returned when you have reached the transaction limit. |
7025 | Mandatory custom parameters missing | Returns when any mandatory custom event parameter is missing, where these custom parameters are created in custom event creation screen. |
7027 | Invalid XML | Returned when an invalid XML request is sent. |