DeepSource

DeepSource is a code-quality and security platform that performs static analysis, SCA, secrets detection, AI code review, and Autofix across repositories. Its developer platform is a GraphQL API at https://api.deepsource.com/graphql/ exposing repositories, analysis runs, issues, checks, analyzers, and quality-gate management, authenticated with a Personal Access Token Bearer credential.

4 APIs 0 Features
Code QualityStatic AnalysisCode ReviewSecurityGraphQL

APIs

DeepSource Repositories API

GraphQL queries and mutations over the `repository` and `account` root fields - fetch repository metadata, DSN, default branch, activation state, enabled analyzers, and activate...

DeepSource Issues API

GraphQL access to detected issues, issue occurrences, dependency vulnerability (SCA) occurrences, ignore rules, and team-level issue suppression across a repository's analysis r...

DeepSource Runs and Checks API

GraphQL queries over the `run` root field and a repository's `analysisRuns` - fetch analysis runs by UID or commit SHA, their per-analyzer checks, status, and introduced/resolve...

DeepSource Analyzers API

GraphQL queries over the `analyzer`/`analyzers` and `codeFormatter`/`codeFormatters` root fields - list available analyzers and code formatters, their metadata, shortcodes, and ...

Collections

GraphQL

DeepSource GraphQL API

The [DeepSource](https://deepsource.com) developer platform is a single **GraphQL API**

GRAPHQL

Pricing Plans

Deepsource Plans Pricing

3 plans

PLANS

Rate Limits

Deepsource Rate Limits

1 limits

RATE LIMITS

FinOps

Resources

👥
GitHubOrganization
GitHubOrganization
🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Documentation
Documentation
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: DeepSource GraphQL API
  version: '1.0'
request:
  auth:
    type: bearer
    token: '{{personalAccessToken}}'
items:
- info:
    name: Repositories
    type: folder
  items:
  - info:
      name: Authenticated user (viewer)
      type: http
    http:
      method: POST
      url: https://api.deepsource.com/graphql/
      headers:
      - name: Content-Type
        value: application/json
      - name: Accept
        value: application/json
      body:
        type: json
        data: '{"query":"query { viewer { email } }"}'
    docs: Fetch the authenticated user's profile via the viewer root field.
  - info:
      name: Fetch a repository
      type: http
    http:
      method: POST
      url: https://api.deepsource.com/graphql/
      headers:
      - name: Content-Type
        value: application/json
      - name: Accept
        value: application/json
      body:
        type: json
        data: '{"query":"query { repository(name: \"demo-go\", login: \"cyberdyne\", vcsProvider: GITHUB) { name defaultBranch
          dsn isPrivate isActivated } }"}'
    docs: Fetch repository metadata via the repository root field (name, login, vcsProvider).
  - info:
      name: Activate repository (mutation)
      type: http
    http:
      method: POST
      url: https://api.deepsource.com/graphql/
      headers:
      - name: Content-Type
        value: application/json
      - name: Accept
        value: application/json
      body:
        type: json
        data: '{"query":"mutation ($input: ActivateRepositoryInput!) { activateRepository(input: $input) { ok } }","variables":{"input":{"repositoryId":"UmVwb3NpdG9yeTox"}}}'
    docs: Activate DeepSource analysis on a repository via the activateRepository mutation.
- info:
    name: Issues
    type: folder
  items:
  - info:
      name: Repository runs and issues
      type: http
    http:
      method: POST
      url: https://api.deepsource.com/graphql/
      headers:
      - name: Content-Type
        value: application/json
      - name: Accept
        value: application/json
      body:
        type: json
        data: '{"query":"query { repository(name: \"my-app\", login: \"myorg\", vcsProvider: GITHUB) { analysisRuns { edges
          { node { runUid } } } issues { edges { node { issue { shortcode } } } } } }"}'
    docs: Fetch analysis runs and detected issues for a repository.
  - info:
      name: Dependency vulnerabilities (SCA)
      type: http
    http:
      method: POST
      url: https://api.deepsource.com/graphql/
      headers:
      - name: Content-Type
        value: application/json
      - name: Accept
        value: application/json
      body:
        type: json
        data: '{"query":"query { repository(name: \"my-app\", login: \"myorg\", vcsProvider: GITHUB) { dependencyVulnerabilityOccurrences(first:
          10) { edges { node { vulnerability { identifier severity cvssV3BaseScore } package { name ecosystem } } } } } }"}'
    docs: Fetch SCA dependency vulnerability occurrences for a repository.
- info:
    name: Analyzers
    type: folder
  items:
  - info:
      name: List analyzers
      type: http
    http:
      method: POST
      url: https://api.deepsource.com/graphql/
      headers:
      - name: Content-Type
        value: application/json
      - name: Accept
        value: application/json
      body:
        type: json
        data: '{"query":"query { analyzers { edges { node { name shortcode } } } }"}'
    docs: List available code analyzers via the analyzers root field.