---
title: "POST /#X-Amz-Target=AmazonAthena.GetNotebookMetadata"
method: POST
path: "/#X-Amz-Target=AmazonAthena.GetNotebookMetadata"
---

# POST /#X-Amz-Target=AmazonAthena.GetNotebookMetadata

`POST /#X-Amz-Target=AmazonAthena.GetNotebookMetadata`

Retrieves notebook metadata for the specified notebook ID.

## Headers

- `X-Amz-Target` 'AmazonAthena.GetNotebookMetadata', required

## Request body

- GetNotebookMetadataInput
  - `NotebookId` string, required — The ID of the notebook whose metadata is to be retrieved.

## Response `200`

Success

- GetNotebookMetadataOutput
  - `NotebookMetadata` object — The metadata that is returned for the specified notebook ID.
    - `NotebookId` string — The notebook ID.
    - `Name` string — The name of the notebook.
    - `WorkGroup` string — The name of the Spark enabled workgroup to which the notebook belongs.
    - `CreationTime` string, date-time — The time when the notebook was created.
    - `Type` 'IPYNB' — The type of notebook. Currently, the only valid type is <code>IPYNB</code>.
    - `LastModifiedTime` string, date-time — The time when the notebook was last modified.

## Other responses

- `480` — InternalServerException
- `481` — InvalidRequestException
- `482` — TooManyRequestsException

---

[API](https://skmtc.net/aws/apis/athena.md) · [All operations](https://skmtc.net/aws/apis/athena/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/athena/versions/0aec8c61283d/schema)
