View Search algorithm
View Search algorithm
GET
https://api.ocamba.com/v2/adex/search-algos/{id}
Get an instance of algorithm.Path parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/search-algos/{id}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/search-algos/{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/adex/search-algos/{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": "1000024",
"company_id": "6197120",
"name": "my first algorithm",
"description": "description",
"type": "custom",
"metadata": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
"create_time": "2024-06-18 07:40:33",
"update_time": "2024-06-18 07:40:56"
}
]
}
Responses
Tip
Searchable fields are name.
Sortable fields are name, create_time and update_time.