View Macro
View Macro
GET
https://api.ocamba.com/v1/hood/macros/{id}
Retrieves the details of a Macro
Rate limits:
Burst: 10/s
Steady: 150/m
Path parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
GET https://api.ocamba.com/v1/hood/macros/{id} HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v1/hood/macros/{id}" \
-H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v1/hood/macros/{id}", {
method: "GET",
headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v1/hood/macros/{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
HTTP/1.1 200 OK
Content-Type: application/json
{
"total": 1,
"items": [
{
"id": "11",
"company_id": "7196310",
"name": "MY_FIRST_MACRO",
"type": "system",
"deprecated": 1,
"description": "This is new macro",
"value": "this_is_a_value",
"fields": [
null
],
"records": [
{
"fields": {
"container_id": "1244",
"container_group": "451",
"campaign_id": "82671921",
"partner_id": "5718691",
"experiment_id": "1245",
"profile_age": "18-35",
"country_code": "RS",
"language_code": "en",
"task_id": "4514",
"user_age": "25-40"
},
"value": "value"
}
],
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
Responses
Tip
1
If you don’t know the macro id, list the macros to find it.