M1 Hub
Back to user guides

SpaceM1 API User Guide

List batches

Request

GET

http://localhost:2222/api/v2/batch-search

Example

curl http://localhost:2222/api/v2/batch-search \
  -H "Authorization: ApiToken-v1 YOUR_API_TOKEN"

Response

Bodyapplication/json

A list of searches that conform to the following schema:

#id
string

Search ID.

#name
string

Search name.

Default value: part of the generated search ID if not specified in request

#size
integer

Number of targets specified in the search request.

#inputParams
dictionary

parameters specified in the search request.

#searchParams
dictionary

Final parameters used to create the search request. They are a combination of inputParams and presetParams.

#priority
integer

priority specified in the search request or its default value.

#createdAt
string

Search created date and time as an ISO 8601 formatted string.

#source
'WEB' | 'API_V2'

Origin of the search request.

#presetParams
dictionary

Parameters specified by chosen preset in the search request.

Default value: "Default for search" preset configured in the RetroScore interface

#presetName
string

Name of the preset applied to the search request.

Example

[
  {
    "id": "fc4aeeae-d7e5-44ce-910a-028b6a802ccc",
    "name": "my-search",
    "size": 3,
    "inputParams": {
      "availability_tier": 3,
      "length": "short",
      "model": "metro",
      "synthesis_scale": "millimolar",
      "reaction_confidence_threshold": "high",
      "min_reference_count": 10
    },
    "searchParams": {
      "detail_level": "best_path",
      "presets": {
        "model": "metro",
        "length": "short",
        "datasets": [{ "id": "emolecules" }],
        "synthesis_scale": "millimolar",
        "availability_tier": 3,
        "reaction_confidence_threshold": "high",
        "min_reference_count": 10
      }
    },
    "priority": 3,
    "createdAt": "2023-04-17T11:10:36.040Z",
    "source": "API_V2",
    "presetParams": {
      "availability_tier": 3,
      "datasets": [{ "id": "emolecules" }],
      "model": "metro",
      "length": "regular",
      "synthesis_scale": "millimolar",
      "reaction_confidence_threshold": "high",
      "min_reference_count": 10
    },
    "presetName": "base-parameters"
  }
]