viewer

Lookup the details of the authenticated user.

Example Request

query {
  viewer {
    id
    firstName
    lastName
    email
  }
}

Example Response

{
  "data": {
    "viewer": {
      "id": "VXNlcjp6a2dkZXk=",
      "firstName": "John",
      "lastName": "Doe",
      "email": "[john.doe@example.com]",
    }
  }
}

Objects

User

FieldTypeDescription
idID!The ID of the object.
firstNameString!First name of the user.
lastNameString!Last name of the user.
emailString!Email of the user.
isBetaTesterBoolean!Whether the user is a beta tester.
accountsAccountConnectionAll the accounts associated with the user. This includes the team accounts the user is part of and the individual accounts they have added on DeepSource.