Get Auth

Version 4.0.24.20 (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