# List transfers

> The transfer history of one plant or explant, newest first: every move onto fresh media, where it went and which subculture it was. Send exactly one of plant_id or explant_id.

Source: https://docs.xplantpro.com/docs/api/transfers-and-stages/list-transfers

`GET https://app.xplantpro.com/api/v1/transfers`

- Required scope: `read:transfers`
- Credentials: workspace API key (`xpk_`)
- Idempotency-Key: ignored on this endpoint

Each transfer carries your lab's own fields in `custom_fields`.

The list is ordered by `transfer_date`, which changes when a planned transfer is postponed or edited: a transfer changed while you page through can move between pages. Transfers on the same date keep a fixed order.

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `plant_id` | string (uuid) | No | The plant whose transfers to list. Send exactly one of `plant_id` or `explant_id`. |
| `explant_id` | string (uuid) | No | The explant whose transfers to list. |
| `limit` | integer | No | Page size. Values above 200 are capped at 200. Default `50`. From 1 to 200. |
| `offset` | integer | No | Number 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. |
| `cursor` | string | No | Continue 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**

```bash
curl "https://app.xplantpro.com/api/v1/transfers?explant_id=7c1d9e2a-3b4f-4a5c-8d6e-1f2a3b4c5d6e" \
  -H "Authorization: Bearer $XPLANT_API_KEY"
```

**JavaScript**

```js
import { XPlantClient } from "@shmaplex/xplant-sdk";

const client = new XPlantClient({ apiKey: process.env.XPLANT_API_KEY });

const transfers = await client.transfers.list({ explant_id: "7c1d9e2a-3b4f-4a5c-8d6e-1f2a3b4c5d6e" });
```

**Python**

```python
import os
import requests

resp = requests.get(
    "https://app.xplantpro.com/api/v1/transfers",
    headers={"Authorization": f"Bearer {os.environ['XPLANT_API_KEY']}"},
    params={"explant_id": "7c1d9e2a-3b4f-4a5c-8d6e-1f2a3b4c5d6e"},
    timeout=10,
)
body = resp.json()
if not body["ok"]:
    raise RuntimeError(f"{resp.status_code} {body['code']}: {body['error']}")
transfers = body["data"]
```

## 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](https://docs.xplantpro.com/docs/pagination.md).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | Yes | — |
| `entity_type` | `"plant"` \| `"explant"` | Yes | Whether the transfer was of a plant or an explant. |
| `entity_id` | string (uuid) | Yes | The plant's or explant's id. |
| `transfer_date` | string \| null | Yes | When the transfer was done, as an ISO 8601 timestamp. |
| `transfer_cycle` | integer \| null | Yes | Which subculture this was for the plant or explant — 1 for the first. |
| `from_location` | string \| null | Yes | Where the culture was before the transfer. |
| `to_location` | string \| null | Yes | Where the culture went. |
| `status` | string | Yes | `completed` for a transfer that has been done, `pending` for one planned but not done yet, `cancelled` for one that was called off. A transfer recorded through the API is `completed` unless it was sent as `pending`. Transfers recorded through the API before `status` could be sent may read `active`, which means `completed`. |
| `notes` | string \| null | Yes | — |
| `created_at` | string \| null | Yes | — |
| `custom_fields` | object | Yes | Your lab's own fields on this transfer, keyed by field key. Always an object: `{}` when none were filled in, and always `{}` on a plant transfer. |

```json title="Response"
{
  "ok": true,
  "data": [
    {
      "id": "c7d8e9f0-a1b2-4c3d-8e4f-5a6b7c8d9e0f",
      "entity_type": "explant",
      "entity_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
      "transfer_date": "2026-09-24T00:00:00+00:00",
      "transfer_cycle": 5,
      "from_location": "Growth room 1, shelf B2",
      "to_location": "Growth room 1, shelf C1",
      "status": "completed",
      "notes": "LINE-0412 onto fresh multiplication medium. Two jars browning at the base, set aside.",
      "created_at": "2026-09-24T09:12:44.000Z",
      "custom_fields": {
        "vessel_lot": "LOT-2291",
        "hood": "Hood 2"
      }
    }
  ]
}
```

The envelope can also carry `meta`:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `next_cursor` | string \| null | Yes | Pass as `cursor` to fetch the next page. `null` means this is the last page. |

| Response header | Meaning |
| --- | --- |
| `X-Request-Id` | Identifies this request. Include it when you contact support. |

## Errors

| Status | Code | When |
| --- | --- | --- |
| `401` | `UNAUTHORIZED` | The key is missing, malformed or revoked, or its owner is no longer a member of the workspace. |
| `402` | `PAID_PLAN_REQUIRED` | The 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. |
| `403` | `FORBIDDEN` | The 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. |
| `403` | `DEVICE_TOKEN_NOT_ACCEPTED` | A device token was sent; this operation needs a workspace API key. |
| `404` | `NOT_FOUND` | The plant or explant is not in this workspace. |
| `422` | `VALIDATION_ERROR` | Both `cursor` and `offset` were sent; use one. |
| `422` | `INVALID_CURSOR` | The cursor is malformed, or came from a different list or different filters. Start again without it. |
| `422` | `VALIDATION_ERROR` | Neither or both of `plant_id` and `explant_id` were sent. |
| `429` | `RATE_LIMIT_EXCEEDED` | Too many requests for this key, device token or workspace. Wait `Retry-After` seconds. |
| `500` | `TRANSFER_QUERY_FAILED` | The transfers could not be read. Retry later. |

Branch on `code`, never on the `error` text. See [Errors](https://docs.xplantpro.com/docs/errors.md).
