Example: Creating a REST API integration
This example demonstrates how to use a POST request to create a Rest API integration. To complete this request, you must have:
- MANAGE_ALL_PROVIDERS
- An account with the service you want to integrate and account credentials for that service
Request
Sample request
The request below creates a REST API integration on the tenant:
curl -X POST -H "Content-Type: application/json"
https://api.cxengage.net/v1/tenants/<tenantId>
/integrations/<integrationId> -d '{
"attributes": {
"type": "rest",
"name": "Sample REST API Integration",
"active": "true",
"properties": {
"endpointPrefix": "",
"password": "",
"token": "",
"username": ""
}
}'
Request parameters
The table below lists the parameters you can include in a request:
Parameter | Required | Type | Description |
---|---|---|---|
tenantId | true | UUID | The unique identifier of the tenant. |
type | true | string | The type of integration. Enter rest. |
active | true | boolean | Enter true to enable the integration and make the integration visible in the Flow Designer. |
properties | true | object |
An array of attributes that enable CxEngage to authenticate to the third-party service. For a REST API integration, include the following:
|
Response
Sample response
The request returns JSON structured like the example below:
{
"tenantId": "7d23df20-2461-11e7-9bf4-b883f2d63b7b",
"description": null,
"properties": {
"endpointPrefix": "",
"password": "",
"token": "",
"username": ""
},
"createdBy": "cd6e8140-adc6-11e6-8e76-e898003f3411",
"updated": "2017-04-18T18:04:38Z",
"name": "rest",
"type": "rest",
"created": "2017-04-18T18:04:38Z",
"updatedBy": "cd6e8140-adc6-11e6-8e76-e898003f3411",
"active": false,
"id": "7d2788a0-2461-11e7-9bf4-b883f2d63b7b"
}
Response parameters
The response includes the following parameters:
Parameter | Type | Description |
---|---|---|
tenantId | UUID | The unique identifier of the tenant. |
properties | array |
An array of attributes that enable CxEngage to authenticate to the third-party service. |
createdBy | UUID | The unique identifier of the user who created the integration. |
updated | string | The date and time, in UTC format, when the integration was last updated. |
type | string | The type of integration. |
created | UUID | The date and time, in UTC format, when the integration was created. |
updatedBy | string | The unique identifier of the user who last updated the integration. |
active | boolean | A flag indicating whether or not the integration is enabled and visible in the Flow Designer. |
id | UUID | The integration's unique identifier. |
Copyright © 2025 Enghouse Interactive. All Rights Reserved.