Developers · Changelog

API Changelog

Every change to the API and the MCP server, newest first. Within v1 changes are additive; a breaking change gets a new version path.

v1.2.0

Targets you can price

Services can carry a catalog of assay objects — target proteins, enzymes and cell lines — each with the fee it adds. The fee is charged once per order line, never per candidate, so a quote is a fixed total before anyone pays.

  • AddedGET /v1/targets: the assay objects we sell, each listed once with service_ids, category, species, gene, identifier (UniProt or Cellosaurus RRID), pricing_tier (standard, surcharge, quote_only) and target_fee_cents — one fee for every service the object applies to. ?service_id= narrows the list; cursor pagination with limit (≤ 200) and starting_after. No key needed; objects that are not listed can still be asked for with POST /v1/targets/requests.
  • Addedtargets on GET /v1/services and GET /v1/services/{id}: the same objects per service. An empty list means the service has no object catalog yet and target stays free text the team confirms.
  • ChangedPOST /v1/quotes: for a service with an object catalog, target must be one of its target IDs. A missing, unknown or quote_only object is refused with missing_target, invalid_target or quote_only_target and the allowed IDs. Services without a catalog keep accepting free text.
  • ChangedAn option or object with no list price (quote_only) can never be ordered: quotes and orders are refused with the enquiry route instead. A quote line warns with target_fee_applied when an object adds a fee.
  • ChangedAll material costs — target protein, cell line, reagents and controls — are included in the price. Experimental materials are supplied by the lab and not accepted from clients (samples to be tested are still sent for sample-based services); a specified brand or catalogue number is quoted per order.
  • ChangedIdempotency-Key on POST /v1/orders is scoped to the API key and the mode: a test key never gets a live order back, and reusing a key with a different body or from another API key returns 409 idempotency_mismatch or 409 idempotency_key_in_use instead of the earlier order.
  • Fixedquantity: 0 (or any count outside the service's range) is refused with invalid_quantity on quotes and orders.
  • FixedMCP: get_order, get_results and get_quote require the read scope, like the REST routes. A batch holds at most 10 messages, runs one at a time, and every message counts against the key's rate limit; quotes and orders also count against the create limit.
  • FixedPOST /v1/api_keys/{id}/restrict refuses a child deeper than 5 levels (key_chain_too_deep) or beyond 25 active keys per account (too_many_keys), instead of creating a key that cannot be used.
  • FixedCORS: preflight allows DELETE (webhook endpoints), and CSV / PDF responses carry the same CORS headers as JSON; Content-Disposition is exposed.
  • ChangedResults: results_status is complete only when every expected candidate has a row for every expected endpoint (not_tested and failed rows count); a release missing candidates or endpoints reports partial. Each item carries delivery with expected, delivered and complete candidate counts.
  • ChangedTest orders: portal_url is null (test orders have no portal page), the MCP create_order hint explains that the sandbox pays and advances them, and their invoice PDF is marked as a test invoice without bank details.
  • FixedConcurrent retries with the same Idempotency-Key and body return the one order (never quote_used or daily_limit); the 25-active-key limit holds under concurrent creation.
  • ChangedPublic catalogue responses (GET /v1/services, /services/{id}, /services/{id}/schema, /targets) may be cached for 60 seconds. Daily order limits are enforced atomically per key.
v1.1.0

Orders, billing, events and results

The full loop: order from a quote, follow the order through events or webhooks, reconcile invoices and payments, and download released results. Test keys run every order through a simulated lab.

  • AddedPOST /v1/orders: order from an open quote (price locked) or from items; Idempotency-Key required. GET /v1/orders, GET /v1/orders/{id}, POST /v1/orders/{id}/cancel, GET /v1/orders/{id}/payment (payment link or bank details — a person pays).
  • AddedBilling: GET /v1/invoices, /v1/invoices/{id} and /pdf, GET /v1/payments (JSON or CSV), GET /v1/statements (JSON or CSV), GET /v1/balance. Order invoices and fee invoices (<order>-F<n>) are separate; payments and refunds carry the Stripe or bank reference.
  • AddedEvents: GET /v1/events with long polling (wait), six event types. Webhooks: POST/GET /v1/webhook_endpoints, DELETE /v1/webhook_endpoints/{id}, delivery log and resend; signed with Webhook-Id, Webhook-Timestamp, Webhook-Signature (HMAC-SHA256), retried for 24 hours.
  • AddedResults: GET /v1/orders/{id}/results (JSON, or CSV long or wide; version for earlier versions), GET /v1/orders/{id}/files, GET /v1/files/{id}/download (signed URL, 5 minutes). Only results released by an AssayDirect scientist are visible.
  • AddedSandbox: orders placed with a test key are paid, processed and delivered automatically within minutes, with simulated results marked simulated: true.
  • AddedMCP tools create_order, get_order and get_results (with waiting). The server still never pays.
  • ChangedQuotes now lock the price for orders created from them; a quote creates at most one order.
  • AddedPOST /v1/webhook_endpoints/{id}/rotate_secret; during rotation deliveries carry both signatures. Webhook delivery logs and resend in the portal.
  • Addedsample_shipping on paid sample orders; sha256 on files; daily per-key limits (50 orders, 5,000 candidates); pagination on GET /v1/payments.
v1.0.0

First release: catalog, schemas and quotes

Read the catalog, validate inputs and get stored, price-locked quotes from code or an AI agent. Orders, results and events follow in the next release.

  • AddedAPI keys in the client portal: live and test keys, scopes (read, order, webhook), expiry from 7 days to 1 year, instant revocation. Only a hash of each key is stored.
  • AddedGET /v1/services and GET /v1/services/{id}: services, prices in cents, option groups with option IDs, volume discounts and the one-candidate price. No key needed.
  • AddedGET /v1/services/{id}/schema: JSON Schema of a quote item and the result endpoints the service can return, with units.
  • AddedPOST /v1/quotes: validates a request against the live catalog, prices it with the same engine as the website and stores it for 24 hours. Errors list field paths and allowed values.
  • AddedGET /v1/quotes/{id}: a stored quote with its request, price snapshot and status (open, expired, used).
  • AddedPOST /v1/targets/requests: ask for a target or cell line that is not listed yet.
  • AddedPOST /v1/api_keys/{id}/restrict: derive a narrower child key (fewer scopes, fewer services, a lower order limit, a shorter life) to give to an agent.
  • AddedGET /v1/openapi.json: OpenAPI 3.1 description of the API.
  • AddedMCP server at /api/mcp with read-only tools: list_services, get_service_schema, quote_order, get_quote.
NextPlanned

Coming Next

Planned for the next release; not available yet.

  • The MCP tool search_targets over GET /v1/targets
  • Spending controls on keys (monthly caps, automatic approval below a limit) and agent payments — when customers ask for them
API Changelog — AssayDirect