Overview
The API speaks JSON over HTTPS. Every address starts with:
https://staging.experimentium.com/api/v1
Almost everything happens inside a team, so most addresses start with /teams/{team}. Records are found by their numeric id. The ids you need come from earlier calls: GET /teams gives team ids, an experiment gives the ids of its variants, stages, tasks and readings, and so on.
This is version 1. New fields and endpoints may be added to it; anything that would break an app built on it goes into a version 2 at a new address, with version 1 kept running alongside.
Signing in
Every request sends a token in the Authorization header:
curl https://staging.experimentium.com/api/v1/me \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/json"
Personal token
In the app, open your account menu → Account connections → Personal tokens. Name the token, tick what it can do under “What it can do”, and pick its teams. The token is shown once; it lasts a year, and Disconnect ends it at once.
Service (client credentials)
We register the service with the team it works in, the account it acts as, and the permissions it may ask for, and give you a client id and secret. Keep the secret on your server, never in an app or web page. Ask for a token, naming the scopes you need (separated by spaces):
curl -X POST https://staging.experimentium.com/oauth/token \
-H "Accept: application/json" \
-d grant_type=client_credentials \
-d client_id=YOUR_CLIENT_ID \
-d client_secret=YOUR_CLIENT_SECRET \
-d "scope=experiments:read experiments:write data:write"
{
"token_type": "Bearer",
"expires_in": 3600,
"access_token": "eyJ0eXAiOiJKV1Qi…"
}
The token lasts an hour; ask for a new one when it runs out. Its work shows in the app as done by the account it acts as, so we suggest a separate account for the service, with a role that allows only what it needs.
App (authorization code with PKCE)
We register the app with its redirect addresses and the permissions it may ask for, and give you a client id (and a secret, for apps with a server). Each person then approves it, the standard OAuth 2 way:
- Make a random
code_verifier, and its SHA-256 code_challenge (base64url).
- Send the person to
https://staging.experimentium.com/oauth/authorize?client_id=…&redirect_uri=…&response_type=code&scope=experiments:read%20data:write&state=…&code_challenge=…&code_challenge_method=S256. They sign in, see what the app is asking for, and pick the teams it may use.
- They come back to your redirect address with
code and your state. Check the state, then trade the code for tokens:
curl -X POST https://staging.experimentium.com/oauth/token \
-H "Accept: application/json" \
-d grant_type=authorization_code \
-d client_id=YOUR_CLIENT_ID \
-d redirect_uri=YOUR_REDIRECT_URI \
-d code=THE_CODE \
-d code_verifier=YOUR_CODE_VERIFIER
The access token lasts an hour and the refresh token 60 days. Get a new access token with grant_type=refresh_token and refresh_token. People can see and disconnect the app on Account connections.
Postman collection
Download the collection and import it into Postman. Under the collection’s Variables, set token to a personal token, or set clientId and clientSecret and run “Sign in → Get a service token”, which saves the token for you. Every request comes with an example response.
Tests are built in. Every request checks its status, that it answers with the documented fields, and that it answers within 2 seconds. Requests save the ids they return (the team, an experiment, a subject…) for the requests after them.
The Walkthrough folder tests the whole API in order. Run it with Postman’s Collection Runner: it creates a project and a small experiment, replaces its design, adds a subject, starts it, records, flags and unflags a reading, logs a task, moves a stage, completes a step, writes in the journal, ends it, writes the conclusion, restarts it, and makes a logbook with an entry, checking each answer. It makes real records in the team, so run it in a test team. From a terminal, Newman (Postman’s command-line runner) runs it too: npx newman run collection.json --folder Walkthrough --env-var token=YOUR_TOKEN.
Projects
Projects hold experiments, the way folders hold files.
List projects
GET
/teams/{team}/projects
The team’s projects, by name.
Scope: projects:read
· Team permission: projects.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
search |
query |
string |
Part of a name. |
page |
query |
integer |
Page number, from 1. |
per_page |
query |
integer |
Results per page, 1–100 (default 25). |
Example response (200)
{
"data": [
{
"id": 7,
"name": "Garden trials",
"description": null,
"created_at": "2026-04-01T12:00:00+00:00"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"next": null,
"prev": null
}
}
Get a project
GET
/teams/{team}/projects/{project}
One project.
Scope: projects:read
· Team permission: projects.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
project required |
path |
integer |
The project’s id. |
Example response (200)
{
"data": {
"id": 7,
"name": "Garden trials",
"description": null,
"created_at": "2026-04-01T12:00:00+00:00"
}
}
Create a project
POST
/teams/{team}/projects
A new project.
Scope: projects:write
· Team permission: projects.create
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
name required |
body |
string |
Up to 255 characters. |
description |
body |
string |
Plain text. |
Example request
{
"name": "2027 seed trials",
"description": "Next year’s variety tests."
}
Example response (201)
{
"data": {
"id": 8,
"name": "2027 seed trials",
"description": "Next year’s variety tests.",
"created_at": "2026-11-27T15:00:00+00:00"
}
}
Update a project
PATCH
/teams/{team}/projects/{project}
Rename a project or change its description. Send only what changes.
Scope: projects:write
· Team permission: projects.update
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
project required |
path |
integer |
The project’s id. |
name |
body |
string |
New name. |
description |
body |
string |
New description, or null to clear it. |
Example request
{
"name": "2027 variety trials"
}
Example response (200)
{
"data": {
"id": 8,
"name": "2027 variety trials",
"description": "Next year’s variety tests.",
"created_at": "2026-11-27T15:00:00+00:00"
}
}
Designs
Create experiments and logbooks from a design: a JSON description of the whole setup. Get the schema, check your design until it has no problems, then create it. It is made as a draft: nothing is due until it is started. These are the same format and checks the Claude connector uses; no AI runs here. The scope depends on kind: experiments:write for experiments, logbooks:write for logbooks.
Get the design schema
GET
/teams/{team}/designs/schema/{kind}
The JSON Schema a design must follow, with worked examples.
Scope: experiments:write or logbooks:write
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
kind required |
path |
string |
experiment or logbook. |
Example response (200)
{
"data": {
"kind": "experiment",
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"…": []
}
},
"examples": {
"Which variety does best?": {
"title": "…"
}
}
}
}
Check a design
POST
/teams/{team}/designs/check
Checks a design against everything that can be built, without making anything. Returns the problems in plain words (empty when ok) and the design as it would be built.
Scope: experiments:write or logbooks:write
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
kind required |
body |
string |
experiment or logbook. |
design required |
body |
object |
The design, following the schema. |
Example request
{
"kind": "logbook",
"design": {
"name": "Rain gauge",
"description": "Daily rainfall.",
"fields": [
{
"name": "Rain",
"type": "decimal",
"unit": "in"
}
]
}
}
Example response (200)
{
"data": {
"ok": true,
"problems": [],
"normalized": {
"name": "Rain gauge",
"…": []
}
}
}
Create from a design
POST
/teams/{team}/designs
Makes the design as a draft experiment or a logbook. Experiments go into project_id, or a “Garden trials” project when none is given. Logbooks start private unless visibility is team. A design with problems is refused with 422 and the list of problems.
Scope: experiments:write or logbooks:write
· Team permission: experiments.create (experiments)
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
kind required |
body |
string |
experiment or logbook. |
design required |
body |
object |
The design (check it first). |
project_id |
body |
integer |
Experiments: the project to put it in. |
visibility |
body |
string |
Logbooks: private (default) or team. |
Example request
{
"kind": "experiment",
"project_id": 7,
"design": {
"title": "Which tomato variety yields most?",
"…": []
}
}
Example response (201)
{
"data": {
"id": 42,
"title": "Which tomato variety yields most?",
"status": "active",
"design": "groups",
"hypothesis": "Sungold gives more fruit per plant than Early Girl.",
"project": {
"id": 7,
"name": "Garden trials"
},
"started_at": "2026-05-01T14:00:00+00:00",
"planned_end_on": "2026-08-31",
"concluded_at": null,
"created_at": "2026-04-28T19:12:03+00:00",
"url": "https://app.example.com/app/3/experiments/42",
"variants": [],
"stages": [],
"steps": []
}
}
Replace a draft’s design
PUT
/teams/{team}/experiments/{experiment}/design
Replace a draft experiment’s whole design with a new one (the same format as creating it), keeping its id, project, tags and files. Everything inside it is made again from the design, including subjects: add your own subjects after the design is final. Refused once anything has been recorded on it, and for experiments that aren’t drafts (409): restart those as a new attempt.
Scope: experiments:write
· Team permission: protocol.manage
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
design required |
body |
object |
The whole new design (check it first). |
Example request
{
"design": {
"title": "Which tomato variety yields most?",
"…": []
}
}
Example response (200)
{
"data": {
"id": 42,
"title": "Which tomato variety yields most?",
"status": "active",
"design": "groups",
"hypothesis": "Sungold gives more fruit per plant than Early Girl.",
"project": {
"id": 7,
"name": "Garden trials"
},
"started_at": "2026-05-01T14:00:00+00:00",
"planned_end_on": "2026-08-31",
"concluded_at": null,
"created_at": "2026-04-28T19:12:03+00:00",
"url": "https://app.example.com/app/3/experiments/42",
"variants": [],
"stages": [],
"steps": []
}
}
Experiments
Experiments, their whole design, and their results. Results are computed by the app: use these numbers rather than working out your own statistics from readings.
List experiments
GET
/teams/{team}/experiments
The team’s experiments, newest first.
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
status |
query |
string |
draft, active, paused, completed, failed or abandoned. |
project_id |
query |
integer |
Only this project. |
search |
query |
string |
Part of a title. |
page |
query |
integer |
Page number, from 1. |
per_page |
query |
integer |
Results per page, 1–100 (default 25). |
Example response (200)
{
"data": [
{
"id": 42,
"title": "Which tomato variety yields most?",
"status": "active",
"design": "groups",
"hypothesis": "Sungold gives more fruit per plant than Early Girl.",
"project": {
"id": 7,
"name": "Garden trials"
},
"started_at": "2026-05-01T14:00:00+00:00",
"planned_end_on": "2026-08-31",
"concluded_at": null,
"created_at": "2026-04-28T19:12:03+00:00",
"url": "https://app.example.com/app/3/experiments/42"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"next": null,
"prev": null
}
}
Get an experiment
GET
/teams/{team}/experiments/{experiment}
One experiment with its whole design: variants, stages, and steps with their tasks and readings (ids you use when recording).
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
Example response (200)
{
"data": {
"id": 42,
"title": "Which tomato variety yields most?",
"status": "active",
"design": "groups",
"hypothesis": "Sungold gives more fruit per plant than Early Girl.",
"project": {
"id": 7,
"name": "Garden trials"
},
"started_at": "2026-05-01T14:00:00+00:00",
"planned_end_on": "2026-08-31",
"concluded_at": null,
"created_at": "2026-04-28T19:12:03+00:00",
"url": "https://app.example.com/app/3/experiments/42",
"ended_reason": null,
"subjects_count": 12,
"variants": [
{
"id": 87,
"name": "Early Girl",
"is_control": true
},
{
"id": 88,
"name": "Sungold",
"is_control": false
}
],
"stages": [
{
"id": 11,
"name": "Seedling",
"order": 1,
"is_default": true
},
{
"id": 12,
"name": "Flowering",
"order": 2,
"is_default": false
}
],
"steps": [
{
"id": 20,
"order": 1,
"title": "Grow",
"anytime": false,
"target_duration_days": 120,
"tasks": [
{
"id": 31,
"title": "Water",
"frequency": "every_n_days",
"interval_days": 3,
"required": true,
"when_you_can": false,
"moves_to_stage_id": null
}
],
"readings": [
{
"id": 55,
"name": "Plant height",
"type": "decimal",
"unit": "in",
"min": 0,
"max": 120,
"categories": null,
"role": "outcome",
"is_main_outcome": true,
"schedule": "weekly",
"task_id": null,
"required": true,
"per_site": false,
"calculated": false
}
]
}
]
}
}
Get results
GET
/teams/{team}/experiments/{experiment}/results
The findings as the app computes them: a headline, each outcome by variant against the control with whether the difference is likely real (verdict likely, unclear or chance), and the conclusion the team saved.
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
Example response (200)
{
"data": {
"experiment_id": 42,
"status": "completed",
"headline": "Main outcome, Fruit count: Sungold against Early Girl, likely a real difference.",
"summary": "Fruit count: Sungold 38 (+46% vs control, better; likely a real difference).",
"outcomes": [
{
"reading_id": 56,
"reading": "Fruit count",
"unit": null,
"is_main_outcome": true,
"better": "higher",
"variants": [
{
"variant": "Early Girl",
"is_control": true,
"n": 6,
"value": "26",
"vs_control_percent": null,
"improvement_percent": null,
"verdict": null,
"verdict_text": null,
"p": null,
"method": null,
"likely_range_percent": null
},
{
"variant": "Sungold",
"is_control": false,
"n": 6,
"value": "38",
"vs_control_percent": 46.2,
"improvement_percent": 46.2,
"verdict": "likely",
"verdict_text": "Likely a real difference",
"p": 0.004,
"method": "welch",
"likely_range_percent": [
18,
74
]
}
]
}
],
"verdict": "supported",
"conclusion": "Sungold out-yielded Early Girl in every bed."
}
}
Start
POST
/teams/{team}/experiments/{experiment}/start
Start a draft. Readings can be recorded from then on. warning says when there is no proper control. Refused with 409 when it isn’t a draft, and 422 when the plan’s running-experiment limit is reached.
Scope: experiments:run
· Team permission: experiments.run
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
Example response (200)
{
"data": {
"status": "active",
"…": []
},
"warning": null
}
Pause
POST
/teams/{team}/experiments/{experiment}/pause
Pause a running experiment: participants’ links and reminders stop until it is resumed. Team members can still record late entries.
Scope: experiments:run
· Team permission: experiments.run
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
Example response (200)
{
"data": {
"status": "paused",
"…": []
},
"warning": null
}
Resume
POST
/teams/{team}/experiments/{experiment}/resume
Resume a paused experiment.
Scope: experiments:run
· Team permission: experiments.run
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
Example response (200)
{
"data": {
"status": "active",
"…": []
},
"warning": null
}
End
POST
/teams/{team}/experiments/{experiment}/end
End the attempt as completed, failed or abandoned, saying what happened. Closing questions open, as in the app (participants who answer them are emailed). Completing waits for the closing questions when the experiment asks for them first (409).
Scope: experiments:run
· Team permission: experiments.run
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
outcome required |
body |
string |
completed, failed or abandoned. |
reason required |
body |
string |
What happened, in plain text. |
Example request
{
"outcome": "completed",
"reason": "Ran the full season; all plants harvested."
}
Example response (200)
{
"data": {
"status": "completed",
"…": []
}
}
Write the conclusion
PUT
/teams/{team}/experiments/{experiment}/conclusion
The team’s verdict on the hypothesis, the conclusion and next steps, as on the Summary tab. Sending it again replaces them.
Scope: experiments:write
· Team permission: experiments.update
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
verdict required |
body |
string |
supported, partly_supported, not_supported or inconclusive. |
conclusion required |
body |
string |
Plain text. |
next_steps |
body |
string |
Plain text. |
Example request
{
"verdict": "supported",
"conclusion": "Sungold out-yielded Early Girl in every bed.",
"next_steps": "Try Sungold against Sweet 100 next year."
}
Example response (200)
{
"data": {
"verdict": "supported",
"conclusion": "Sungold out-yielded Early Girl in every bed.",
"next_steps": "Try Sungold against Sweet 100 next year.",
"concluded_at": "2026-09-02T18:00:00+00:00"
}
}
Restart as a new attempt
POST
/teams/{team}/experiments/{experiment}/restart
A new draft with the same protocol (constants, variants, stages, steps, tasks and readings) that links back to this one; subjects and recorded data aren’t copied. For drafts, replace the design instead (409).
Scope: experiments:run
· Team permission: experiments.run and experiments.create
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
title |
body |
string |
Defaults to the title with the next attempt number. |
Example request
{
"title": "Which tomato variety yields most? (attempt 2)"
}
Example response (201)
{
"data": {
"id": 42,
"title": "Which tomato variety yields most?",
"status": "active",
"design": "groups",
"hypothesis": "Sungold gives more fruit per plant than Early Girl.",
"project": {
"id": 7,
"name": "Garden trials"
},
"started_at": "2026-05-01T14:00:00+00:00",
"planned_end_on": "2026-08-31",
"concluded_at": null,
"created_at": "2026-04-28T19:12:03+00:00",
"url": "https://app.example.com/app/3/experiments/42",
"restarted_from_id": 42,
"variants": [],
"stages": [],
"steps": []
}
}
Subjects
The things being tested: plants, pots, beds. external_id is yours to use, for example a seed lot number in your own system.
List subjects
GET
/teams/{team}/experiments/{experiment}/subjects
The experiment’s subjects, with their variant and current stage.
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
status |
query |
string |
active, completed, failed or dropped. |
variant_id |
query |
integer |
Only this variant. |
external_id |
query |
string |
Only the subject with this external_id. |
page |
query |
integer |
Page number, from 1. |
per_page |
query |
integer |
Results per page, 1–100 (default 25). |
Example response (200)
{
"data": [
{
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"status": "active",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"left_out_of_results": false,
"left_out_reason": null,
"created_at": "2026-04-28T19:12:03+00:00"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"next": null,
"prev": null
}
}
Get a subject
GET
/teams/{team}/experiments/{experiment}/subjects/{subject}
One subject.
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
Example response (200)
{
"data": {
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"status": "active",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"left_out_of_results": false,
"left_out_reason": null,
"created_at": "2026-04-28T19:12:03+00:00"
}
}
Add subjects
POST
/teams/{team}/experiments/{experiment}/subjects
Add up to 200 subjects at once. Each needs a variant when the experiment compares variants (and must not have one when it doesn’t). Not for ended attempts, or when one thing takes turns (409). The plan’s subjects-per-experiment limit applies (422).
Scope: experiments:write
· Team permission: subjects.manage
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subjects required |
body |
array |
Each: name (required), variant_id, external_id. |
Example request
{
"subjects": [
{
"name": "Sungold – plant 7",
"variant_id": 88,
"external_id": "LOT-2026-014"
}
]
}
Example response (201)
{
"data": [
{
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"status": "active",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"left_out_of_results": false,
"left_out_reason": null,
"created_at": "2026-04-28T19:12:03+00:00"
}
]
}
Update a subject
PATCH
/teams/{team}/experiments/{experiment}/subjects/{subject}
Rename a subject, change its external_id, or its status: dropped or failed when it’s lost (a plant died), completed when it’s finished early. Send only what changes.
Scope: experiments:write
· Team permission: subjects.manage
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
name |
body |
string |
New name. |
external_id |
body |
string |
Your reference, or null to clear it. |
status |
body |
string |
active, completed, dropped or failed. |
Example request
{
"status": "failed"
}
Example response (200)
{
"data": {
"status": "failed",
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"left_out_of_results": false,
"left_out_reason": null,
"created_at": "2026-04-28T19:12:03+00:00"
}
}
Leave out of results
POST
/teams/{team}/experiments/{experiment}/subjects/{subject}/leave-out
Stop a subject counting in comparisons, charts and shared results, with why. Its readings are kept, and can still be recorded; the summary lists it with the reason.
Scope: experiments:write
· Team permission: experiments.update
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
reason required |
body |
string |
Why, in a few words. |
Example request
{
"reason": "Eaten by a slug on day 4"
}
Example response (200)
{
"data": {
"left_out_of_results": true,
"left_out_reason": "Eaten by a slug on day 4",
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"status": "active",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"created_at": "2026-04-28T19:12:03+00:00"
}
}
Count in results again
POST
/teams/{team}/experiments/{experiment}/subjects/{subject}/count-again
Undo leaving a subject out of results.
Scope: experiments:write
· Team permission: experiments.update
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
Example response (200)
{
"data": {
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"status": "active",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"left_out_of_results": false,
"left_out_reason": null,
"created_at": "2026-04-28T19:12:03+00:00"
}
}
Recording
Record as Record data does in the app, with the same checks: ranges and categories, steps in order, taking turns, and timing rules. Each call saves everything or nothing. A refusal is 422 with a plain message and a reason code (see Errors). Times without an offset are read in the person’s time zone; leave them out for now.
What’s due
GET
/teams/{team}/due
What needs doing now in each running experiment: tasks and readings due and for which subjects, with how overdue, and steps ready to mark complete (kind task, reading, complete or waiting).
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment_id |
query |
integer |
Only this experiment. |
Example response (200)
{
"data": [
{
"experiment": {
"id": 42,
"title": "Which tomato variety yields most?",
"status": "active"
},
"items": [
{
"kind": "task",
"label": "Water",
"step": {
"id": 20,
"title": "Grow"
},
"task_id": 31,
"reading_id": null,
"subjects": [
{
"id": 301,
"name": "Sungold – plant 1",
"overdue_days": 1
}
]
}
]
}
]
}
Recording form
GET
/teams/{team}/experiments/{experiment}/recording-form
What can be recorded now: the steps the subjects are on, with their tasks and readings. With subject_id, each also says whether it is open for that subject (state open, waiting or closed), and why not.
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject_id |
query |
integer |
One subject, to see what is open for it. |
Example response (200)
{
"data": {
"experiment": {
"id": 42,
"title": "Which tomato variety yields most?",
"status": "active",
"design": "groups",
"hypothesis": "Sungold gives more fruit per plant than Early Girl.",
"project": {
"id": 7,
"name": "Garden trials"
},
"started_at": "2026-05-01T14:00:00+00:00",
"planned_end_on": "2026-08-31",
"concluded_at": null,
"created_at": "2026-04-28T19:12:03+00:00",
"url": "https://app.example.com/app/3/experiments/42"
},
"subject": {
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"status": "active",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"left_out_of_results": false,
"left_out_reason": null,
"created_at": "2026-04-28T19:12:03+00:00"
},
"steps": [
{
"id": 20,
"title": "Grow",
"anytime": false,
"tasks": [
{
"id": 31,
"title": "Water",
"…": [],
"readings": [],
"open": {
"state": "open",
"reason": null,
"opens_at": null,
"waiting_for_stage": null
}
}
],
"readings": [
{
"id": 55,
"name": "Plant height",
"…": [],
"open": {
"state": "open",
"reason": null,
"opens_at": null,
"waiting_for_stage": null
}
}
]
}
]
}
}
List readings
GET
/teams/{team}/experiments/{experiment}/readings
Recorded readings, oldest first. Flagged readings are included, marked flagged.
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject_id |
query |
integer |
Only this subject. |
reading_id |
query |
integer |
Only this reading. |
since |
query |
string |
ISO 8601 date or time: recorded at or after. |
until |
query |
string |
ISO 8601 date or time: recorded at or before. |
page |
query |
integer |
Page number, from 1. |
per_page |
query |
integer |
Results per page, 1–100 (default 25). |
Example response (200)
{
"data": [
{
"id": 9001,
"subject_id": 301,
"reading_id": 55,
"reading": "Plant height",
"value": 14.5,
"unit": "in",
"task_log_id": null,
"flagged": false,
"flag_reason": null,
"recorded_at": "2026-06-01T13:30:00+00:00"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"next": null,
"prev": null
}
}
Record readings
POST
/teams/{team}/experiments/{experiment}/readings
Readings for one subject at one moment. Numbers go without units. Readings tied to a task are recorded with the task (task-logs); photos with the photos endpoint.
Scope: data:write
· Team permission: data.record
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject_id required |
body |
integer |
The subject. |
readings required |
body |
array |
Each: reading_id and value (number, true/false, a category, a date or text). |
recorded_at |
body |
string |
When it was measured (ISO 8601). Leave out for now. |
Example request
{
"subject_id": 301,
"readings": [
{
"reading_id": 55,
"value": 14.5
}
],
"recorded_at": "2026-06-01T07:30:00-06:00"
}
Example response (201)
{
"data": [
{
"id": 9001,
"subject_id": 301,
"reading_id": 55,
"reading": "Plant height",
"value": 14.5,
"unit": "in",
"task_log_id": null,
"flagged": false,
"flag_reason": null,
"recorded_at": "2026-06-01T13:30:00+00:00"
}
]
}
Log a task
POST
/teams/{team}/experiments/{experiment}/task-logs
A task done for one or more subjects, with notes and the readings that go with it (the same values for each subject). A task that moves the stage moves it. When a task’s required readings differ per subject, log it one subject at a time.
Scope: data:write
· Team permission: data.record
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
task_id required |
body |
integer |
The task. |
subject_ids required |
body |
array |
Subject ids. |
readings |
body |
array |
The task’s own readings: reading_id and value. |
notes |
body |
string |
What was done. |
done_at |
body |
string |
When (ISO 8601). Leave out for now. |
Example request
{
"task_id": 31,
"subject_ids": [
301,
302
],
"notes": "Deep soak after the heat."
}
Example response (201)
{
"data": [
{
"id": 700,
"subject_id": 301,
"task_id": 31,
"notes": "Deep soak after the heat.",
"done_at": "2026-06-01T15:00:00+00:00",
"readings": []
}
]
}
Move a stage
POST
/teams/{team}/experiments/{experiment}/subjects/{subject}/stage
Move a subject to another stage (“plant 2 is flowering now”), optionally dated when it happened.
Scope: data:write
· Team permission: data.record
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
stage_id required |
body |
integer |
The stage. |
moved_at |
body |
string |
When it got there (ISO 8601). |
note |
body |
string |
A note for the timeline. |
Example request
{
"stage_id": 12,
"note": "First flowers open."
}
Example response (201)
{
"data": {
"subject": {
"id": 301,
"name": "Sungold – plant 1",
"external_id": "LOT-2026-014",
"status": "active",
"variant": {
"id": 88,
"name": "Sungold"
},
"stage": {
"id": 12,
"name": "Flowering"
},
"left_out_of_results": false,
"left_out_reason": null,
"created_at": "2026-04-28T19:12:03+00:00"
},
"moved_at": "2026-06-01T15:00:00+00:00"
}
}
Upload a photo
POST
/teams/{team}/experiments/{experiment}/subjects/{subject}/photos
A photo for one of the subject’s photo readings, sent as multipart/form-data. With task_log_id it is added to a task already logged. JPEG, PNG, GIF, WebP or AVIF, up to 12 MB; the plan’s daily upload limit applies.
Scope: data:write
· Team permission: data.record
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
photo required |
form |
file |
The image. |
reading_id required |
form |
integer |
A photo reading of the experiment. |
task_log_id |
form |
integer |
A task log of this subject. |
Example response (201)
{
"data": {
"id": 9002,
"subject_id": 301,
"reading_id": 57,
"reading": "Photo",
"value": null,
"unit": null,
"task_log_id": null,
"flagged": false,
"flag_reason": null,
"recorded_at": "2026-06-01T15:00:00+00:00"
}
}
Complete a step
POST
/teams/{team}/experiments/{experiment}/subjects/{subject}/steps/{step}/complete
Mark a step complete for a subject, as Record data’s button does. Refused (step_not_ready) until its required tasks and readings are done; anytime steps are never completed. What’s due lists steps ready for this (kind complete).
Scope: data:write
· Team permission: data.record
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
step required |
path |
integer |
The step’s id. |
Example response (200)
{
"data": {
"subject_id": 301,
"step_id": 20,
"status": "completed",
"completed_at": "2026-08-30T16:00:00+00:00"
}
}
Reopen a step
POST
/teams/{team}/experiments/{experiment}/subjects/{subject}/steps/{step}/reopen
Put a step marked complete by mistake back in progress for the subject. Nothing recorded changes.
Scope: data:write
· Team permission: data.record
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
subject required |
path |
integer |
The subject’s id. |
step required |
path |
integer |
The step’s id. |
Example response (200)
{
"data": {
"subject_id": 301,
"step_id": 20,
"status": "in_progress",
"completed_at": null
}
}
Flag a reading
POST
/teams/{team}/experiments/{experiment}/readings/{reading}/flag
Mark a reading as wrong, with why: it stops counting in results but is kept, since readings are research data and never deleted. To correct a reading, flag it and record the right value.
Scope: data:write
· Team permission: data.flag
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
reading required |
path |
integer |
The recorded reading’s id (from List readings or Record readings). |
reason required |
body |
string |
What is wrong with it. |
Example request
{
"reason": "Measured the wrong plant."
}
Example response (200)
{
"data": {
"flagged": true,
"flag_reason": "Measured the wrong plant.",
"id": 9001,
"subject_id": 301,
"reading_id": 55,
"reading": "Plant height",
"value": 14.5,
"unit": "in",
"task_log_id": null,
"recorded_at": "2026-06-01T13:30:00+00:00"
}
}
Unflag a reading
POST
/teams/{team}/experiments/{experiment}/readings/{reading}/unflag
Count a flagged reading again.
Scope: data:write
· Team permission: data.flag
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
reading required |
path |
integer |
The recorded reading’s id. |
Example response (200)
{
"data": {
"flagged": false,
"flag_reason": null,
"id": 9001,
"subject_id": 301,
"reading_id": 55,
"reading": "Plant height",
"value": 14.5,
"unit": "in",
"task_log_id": null,
"recorded_at": "2026-06-01T13:30:00+00:00"
}
}
Journal
An experiment’s journal: notes, and events that may have affected it (a heat wave, a sprinkler left on). Events also show on the Summary timeline and in the findings when they’re serious.
Read the journal
GET
/teams/{team}/experiments/{experiment}/journal
Notes and events, newest first. kind tells them apart.
Scope: experiments:read
· Team permission: experiments.view
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
Example response (200)
{
"data": [
{
"id": 5,
"kind": "event",
"title": "Heat wave",
"description": "Three days over 100°F.",
"severity": "high",
"subject_id": null,
"by": "Sam Rivera",
"at": "2026-07-12T20:00:00+00:00"
},
{
"id": 9,
"kind": "note",
"text": "Mulched every bed.",
"by": "Sam Rivera",
"at": "2026-06-03T15:00:00+00:00"
}
]
}
Add a note
POST
/teams/{team}/experiments/{experiment}/notes
A note in the journal.
Scope: data:write
· Team permission: journal.write
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
text required |
body |
string |
Plain text. |
Example request
{
"text": "Mulched every bed."
}
Example response (201)
{
"data": {
"id": 9,
"kind": "note",
"text": "Mulched every bed.",
"by": "Sam Rivera",
"at": "2026-06-03T15:00:00+00:00"
}
}
Log an event
POST
/teams/{team}/experiments/{experiment}/events
Something that affected the experiment, optionally one subject. High and critical events are listed with the findings as something that may affect results.
Scope: data:write
· Team permission: journal.write
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
experiment required |
path |
integer |
The experiment’s id. |
title required |
body |
string |
In a few words. |
description required |
body |
string |
What happened. |
severity |
body |
string |
low, medium (default), high or critical. |
occurred_at |
body |
string |
When (ISO 8601). Leave out for now. |
subject_id |
body |
integer |
If it was one subject. |
Example request
{
"title": "Heat wave",
"description": "Three days over 100°F.",
"severity": "high"
}
Example response (201)
{
"data": {
"id": 5,
"kind": "event",
"title": "Heat wave",
"description": "Three days over 100°F.",
"severity": "high",
"subject_id": null,
"by": "Sam Rivera",
"at": "2026-07-12T20:00:00+00:00"
}
}
Logbooks
Logbooks track anything over time: rainfall, soil temperature, what was planted where. You see your own private logbooks and the team’s shared ones. Make new ones with POST /designs (kind logbook).
List logbooks
GET
/teams/{team}/logbooks
Logbooks this person can see, by name.
Scope: logbooks:read
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
search |
query |
string |
Part of a name. |
page |
query |
integer |
Page number, from 1. |
per_page |
query |
integer |
Results per page, 1–100 (default 25). |
Example response (200)
{
"data": [
{
"id": 4,
"name": "Rain gauge",
"description": "Daily rainfall.",
"visibility": "team",
"created_at": "2026-03-02T10:00:00+00:00"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"next": null,
"prev": null
}
}
Get a logbook
GET
/teams/{team}/logbooks/{logbook}
One logbook with its fields (ids you use when adding entries). Fields with input false are worked out, not filled in.
Scope: logbooks:read
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
logbook required |
path |
integer |
The logbook’s id. |
Example response (200)
{
"data": {
"id": 4,
"name": "Rain gauge",
"description": "Daily rainfall.",
"visibility": "team",
"created_at": "2026-03-02T10:00:00+00:00",
"fields": [
{
"id": 10,
"name": "Rain",
"type": "decimal",
"unit": "in",
"min": 0,
"max": null,
"categories": null,
"required": true,
"input": true
}
]
}
}
List entries
GET
/teams/{team}/logbooks/{logbook}/entries
Entries, newest first.
Scope: logbooks:read
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
logbook required |
path |
integer |
The logbook’s id. |
since |
query |
string |
ISO 8601: recorded at or after. |
until |
query |
string |
ISO 8601: recorded at or before. |
page |
query |
integer |
Page number, from 1. |
per_page |
query |
integer |
Results per page, 1–100 (default 25). |
Example response (200)
{
"data": [
{
"id": 120,
"logbook_id": 4,
"recorded_at": "2026-06-01T12:00:00+00:00",
"note": null,
"values": [
{
"field_id": 10,
"field": "Rain",
"value": 0.4,
"unit": "in"
}
]
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"next": null,
"prev": null
}
}
Add an entry
POST
/teams/{team}/logbooks/{logbook}/entries
An entry: values by field id, an optional note, and when. The logbook’s required fields must be given.
Scope: logbooks:write
| Parameter | In | Type | Description |
team required |
path |
integer |
The team’s id, from GET /teams. |
logbook required |
path |
integer |
The logbook’s id. |
values |
body |
array |
Each: field_id and value. |
note |
body |
string |
A note. |
recorded_at |
body |
string |
When (ISO 8601; a date alone means midday). Leave out for now. |
Example request
{
"values": [
{
"field_id": 10,
"value": 0.4
}
],
"recorded_at": "2026-06-01"
}
Example response (201)
{
"data": {
"id": 121,
"logbook_id": 4,
"recorded_at": "2026-06-01T18:00:00+00:00",
"note": null,
"values": [
{
"field_id": 10,
"field": "Rain",
"value": 0.4,
"unit": "in"
}
]
}
}