Account

The `Account` query is used to fetch the details of your team or individual account on DeepSource. It also provides mutations to configure account-wide settings.

The account query returns details about a DeepSource account (team or individual), including repositories, team members, reports, and suppressed issues.

account

Query:account Fetch the details of a single DeepSource account.

Arguments

FieldTypeDescription
loginString!The login or username to lookup the account by.
vcsProviderVCSProvider!VCS Provider of the account.

Sample Request

query {
  account(login: "deepsourcelabs", vcsProvider: GITHUB) {
    login
    id
    type
    vcsProvider
    vcsUrl
    avatarUrl
  }
}

Sample Response

{
  "data": {
    "account": {
      "login": "cyberdyne",
      "id": "QWNjb3VudDp6bWpws2I=",
      "type": "TEAM",
      "vcsProvider": "GITHUB",
      "vcsUrl": "https://github.com/cyberdyne",
      "avatarUrl": "https://user-avatars.deepsource.com/demo-image.png"
    }
  }
}

suppressedIssues

Query:account.suppressedIssues Fetch the list of issues suppressed at the team level.

Sample Request

query {
  account(login: "acme-corp", vcsProvider: GITHUB) {
    suppressedIssues(first: 10) {
      edges {
        node {
          id
          createdAt
          issue {
            shortcode
            title
          }
          user {
            email
          }
        }
      }
    }
  }
}

Sample Response

{
  "data": {
    "account": {
      "suppressedIssues": {
        "edges": [
          {
            "node": {
              "id": "VGVhbVN1cHByZXNzZWRJc3N1ZTox",
              "createdAt": "2024-01-15T10:30:00Z",
              "issue": {
                "shortcode": "TF-L0047",
                "title": "Deprecated attribute referenced"
              },
              "user": {
                "email": "admin@acme-corp.com"
              }
            }
          }
        ]
      }
    }
  }
}

Objects

Account

FieldTypeDescription
idString!The ID of the object.
loginString!The unique identifier (or username) of the account.
typeAccountType!The account type (individual or team).
vcsProviderVCSProvider!VCS Provider of the account.
vcsUrlStringURL for the account on the VCS Provider.
isBetaTesterBoolean!Whether the account is a beta tester.
avatarUrlStringURL for the account's public avatar.
subscriptionAccountSubscription!Subscription and billing details of the account.
reportsAccountReportsNamespace!Reports for this account.
reportReport!Deprecated. Use reports instead. The report associated with this account.
keyReportKey!The key of the report to fetch.
repositoriesRepositoryConnection!List of repositories that belong to the requested account
offsetIntNumber of items to skip from the beginning of the result set.
beforeStringReturns items before this cursor.
afterStringReturns items after this cursor.
firstIntReturns the first N items.
lastIntReturns the last N items.
membersTeamMemberConnection!Members of the team. This is an empty list for an individual account.
offsetIntNumber of items to skip from the beginning of the result set.
beforeStringReturns items before this cursor.
afterStringReturns items after this cursor.
firstIntReturns the first N items.
lastIntReturns the last N items.
suppressedIssuesTeamSuppressedIssueConnection!List of issues suppressed at the team level. See suppressIssueForTeam.
offsetIntNumber of items to skip from the beginning of the result set.
beforeStringReturns items before this cursor.
afterStringReturns items after this cursor.
firstIntReturns the first N items.
lastIntReturns the last N items.
issueShortcodeStringFilter by issue shortcode.

AccountSubscription

Subscription and billing details of an Account.

FieldTypeDescription
planAccountSubscriptionPlan!The plan associated with this account's subscription.

AccountConnection

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edgesAccountEdge!Contains the nodes in this connection.
totalCountIntTotal number of items in the connection.

AccountEdge

A Relay edge containing a Account and its cursor.

FieldTypeDescription
nodeAccountThe item at the end of the edge.
cursorString!A cursor for use in pagination.

On this page