xPlantAPI
API referenceMedia

List media recipes

The workspace's culture media recipes that the key's owner can see — their own, and those shared with the workspace or published — newest first, each with its components. Another member's private recipe is not listed. Filter by status.

GET/api/v1/media-recipes
Scope read:media_recipes

Query parameters

NameTypeRequiredDescription
status"active" | "archived" | "deprecated" | "draft" | "published"NoOnly recipes with this status.
limitintegerNoPage size. Values above 200 are capped at 200. Default 50. From 1 to 200.
offsetintegerNoNumber of records to skip. Prefer cursor where a list offers it: an offset shifts when records are added ahead of it. Default 0. At least 0.
cursorstringNoContinue from the previous page: pass its meta.next_cursor unchanged, with the same filters. Treat it as opaque. Not combinable with offset. Up to 2048 characters.

Example

curl "https://app.xplantpro.com/api/v1/media-recipes?status=published" \
  -H "Authorization: Bearer $XPLANT_API_KEY"

Response

200 with { "ok": true, "data": … }. data is an array. To get the next page, pass meta.next_cursor back as cursor; it is null on the last page. See Pagination.

FieldTypeRequiredDescription
idstring (uuid)Yes—
titlestringYes—
statusstring | nullYesOne of active, archived, deprecated, draft, published.
originstring | nullYesWhere the recipe came from, for example user or imported.
visibilitystringYesprivate: only its creator can see it. team: everyone in the workspace can.
is_publicbooleanYesPublished to xPlant's public recipe library.
notesstring | nullYes—
ph_targetnumber | nullYesTarget pH.
sterilization_notesstring | nullYes—
storage_notesstring | nullYes—
usage_notesstring | nullYes—
componentsobject[]YesThe ingredients, in order.
components[].idstringYesThe component's id. Send it back in an update to keep the component.
components[].namestringYesThe ingredient.
components[].qtystringYesThe amount as the recipe writes it.
components[].unitstring | nullYesThe unit of qty.
components[].concentrationstring | nullYesA concentration, when the recipe states one apart from the amount.
versionintegerYesThe recipe's version. It goes up by one each time the formulation changes, and every version is kept.
created_bystringYesUser id of the workspace member who created the recipe. Only they can change it.
created_atstring | nullYesISO 8601.
Response
{
  "ok": true,
  "data": [
    {
      "id": "a3d5f7b9-1c2e-4f6a-8b0d-2e4f6a8c0e1f",
      "title": "MS + 1 mg/L BAP",
      "status": "active",
      "origin": "user",
      "visibility": "team",
      "is_public": false,
      "notes": "Shoot multiplication medium for aroid cultures.",
      "ph_target": 5.8,
      "sterilization_notes": "Autoclave for 20 minutes at 121 °C.",
      "storage_notes": "Keep poured vessels at 4 °C and use within two weeks.",
      "usage_notes": null,
      "components": [
        {
          "id": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
          "name": "MS basal salts",
          "qty": "4.4",
          "unit": "g/L",
          "concentration": null
        },
        {
          "id": "d2b3c4d5-e6f7-4a81-9b0c-1d2e3f4a5b6c",
          "name": "Sucrose",
          "qty": "30",
          "unit": "g/L",
          "concentration": null
        },
        {
          "id": "e3c4d5e6-f7a8-4b92-8c1d-2e3f4a5b6c7d",
          "name": "6-BAP",
          "qty": "1",
          "unit": "mg/L",
          "concentration": null
        },
        {
          "id": "f4d5e6f7-a8b9-4ca3-9d2e-3f4a5b6c7d8e",
          "name": "Agar",
          "qty": "7",
          "unit": "g/L",
          "concentration": null
        }
      ],
      "version": 1,
      "created_by": "0d7e4b9a-6f21-4c3e-8a5b-2e9f1c7d4a60",
      "created_at": "2026-09-25T14:12:03.000Z"
    }
  ]
}

The envelope can also carry meta:

FieldTypeRequiredDescription
next_cursorstring | nullYesPass as cursor to fetch the next page. null means this is the last page.
Response headerMeaning
X-Request-IdIdentifies this request. Include it when you contact support.

Errors

StatusCodeWhen
401UNAUTHORIZEDThe key is missing, malformed or revoked, or its owner is no longer a member of the workspace.
402PAID_PLAN_REQUIREDThe workspace's plan does not include the API. The full API is included with xPlant+ Teams and Enterprise; on Hobby and Pro Lab, keys can connect devices only.
403FORBIDDENThe key lacks a scope this operation requires, or its owner's current role in the workspace cannot use it — a key never does more than its owner can in xPlant. error names the scope, and for a role, the role it needs.
403DEVICE_TOKEN_NOT_ACCEPTEDA device token was sent; this operation needs a workspace API key.
422VALIDATION_ERRORBoth cursor and offset were sent; use one.
422INVALID_CURSORThe cursor is malformed, or came from a different list or different filters. Start again without it.
422VALIDATION_ERRORstatus is not one of the recipe statuses.
429RATE_LIMIT_EXCEEDEDToo many requests for this key, device token or workspace. Wait Retry-After seconds.
500MEDIA_RECIPE_QUERY_FAILEDThe recipes could not be read. Retry later.

Branch on code, never on the error text. See Errors.

On this page