Reference
Whoami
Who is calling: the organization, environment and role the key or person has.
GET
bearerheader
AuthorizationBearer <token>The caller.
application/json- response
organization*stringenvironment*|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*RoleWhat 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|nullexpires*|Format
date-timecurl -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"}