This API allows third party/external applications to make event requests using a RESTful API over HTTPS to the Webex Connect platform.
Know Your Endpoint
Based on the domain you use to log in to Webex Connect, 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 Webex Connect.
Events can be created from under the integrations or directly from the flow start node.
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.000Z" //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.
Response Codes
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 Webex Connect. |
7000 | Invalid JSON | Returned when an invalid JSON request is sent. |
7001 | Authentication failed | Returned when an invalid service key or invalid JWT token is provided in the request. |
7002 | Service Key Missing | Service key is missing in the inbound webhook request. |
7003 | Mandatory parameter 'events' missing | Mandatory parameter 'events' missing in the Event API request |
7004 | This code may return different error descriptions depending on the request data. Examples include: - Invalid parameters/values - invalid value for param evtid - 'events' array shouldn't be empty | 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. |
7010 | Source IP is not allowlisted | Returned when the API request is received from an IP that has not been added to the IP allow list |
7019 | Request expired | Returned when the value of the expiry parameter contains a time value that occurred in the past |
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. |