Skip to content

API Introduction

Use the API when a team needs to automate uploads, poll analysis status, export reports, or connect MolTrace to existing laboratory systems.

Terminal window
https://api.moltrace.com/v1
EnvironmentURL
Productionhttps://api.moltrace.com/v1
Sandboxhttps://sandbox.api.moltrace.com/v1

All requests require an API key in the Authorization header:

Terminal window
curl https://api.moltrace.com/v1/analyses \
-H "Authorization: Bearer mt_sk_live_YOUR_KEY"

Never expose API keys in browser-side code. Store them in environment variables or a secure server-side secret manager.

Generate keys from Settings -> API Keys -> Create Key. Server-side automation should read MOLTRACE_API_KEY from the environment or a managed secret store.

PlanRequests per minuteMax parallel uploads
Starter602
Pro30010
EnterpriseCustomCustom

Confirm these values against backend configuration before public release.

CodeMeaningRecommended action
400Bad requestCheck request body, required files, and enum values.
401Invalid API keyRegenerate or rotate the API key.
422Validation failedCorrect field-level validation errors.
429Rate limit exceededWait for reset or request a higher plan limit.
500Server errorRetry with exponential backoff and contact support if repeated.

The OpenAPI 3.1 schema is stored at api-reference/openapi.yaml for published docs and mirrored in the repository at api-reference/openapi.yaml. Every backend pull request that adds or changes an endpoint must update the schema in the same change.

Write the tutorial and first module guide before relying on the API reference. The API should automate a workflow users already understand.