---
title: "GET /accounts/{AwsAccountId}/session-embed-url"
method: GET
path: "/accounts/{AwsAccountId}/session-embed-url"
---

# GET /accounts/{AwsAccountId}/session-embed-url

`GET /accounts/{AwsAccountId}/session-embed-url`

Generates a session URL and authorization code that you can use to embed the Amazon Amazon QuickSight console in your web server code. Use `GetSessionEmbedUrl` where you want to provide an authoring portal that allows users to create data sources, datasets, analyses, and dashboards. The users who access an embedded Amazon QuickSight console need belong to the author or admin security cohort. If you want to restrict permissions to some of these features, add a custom permissions profile to the user with the `[UpdateUser](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_UpdateUser.html)` API operation. Use `[RegisterUser](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_RegisterUser.html)` API operation to add a new user with a custom permission profile attached. For more information, see the following sections in the _Amazon QuickSight User Guide_:

*   [Embedding Analytics](https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html)
    
*   [Customizing Access to the Amazon QuickSight Console](https://docs.aws.amazon.com/quicksight/latest/user/customizing-permissions-to-the-quicksight-console.html)

## Path parameters

- `AwsAccountId` string, required

## Query parameters

- `entry-point` string
- `session-lifetime` integer
- `user-arn` string

## Response `200`

Success

- GetSessionEmbedUrlResponse
  - `EmbedUrl` string, password — A single-use URL that you can put into your server-side web page to embed your Amazon QuickSight session. This URL is valid for 5 minutes. The API operation provides the URL with an <code>auth_code</code> value that enables one (and only one) sign-on to a user session that is valid for 10 hours.
  - `Status` integer — The HTTP status of the request.
  - `RequestId` string — The Amazon Web Services request ID for this operation.

## Other responses

- `480` — AccessDeniedException
- `481` — InvalidParameterValueException
- `482` — ResourceExistsException
- `483` — ResourceNotFoundException
- `484` — ThrottlingException
- `485` — QuickSightUserNotFoundException
- `486` — SessionLifetimeInMinutesInvalidException
- `487` — UnsupportedUserEditionException
- `488` — InternalFailureException

---

[API](https://skmtc.net/aws/apis/quicksight.md) · [All operations](https://skmtc.net/aws/apis/quicksight/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/quicksight/revisions/2f2bbd7e70ca/schema)
