Get user session info
GET/userSession
Base URL: https://api.tinkermode.com
Get info about the current user session.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain API key of a user.
Responses
200 Successful retrieval of current user session.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
appId | string | Yes | read-only (server-generated) | App used to initiated this session. |
creationTime | string | No | read-only (server-generated); format: date-time | Time when session started. |
projectId | integer | Yes | read-only (server-generated) | Project associated with this session. |
userId | integer | Yes | read-only (server-generated) | ID of the user associated with this session. |
Response example
{
"appId": "controller_app",
"creationTime": "2019-12-17T19:53:44.626Z",
"projectId": 1264,
"userId": 1874
}401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Request failed because of denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
404 The requested userSession does not exist or is not accessible.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |