Quote
curl -X POST "$SELENIUM_API_URL/v1/route-searches/quote" \
-H "Authorization: Bearer $B12_API_KEY" \
-H "Content-Type: application/json" \
-d '{"smiles":"CC(=O)Oc1ccccc1C(=O)O","tier":"standard"}'
Submit
curl -X POST "$SELENIUM_API_URL/v1/route-searches" \
-H "Authorization: Bearer $B12_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: aspirin-standard-001" \
-d '{"smiles":"CC(=O)Oc1ccccc1C(=O)O","name":"aspirin","tier":"standard"}'
Poll
curl "$SELENIUM_API_URL/v1/route-searches/$JOB_ID" \
-H "Authorization: Bearer $B12_API_KEY"
Fetch routes
curl "$SELENIUM_API_URL/v1/route-searches/$JOB_ID/routes" \
-H "Authorization: Bearer $B12_API_KEY" \
-o selenium-routes.json