Synthesis Jobs
Submit target molecules for retrosynthesis and explore novel synthetic routes
For low-throughput screening or synthetic route exploration, a Retrosynthesis job can be submitted for a single query target molecule. The molecule, represented in SMILES format, is provided alongside a set of guiding parameters impacting route diversity and results.
Fast synthetic accessibility can be assessed by reducing the time requirement for planning to
processing_time=60and yield only a single routenumber_of_routes=1.Novel route exploration can be achieved by increasing the time and resource allocation, allowing for multiple routes to be generated and evaluated. Additionally, decreasing
building_block_limitandreaction_limitforces the engine to consider more diverse reaction pathways, potentially leading to more novel synthetic routes.
Each job requires specifying a retrosynthesis_engine and building_block_libraries list corresponding to respective resource id fields of the engine and libraries. Our unique representation of synthetic routes provides a detailed reaction tree overview. See our examples for handling results for detailed analysis.
See here for more information on our Retrosynthesis capability.
Retrieve a list of jobs.
OAuth2 authentication.
Provide a valid Pending AI authentication token. Generating tokens can be done through the Pending AI CLI. Ensure you have an existing account or register for a new one.
pending auth login
pendingai auth token
A page number for retrieving a collection of jobs. Pagination is number-based allowing for arbitrary page lookups. Note that page-size can impact page offset results.
1Example: 1The number of job resources returned in the response data. There can be fewer jobs returned than requested if the results do not exceed page-size.
10Example: 10Filter for job statuses to return resources with a matching status value. Use none to skip filtering.
noneExample: nonePossible values: Returns a list of jobs.
Request validation failed.
GET /retro/v2/jobs HTTP/1.1
Host: api.pending.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"created": "2000-01-01T00:00:00Z",
"id": "id_32ALvrkANBUzVixmK2J2BrApeyc",
"object": "object",
"parameters": {
"building_block_libraries": [
"lib_32ALvrkANBUzVixmK2J2BrApeyc"
],
"building_block_limit": 3,
"number_of_routes": 25,
"processing_time": 300,
"reaction_limit": 3,
"retrosynthesis_engine": "eng_32ALvrkANBUzVixmK2J2BrApeyc"
},
"query": "CC(=O)OCC",
"routes": [
{
"buildingBlocks": [
{
"buildingBlockMetadata": [
{
"availability": "in stock",
"datasetProvider": "ZINC",
"identifier": "fbab3ba39bb8",
"price": 2.5
}
],
"smiles": "OCC"
}
],
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC",
"steps": [
{
"number": 1,
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC"
}
]
}
],
"status": "completed",
"updated": "2000-01-01T00:00:00Z"
}
],
"has_more": true,
"object": "list"
}Create a new retrosynthesis job. See the parameters field for options to control the retrosynthesis process.
OAuth2 authentication.
Provide a valid Pending AI authentication token. Generating tokens can be done through the Pending AI CLI. Ensure you have an existing account or register for a new one.
pending auth login
pendingai auth token
Request data for creating a new retrosynthesis job.
A target molecule in a SMILES format to perform retrosynthesis on. If a molecule cannot be processed, the job will return no results.
CC(=O)OCCPattern: ^[a-zA-Z0-9\(\)+-=#%+@\/\\\[\]\*]+$Returns the job.
Payment gateway failed.
Request validation failed.
POST /retro/v2/jobs HTTP/1.1
Host: api.pending.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 245
{
"parameters": {
"building_block_libraries": [
"lib_32ALvrkANBUzVixmK2J2BrApeyc"
],
"building_block_limit": 3,
"number_of_routes": 25,
"processing_time": 300,
"reaction_limit": 3,
"retrosynthesis_engine": "eng_32ALvrkANBUzVixmK2J2BrApeyc"
},
"query": "CC(=O)OCC"
}{
"created": "2000-01-01T00:00:00Z",
"id": "id_32ALvrkANBUzVixmK2J2BrApeyc",
"object": "object",
"parameters": {
"building_block_libraries": [
"lib_32ALvrkANBUzVixmK2J2BrApeyc"
],
"building_block_limit": 3,
"number_of_routes": 25,
"processing_time": 300,
"reaction_limit": 3,
"retrosynthesis_engine": "eng_32ALvrkANBUzVixmK2J2BrApeyc"
},
"query": "CC(=O)OCC",
"routes": [
{
"buildingBlocks": [
{
"buildingBlockMetadata": [
{
"availability": "in stock",
"datasetProvider": "ZINC",
"identifier": "fbab3ba39bb8",
"price": 2.5
}
],
"smiles": "OCC"
}
],
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC",
"steps": [
{
"number": 1,
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC"
}
]
}
],
"status": "completed",
"updated": "2000-01-01T00:00:00Z"
}Retrieve a retrosynthesis job and any generated synthetic routes.
OAuth2 authentication.
Provide a valid Pending AI authentication token. Generating tokens can be done through the Pending AI CLI. Ensure you have an existing account or register for a new one.
pending auth login
pendingai auth token
A unique identifier for a job resource.
job_32ALvrkANBUzVixmK2J2BrApeycPattern: ^\w+$Returns the job.
Job resource not found.
Request validation failed.
GET /retro/v2/jobs/{job_id} HTTP/1.1
Host: api.pending.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"created": "2000-01-01T00:00:00Z",
"id": "id_32ALvrkANBUzVixmK2J2BrApeyc",
"object": "object",
"parameters": {
"building_block_libraries": [
"lib_32ALvrkANBUzVixmK2J2BrApeyc"
],
"building_block_limit": 3,
"number_of_routes": 25,
"processing_time": 300,
"reaction_limit": 3,
"retrosynthesis_engine": "eng_32ALvrkANBUzVixmK2J2BrApeyc"
},
"query": "CC(=O)OCC",
"routes": [
{
"buildingBlocks": [
{
"buildingBlockMetadata": [
{
"availability": "in stock",
"datasetProvider": "ZINC",
"identifier": "fbab3ba39bb8",
"price": 2.5
}
],
"smiles": "OCC"
}
],
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC",
"steps": [
{
"number": 1,
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC"
}
]
}
],
"status": "completed",
"updated": "2000-01-01T00:00:00Z"
}Delete a retrosynthesis job and any generated synthetic routes. The job cannot be deleted while in progress.
OAuth2 authentication.
Provide a valid Pending AI authentication token. Generating tokens can be done through the Pending AI CLI. Ensure you have an existing account or register for a new one.
pending auth login
pendingai auth token
A unique identifier for a job resource.
job_32ALvrkANBUzVixmK2J2BrApeycPattern: ^\w+$Returns the deleted job.
Payment gateway failed.
Job resource not found.
Job resource in progress.
Request validation failed.
DELETE /retro/v2/jobs/{job_id} HTTP/1.1
Host: api.pending.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"created": "2000-01-01T00:00:00Z",
"id": "id_32ALvrkANBUzVixmK2J2BrApeyc",
"object": "object",
"parameters": {
"building_block_libraries": [
"lib_32ALvrkANBUzVixmK2J2BrApeyc"
],
"building_block_limit": 3,
"number_of_routes": 25,
"processing_time": 300,
"reaction_limit": 3,
"retrosynthesis_engine": "eng_32ALvrkANBUzVixmK2J2BrApeyc"
},
"query": "CC(=O)OCC",
"routes": [
{
"buildingBlocks": [
{
"buildingBlockMetadata": [
{
"availability": "in stock",
"datasetProvider": "ZINC",
"identifier": "fbab3ba39bb8",
"price": 2.5
}
],
"smiles": "OCC"
}
],
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC",
"steps": [
{
"number": 1,
"reactionSmiles": "CC(=O)O.OCC>>CC(=O)OCC"
}
]
}
],
"status": "completed",
"updated": "2000-01-01T00:00:00Z"
}Was this helpful?

