Get Auth Stay organized with collections Save and categorize content based on your preferences.
Version 4.0.26.2 (latest)
Get API Session
Returns information about the current API session, such as which workspace is selected for the session.
Request
GET/session
Datatype
Description
Request
HTTP Request
Response
200: Auth
Datatype
Description
(object)
can
lock
object
Operations the current user is able to perform on this object
workspace_id
string
The id of active workspace for this session
sudo_user_id
lock
string
The id of the actual user in the case when this session represents one user sudo'ing as another
400: Bad Request
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
Examples
TypeScript
| https://github.com/looker-open-source/sdk-codegen/blob/main/examples/typescript/validateBranch.ts |
Python
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-09 UTC.