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

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

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

Gets an authentication token and the URL at which the notebook can be accessed. During programmatic access, <code>CreatePresignedNotebookUrl</code> must be called every 10 minutes to refresh the authentication token. For information about granting programmatic access, see <a href="https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access">Grant programmatic access</a>.

## Headers

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

## Request body

- CreatePresignedNotebookUrlRequest
  - `SessionId` string, required — The session ID.

## Response `200`

Success

- CreatePresignedNotebookUrlResponse
  - `NotebookUrl` string, required — The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to the opened notebook.
  - `AuthToken` string, required — The authentication token for the notebook.
  - `AuthTokenExpirationTime` integer, required — The UTC epoch time when the authentication token expires.

## Other responses

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

---

[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)
