Reference

Whoami

Who is calling: the organization, environment and role the key or person has.

GET
/whoami

Authorization

bearer
headerAuthorizationBearer <token>

Response Body

The caller.

application/json
  1. response
organization*string
environment*|

The environment requests work in: the key's own, or the Skywake-Environment header for a key or person that may use every environment. Null when neither says.

role*Role

What a caller may do. read: files and history. write: also fork, commit and merge. admin: also keys, namespaces, protected branches and the audit log.

Value in"read""write""admin"
only*array<string>
key*|

The key's id, when a key is used.

user*|

The person, when the console calls.

email*string|null
expires*|
Formatdate-time
Example Request
curl -X GET 'https://example.com/v1/whoami'
Example Response
{  "organization": "string",  "environment": "string",  "role": "read",  "only": [    "string"  ],  "key": "string",  "user": "string",  "email": "string",  "expires": "2019-08-24T14:15:22Z"}