List Automations
List Automations
GET
https://api.ocamba.com/v2/ocamba/ebs/automations
Returns a list of Automations
Tip
Filterable fields are: id, name, status, create_time and update_time.
Query parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/ebs/automations" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/ebs/automations';
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/ebs/automations");
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": "10001",
"company_id": "6197120",
"status": "active",
"name": "Push welcome",
"description": "Push adex welcome notification",
"event": {
"id": "1000",
"integration_id": "10000"
},
"actions": {
"id": "1002",
"integration_id": "10000",
"data": {
"user_id": "{{event.user_id}}",
"zone_id": "12345678"
}
},
"create_time": "2022-07-02 12:30:40",
"update_time": "2022-07-05 13:19:10"
}
]
}
Responses