Version 4.0.24.16
Generate api and navigation tokens for a cookieless embed session
The generate tokens endpoint is used to create new tokens of type:
- Api token.
- Navigation token.
The generate tokens endpoint should be called every time the Looker client asks for a token (except for the
first time when the tokens returned by the acquire_session endpoint should be used).
Embed session expiration handling
This endpoint does NOT return an error when the embed session expires. This is to simplify processing
in the caller as errors can happen for non session expiration reasons. Instead the endpoint returns
the session time to live in the session_reference_token_ttl
response property. If this property
contains a zero, the embed session has expired.
Calls to this endpoint require Embedding to be enabled
Request
PUT
/embed/cookieless_session/generate_tokens
Expand HTTP Body definition...
body
Embed session reference token
Expand EmbedCookielessSessionGenerateTokens definition...
session_reference_token
string
Token referencing the embed session and is used to generate new authentication, navigation and api tokens.
navigation_token
string
Token used to load and navigate between Looker pages.
api_token
string
Token to used to call Looker APIs.
Response
200: Generated api and navigations tokens for the cookieless embed session.
navigation_token
string
Token used to load and navigate between Looker pages.
navigation_token_ttl
integer
Navigation token time to live in seconds.
api_token
string
Token to used to call Looker APIs.
api_token_ttl
integer
Api token time to live in seconds.
session_reference_token
string
Token referencing the embed session and is used to generate new authentication, navigation and api tokens.
session_reference_token_ttl
integer
Session reference token time to live in seconds. Note that this is the same as actual session.
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
message
lock
string
Error details
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link