Skip to content

Retrieve the user key for the currently logged-in user

GET
/whoami
curl --request GET \
--url https://your-candig-domain/query/whoami

Retrieve the user key (usually the email) for the currently logged-in user

User info

Media typeapplication/json

Information about a user

object
key

The user key associated with this user. Usually an email

string
Examplegenerated
{
"key": "example"
}

Unspecified server error encountered

Media typeapplication/json
object
query
required

Error object container

object
error
required

Name/type of the error that occurred

string
message
required

Message explaining why the error occurred

string
Example
{
"query": {
"error": "ServerError",
"message": "An unspecified server error occurred"
}
}