Docs OpenAPI

Docs / Guides

Quickstart

This guide walks through your first call to https://api.sequencylabs.com.

View as Markdown

Get an API key

Access is by request. Submit an inquiry on sequencylabs.com to get a customer key and credits.

Send your key on every call in the Authorization header as Bearer <key>. Set it in your shell before running the examples below.

Check prices

Read current rates for each kind of job before asking for one. A kind without a rate cannot be asked for yet.

$ curl https://api.sequencylabs.com/v1/prices \
  -H "Authorization: Bearer $SEQUENCY_API_KEY"

200 OKPrices
{
  "rates": [
    {
      "exclusive": false,
      "kind": "route_review",
      "reaction": 10.0,
      "reused_reaction": 10.0
    }
  ]
}

Ask for a job

Send a JobRequest to POST /v1/jobs. Pass an Idempotency-Key header so retrying a timed-out call returns the same job instead of making a second one.

$ curl https://api.sequencylabs.com/v1/jobs \
  -H "Authorization: Bearer $SEQUENCY_API_KEY" \
  -H "Idempotency-Key: 7d1c0e2a" \
  --json '{
    "exclusive": false,
    "reuse": false,
    "work": {
      "kind": "route_review",
      "route": [
        {
          "id": "step_1",
          "materials": [
            {
              "role": "reactant",
              "smiles": "CCO"
            }
          ],
          "product_smiles": "CCO"
        }
      ],
      "target_smiles": "CCO"
    }
  }'

201 CreatedJob
{
  "canceled_at": null,
  "completed_at": null,
  "created_at": "2026-12-01T09:15:00Z",
  "credits": null,
  "id": "job_01h455vb4pex5vsknk084sn02q",
  "package_version": null,
  "request": {
    "exclusive": false,
    "reuse": false,
    "work": {
      "kind": "route_review",
      "route": [
        {
          "id": "step_1",
          "materials": [
            {
              "equivalents": null,
              "name": null,
              "role": "reactant",
              "smiles": "CCO",
              "volume_ml": null
            }
          ],
          "procedure": null,
          "product_smiles": "CCO",
          "scale_mmol": null,
          "temperature_c": null,
          "time_h": null
        }
      ],
      "target_smiles": "CCO"
    }
  },
  "reused": [
    "step_1"
  ],
  "started_at": null,
  "status": "queued"
}

Save the id from the response. The API holds the most the job may cost from your balance until it completes.

Follow the job

Poll GET /v1/jobs/{id} until status is completed. When completed, package_version holds the number of the newest package.

$ curl https://api.sequencylabs.com/v1/jobs/job_01h455vb4pex5vsknk084sn02q \
  -H "Authorization: Bearer $SEQUENCY_API_KEY"

Read the package

Fetch GET /v1/jobs/{id}/package for the job's files, measured rewards and, for a route review, the chemist's review.

$ curl https://api.sequencylabs.com/v1/jobs/job_01h455vb4pex5vsknk084sn02q/package \
  -H "Authorization: Bearer $SEQUENCY_API_KEY"

200 OKPackage
{
  "files": [
    {
      "media_type": "step_1",
      "path": "raw/nmr/1.zip",
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "size_bytes": 48210
    }
  ],
  "reason": null,
  "review": null,
  "rewards": [
    {
      "measure": "yield_pct",
      "measured": 10.0,
      "method": "Stirred 2 h at 25 C.",
      "reaction": null,
      "source": {
        "chemist": "step_1",
        "experiment_id": "step_1",
        "file": "raw/nmr/1.zip",
        "measured_at": "2026-12-01T09:15:00Z",
        "site": "step_1"
      }
    }
  ],
  "version": 1,
  "written_at": "2026-12-01T09:15:00Z"
}

Download any file listed in files with GET /v1/jobs/{id}/package/files/{path}. The response ETag is the file's SHA-256 hash.

$ curl https://api.sequencylabs.com/v1/jobs/job_01h455vb4pex5vsknk084sn02q/package/files/raw/nmr/1.zip \
  -H "Authorization: Bearer $SEQUENCY_API_KEY" \
  -o 1.zip