Get Auth

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
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
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
string
Error details
documentation_url
string
Documentation link

404: Not Found

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

429: Too Many Requests

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

Examples

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.