# Get an item

> GET /boards/{boardId}/items/{itemId}

Source: https://mockflow.com/developers/reference/items/get-item

**GET** `https://api.mockflow.com/v1/boards/{boardId}/items/{itemId}`  
Scopes: `boards:read`

**curl**

```bash
curl https://api.mockflow.com/v1/boards/brd_3f9e2a/items/itm_k9 \
  -H "Authorization: Bearer $MOCKFLOW_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://api.mockflow.com/v1/boards/brd_3f9e2a/items/itm_k9", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`
  }
});

const data = await response.json();
```

**Python**

```python
import os, requests

response = requests.get(
    "https://api.mockflow.com/v1/boards/brd_3f9e2a/items/itm_k9",
    headers={"Authorization": f"Bearer {os.environ['MOCKFLOW_API_KEY']}"},
)

response.raise_for_status()
data = response.json()
```

**200**

```json
{
  "id": "itm_k9",
  "type": "string",
  "componentType": "string",
  "boardId": "brd_3f9e2a",
  "sectionId": "string",
  "groupId": "string"
}
```

**404**

```json
{
  "error": {
    "code": "not_found",
    "message": "The resource does not exist or the token cannot see it.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#not_found"
  },
  "requestId": "req_45d49816999bac40"
}
```

**429**

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#rate_limited"
  },
  "requestId": "req_45d49816999bac40"
}
```

Geometry, where it sits, and `data` decoded per the type's `readback`.

### Authorization

- `Authorization` (string, required): `Bearer <key>`. The key needs `boards:read` scope. Create and manage keys in the [developer console](/developers/console/); what each scope unlocks is on the [scopes page](/developers/concepts/scopes).

### Path parameters

- `boardId` (string, required)
- `itemId` (string, required)

### Response

- `id` (string)
- `type` (string): An ItemType, or `other` for an editor widget the API has no type for.
- `componentType` (string): The editor's own class name, exact where `type` is a family.
- `boardId` (string)
- `sectionId` (string | null): The section the item sits inside, by position.
- `groupId` (string | null)
- `position` (Point): - `x` (number, required)
  - `y` (number, required)
- `size` (Size): - `width` (number)
  - `height` (number)
- `rotation` (number)
- `zIndex` (integer)
- `locked` (boolean)
- `text` (string): Plain text extracted from the item, for search and the outline.
- `readback` (enum<string>): One of `exact`, `unwrapped`, `text`, `pointer`, `parts` or `none`.
- `data` (ItemData): Selected by the sibling `type`. One schema per item type, generated from the component registry.
- `from` (string | null): Connectors only: the item or `group:` the line starts at.
- `to` (string | null): Connectors only.
- `directed` (boolean): Connectors only.
- `label` (string): Connectors only.
- `url` (string): Opens the board focused on this item.

### Errors

- 404 `not_found`: The resource does not exist or the token cannot see it.
- 429 `rate_limited`: Too many requests.
