List Search algorithm

List Search algorithm

GET https://api.ocamba.com/v2/adex/search-algos
Get a collection of algorithm.

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/adex/search-algos" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/search-algos';
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");
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": 20,
  "items": [
      {
          "id": "1130251",
          "company_id": "6197120",
          "name": "algorithm name",
          "type": "custom", 
          "description": "description",
          "metadata": {
            "key1": "value1",
            "key2": "value2",
            "key3": "value3"
          }   
          "create_time": "2023-10-18 07:40:33",
          "update_time": "2023-10-18 07:40:56"
      },
      {
          "id": "1000248",
          "company_id": "6197120",
          "name": "algorithm name 2",
          "type": "custom",
          "description": "description",
          "metadata": {
            "key1": "value1",
            "key2": "value2",
            "key3": "value3"
          }   
          "create_time": "2024-06-18 07:40:33",
          "update_time": "2024-06-18 07:40:33"
      }
   ]
}
Responses
Tip
Searchable fields are name and description. Sortable fields are name, create_time and update_time. Filterable fields are id, name, type, create_time and update_time.