List Integrations
List Integrations
GET
https://api.ocamba.com/v2/ocamba/event-system/integrations
Returns a list of IntegrationsQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/event-system/integrations" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/event-system/integrations';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/ocamba/event-system/integrations");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 1,
"items": [
{
"id": "10000",
"name": "Ocamba Hood",
"description": "Hood app from Ocamba platform",
"homepage": "https://ocamba.com",
"version": "1.0.0",
"audience": "public",
"create_time": "2022-06-30 07:55:49",
"update_time": "2022-06-30 07:55:49",
"events": [
{
"id": "1000",
"integration_id": "10000",
"name": "Push subscription",
"item": "Push",
"description": "Triggers when user subscribes",
"operation": {
"output_params": [
{
"key": "user_id",
"type": "string"
}
{
"key": "app_name",
"type": "string"
},
{
"key": "tag_id",
"type": "string"
}
]
},
"create_time": "2022-06-30 08:23:34",
"update_time": "2022-07-04 10:47:30"
}
],
"actions": [
{
"id": "1010",
"integration_id": "10000",
"name": "Send Adex notification",
"item": "Push",
"description": "Send webpush to a subscribed user on Ocamba hood tag",
"engine": "api",
"operation": {
"input_params": {
"user_id": {
"key": "User id",
"type": "string",
"description": "user from ocamba platform, use from event only",
"required": true,
"in": "body"
},
"zone_id": {
"key": "Zone id",
"type": "string",
"description": "Zone id from Ocamba adex",
"required": true,
"in": "body"
}
}
},
"create_time": "2022-06-30 08:25:18"
}
]
}
]
}
Responses
Tip
Searchable field is name.
Sortable fields are name and status.
Filterable fields are id, name, status, create_time and update_time.