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": "[email protected]",
    }
  }
}

Objects

User

Field Type Description
id ID! The ID of the object.
firstName String! First name of the user.
lastName String! Last name of the user.
email String! Email of the user.
isBetaTester Boolean! Whether the user is a beta tester.
accounts AccountConnection All 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.