View Automation
View Automation
GET
https://api.ocamba.com/v2/ocamba/ebs/automations/{id}
Retrieves the details of a certain Automation that has previously been created if a valid identifier was providedPath parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/ebs/automations/{id}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/ebs/automations/{id}';
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/{id}");
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
Tip
If you don’t know the automation id, list the automations to find it.