Skip to main content
    Ivy Biosciences Docs/Call the platform/API/Reference/Reference/Compute/POST /v1/sync/validate-smiles

    POST /v1/sync/validate-smiles

    Validate SMILES strings — Checks one SMILES string or a list of them.

    Auth: required. Send an ivy_ API key (Authorization: Bearer ivy_…), a signed-in session token (Authorization: Bearer …) or the session cookie (browser sessions). See Authentication.

    Checks one SMILES string or a list of them. Each valid entry returns its canonical SMILES and atom counts; each invalid entry returns an error. Use it to check input before submitting a job.

    Request

    Request body

    smilesstring | string[]

    One SMILES string or a list of them.

    Responses

    200 OK

    The calculation result. Check success: a failed calculation still returns HTTP 200.

    Response shape:

    successboolean
    dataobject

    Calculation output. For validate-smiles: results (each with input, valid, canonical, num_atoms, num_heavy_atoms or error) and total. For similarity: smiles1, smiles2, fingerprint_type, tanimoto, dice and cosine. For admet-quick: smiles plus the ADMET estimates. For molecular-properties: the property fields, plus admet when requested.

    errorstring

    Present when success is false.

    calculation_time_msnumber

    400 Bad Request

    Invalid request

    Response shape: object

    401 Unauthorized

    Authentication required

    Response shape: object

    422 Unprocessable Entity

    The request body failed validation; the body says which field

    Response shape: object

    429 Too Many Requests

    Rate limit exceeded

    Response shape: object

    502 Bad Gateway

    The compute service is unavailable. Retry with backoff.

    Response shape: object

    curl -X POST 'https://ivybiosciences.com/api/v1/sync/validate-smiles' \
      -H "Authorization: Bearer $IVY_API_KEY" \
      -H 'Content-Type: application/json' \
      -d '{
      "smiles": ""
    }'

    Was this page helpful?

    Loading...