---
title: "fetches an element from the notebook with the given id"
method: POST
path: "/api/notebook/getElementById"
---

# fetches an element from the notebook with the given id

`POST /api/notebook/getElementById`

fetches an element from the notebook with the given id

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `elementId` string, required — the id of the element you want to retrieve

## Response `200`

Ok

- unknown

## Changes

> 8 revisions in range; 1 could not be searched.

- **2023-11-27** `c2d57e621a13` — 3 breaking, 3 warning, 1 info
  - the request property `elementId` became required
  - the `elementId` request property type/format changed from ``/`` to `string`/``
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `children` from the response with the `200` status
  - …3 more
- **2023-11-20** `ee7eb73634d2` — 1 warning, 2 info
  - deleted the `query` request parameter `elementId`
  - added optional request body
  - added the optional property `children` to the response with the `200` status
- **2023-10-27** `f8c8d4256dda` — 3 breaking, 3 info
  - added the new required `query` request parameter `elementId`
  - removed the request body
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - api operation id `getElementById` was added
  - …2 more

[Change history](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/changes/api/notebook/getElementById/post.md)

---

[API](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook.md) · [All operations](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decipad/create-and-modify-a-decipad-notebook/revisions/5f77d79b504f/schema)
