DefectDojo API

DefectDojo API as documented publicly: 20 operations. Contract generated from the documentation by API Evangelist (2026-11-15); not the provider's own document.

GitHub OpenAPI

Operations 20

POST / POST / #
POST /api/v2/api-tokens/revoke Revoking a token by key #
POST /api/v2/endpoints/{id}/generate_report/One Generating Reports #
POST /api/v2/engagements/{id}/generate_report/One Generating Reports #
GET /api/v2/export/manifest/ DefectDojo has two API endpoints that export data #
GET /api/v2/export/manifest/The GET /api/v2/export/manifest/The #
GET /api/v2/export/manifest/describes DefectDojo has two API endpoints that export data #
GET /api/v2/export/products/{id}/ DefectDojo has two API endpoints that export data #
GET /api/v2/export/products/{id}/streams DefectDojo has two API endpoints that export data #
GET /api/v2/findings List findings #
POST /api/v2/findings/generate_report DefectDojo can generate a findings report through the API in JSON , HTML , CSV , or Excel format. #
POST /api/v2/findings/generate_report/Every Generating Reports #
POST /api/v2/import-scan Importing via the API is performed via the import‑scan endpoint. #
POST /api/v2/oauth/token Service user tokens #
POST /api/v2/product_types/{id}/generate_report/One Generating Reports #
POST /api/v2/products/{id}/generate_report/One Generating Reports #
POST /api/v2/tests/{id}/generate_report/One Generating Reports #
GET /api/v2/tests/{testId} Poll the test to check import status and processing details. #
PATCH /api/v2/user_contact_infos/{id} Token expiry #
POST /api/v2/users/{id}/reset_api_token/before Reset API token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/defectdojo:defectdojo-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

defectdojo-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: DefectDojo API
  version: '2026-11-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-15: 20 operation(s) read from 2 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; DefectDojo has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 18
    pages-with-code: 2
    pages-read: 2
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-15'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.defectdojo.com/automation/api/api-v2-docs
  - https://docs.defectdojo.com/automation/api/product_export
paths:
  /:
    post:
      operationId: post
      tags:
      - Api
      summary: POST /
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST  -H "Authorization: Token <your-api-token>"  -H "Content-Type: application/json"  -d ''{"report_type": "CSV"}''  https://<your-instance>/api/v2/findings/generate_report/  -o
          findings.csv Response formats # report_type Content type Response JSON (default) application/json Report body in the response HTML text/html
          Rendered report page CSV text/csv File attachment Excel application/vnd.op'
  /api/v2/api-tokens/revoke:
    post:
      operationId: post_api_v2_api_tokens_revoke
      tags:
      - Api
      summary: Revoking a token by key
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2ApiTokensRevokeRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/endpoints/{id}/generate_report/One:
    post:
      operationId: post_api_v2_endpoints_id_generate_report_One
      tags:
      - Api
      summary: Generating Reports
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2EndpointsIdGenerateReportOneRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/engagements/{id}/generate_report/One:
    post:
      operationId: post_api_v2_engagements_id_generate_report_One
      tags:
      - Api
      summary: Generating Reports
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2EngagementsIdGenerateReportOneRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/export/manifest/:
    get:
      operationId: get_api_v2_export_manifest
      tags:
      - Api
      summary: DefectDojo has two API endpoints that export data
      description: Returns a JSON object describing the instance, its product types, products with counts, reference data and user information.
      x-source: https://docs.defectdojo.com/automation/api/product_export
      parameters:
      - name: max_file_bytes
        in: query
        required: false
        schema:
          type: string
        description: The file cap. An empty value uses the default of 10485760 (10 MiB). Must be an integer ≥ 0, otherwise 400 is returned.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV2ExportManifestResponse'
      x-evidence:
        kind: documentation
  /api/v2/export/manifest/The:
    get:
      operationId: get_api_v2_export_manifest_The
      tags:
      - Api
      summary: GET /api/v2/export/manifest/The
      x-source: https://docs.defectdojo.com/automation/api/product_export
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -H "Authorization: Token <your API key>"  https://dojo.example/api/v2/export/manifest/The response is one JSON object with
          these keys: Key What it holds schema The version of the export format. It is 1 . generated_at The time the server built the response,
          in ISO 8601. source The instance: version , install_id , url and locations_enabled . install_id is a random id for the instance. max_file_'
  /api/v2/export/manifest/describes:
    get:
      operationId: get_api_v2_export_manifest_describes
      tags:
      - Api
      summary: DefectDojo has two API endpoints that export data
      description: 'Describes the instance: its product types and products with their counts, the reference data, and the users.'
      x-source: https://docs.defectdojo.com/automation/api/product_export
      parameters:
      - name: max_file_bytes
        in: query
        required: false
        schema:
          type: string
        description: The file cap. An empty value uses the default of 10485760 (10 MiB). Must be an integer ≥ 0, otherwise 400 is returned.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV2ExportManifestDescribesResponse'
      x-evidence:
        kind: documentation
  /api/v2/export/products/{id}/:
    get:
      operationId: get_api_v2_export_products_id
      tags:
      - Api
      summary: DefectDojo has two API endpoints that export data
      description: Exports one product with its engagements, tests, findings, notes, files and risk acceptances as an NDJSON stream.
      x-source: https://docs.defectdojo.com/automation/api/product_export
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: max_file_bytes
        in: query
        required: false
        schema:
          type: string
        description: The file cap. An empty value uses the default of 10485760 (10 MiB). Must be an integer ≥ 0, otherwise 400 is returned.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV2ExportProductsIdResponse'
      x-evidence:
        kind: documentation
  /api/v2/export/products/{id}/streams:
    get:
      operationId: get_api_v2_export_products_id_streams
      tags:
      - Api
      summary: DefectDojo has two API endpoints that export data
      description: Same as GET /api/v2/export/products/{id}/ – returns the product stream. Documented as an endpoint that streams one product
        with its engagements, tests, findings, notes, files and risk acceptances.
      x-source: https://docs.defectdojo.com/automation/api/product_export
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: max_file_bytes
        in: query
        required: false
        schema:
          type: string
        description: The file cap. An empty value uses the default of 10485760 (10 MiB). Must be an integer ≥ 0, otherwise 400 is returned.
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/findings:
    get:
      operationId: get_api_v2_findings
      tags:
      - Api
      summary: List findings
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV2FindingsResponse'
      x-evidence:
        kind: documentation
  /api/v2/findings/generate_report:
    post:
      operationId: post_api_v2_findings_generate_report
      tags:
      - Api
      summary: DefectDojo can generate a findings report through the API in JSON , HTML , CSV , or Excel format.
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2FindingsGenerateReportRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV2FindingsGenerateReportResponse'
      x-evidence:
        kind: documentation
  /api/v2/findings/generate_report/Every:
    post:
      operationId: post_api_v2_findings_generate_report_Every
      tags:
      - Api
      summary: Generating Reports
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2FindingsGenerateReportEveryRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/import-scan:
    post:
      operationId: post_api_v2_import_scan
      tags:
      - Api
      summary: Importing via the API is performed via the import‑scan endpoint.
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2ImportScanRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV2ImportScanResponse'
      x-evidence:
        kind: documentation
  /api/v2/oauth/token:
    post:
      operationId: post_api_v2_oauth_token
      tags:
      - Api
      summary: Service user tokens
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/product_types/{id}/generate_report/One:
    post:
      operationId: post_api_v2_product_types_id_generate_report_One
      tags:
      - Api
      summary: Generating Reports
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2ProductTypesIdGenerateReportOneRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/products/{id}/generate_report/One:
    post:
      operationId: post_api_v2_products_id_generate_report_One
      tags:
      - Api
      summary: Generating Reports
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2ProductsIdGenerateReportOneRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/tests/{id}/generate_report/One:
    post:
      operationId: post_api_v2_tests_id_generate_report_One
      tags:
      - Api
      summary: Generating Reports
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2TestsIdGenerateReportOneRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/tests/{testId}:
    get:
      operationId: get_api_v2_tests_testId
      tags:
      - Api
      summary: Poll the test to check import status and processing details.
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: testId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV2TestsTestidResponse'
      x-evidence:
        kind: documentation
  /api/v2/user_contact_infos/{id}:
    patch:
      operationId: patch_api_v2_user_contact_infos_id
      tags:
      - Api
      summary: Token expiry
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchApiV2UserContactInfosIdRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v2/users/{id}/reset_api_token/before:
    post:
      operationId: post_api_v2_users_id_reset_api_token_before
      tags:
      - Api
      summary: Reset API token
      x-source: https://docs.defectdojo.com/automation/api/api-v2-docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostRequest:
      type: object
      properties:
        report_type:
          type: string
    PostApiV2ApiTokensRevokeRequest:
      type: object
      properties:
        key:
          type: string
          description: Token to revoke
      required:
      - key
    PostApiV2EndpointsIdGenerateReportOneRequest:
      type: object
      properties:
        report_type:
          type: string
        include_finding_notes:
          type: boolean
        include_finding_images:
          type: boolean
        include_executive_summary:
          type: boolean
        include_table_of_contents:
          type: boolean
    PostApiV2EngagementsIdGenerateReportOneRequest:
      type: object
      properties:
        report_type:
          type: string
        include_finding_notes:
          type: boolean
        include_finding_images:
          type: boolean
        include_executive_summary:
          type: boolean
        include_table_of_contents:
          type: boolean
    GetApiV2ExportManifestResponse:
      type: object
      properties:
        schema:
          type: integer
          description: The version of the export format (always 1).
        generated_at:
          type: string
          description: ISO‑8601 timestamp when the response was built.
        source:
          type: object
          description: 'Instance information: version, install_id, url and locations_enabled.'
        max_file_bytes:
          type: integer
          description: The file cap used for the export.
        token:
          type: object
          description: 'The caller: username, is_superuser and expires_at.'
        scan_types:
          type: array
          description: List of scan types of every test on the instance, sorted.
        reference:
          type: object
          description: Lookup tables referenced by id (sla_configurations, development_environments, …, users).
        product_types:
          type: array
          description: One entry per product type with id, name and counts.
        products:
          type: array
          description: One entry per product with id, name, prod_type and counts plus description, tags, business_criticality, sla_configuration,
            product_manager, technical_contact, team_manager.
        totals:
          type: object
          description: Aggregated counts of all products, product types and products.
    GetApiV2ExportManifestDescribesResponse:
      type: object
      properties:
        schema:
          type: integer
          description: The version of the export format.
        generated_at:
          type: string
          description: ISO‑8601 timestamp when the response was built.
        source:
          type: object
          description: Instance information.
        product_types:
          type: array
          description: Product type entries with counts.
        products:
          type: array
          description: Product entries with counts.
        reference:
          type: object
          description: Reference lookup tables.
    GetApiV2ExportProductsIdResponse:
      type: object
      properties:
        type:
          type: string
          description: Line type (header, engagement, test, finding, risk_acceptance, end).
        schema:
          type: integer
          description: Schema version (always 1).
        generated_at:
          type: string
          description: Timestamp when the export was generated.
        max_file_bytes:
          type: integer
          description: File cap used for this export.
        source:
          type: object
          description: Instance information (same as manifest).
        product:
          type: object
          description: Product object as returned by /api/v2/products/, with nested prod_type and without findings_count/list.
        engagement:
          type: object
          description: Engagement object as returned by /api/v2/engagements/, with nested files and risk_acceptance ids.
        test:
          type: object
          description: Test object as returned by /api/v2/tests/, with nested files.
        finding:
          type: object
          description: Finding object as returned by /api/v2/findings/, with endpoints, files, risk_acceptances, request_response_pairs expanded.
        risk_acceptance:
          type: object
          description: Risk acceptance object as returned by /api/v2/risk_acceptance/, with engagement id, notes nested, and proof details.
        end:
          type: object
          description: End line containing counts of objects written.
    GetApiV2FindingsResponse:
      type: object
      properties:
        count:
          type: integer
        next:
          type: string
        previous:
          type: string
        results:
          type: array
    PostApiV2FindingsGenerateReportRequest:
      type: object
      properties:
        report_type:
          type: string
          description: One of JSON , HTML , CSV , Excel . Default JSON.
        include_finding_notes:
          type: boolean
          description: Include each finding’s notes.
        include_finding_images:
          type: boolean
          description: Include images attached to findings.
        include_executive_summary:
          type: boolean
          description: Include an executive summary section.
        include_table_of_contents:
          type: boolean
          description: Include a table of contents.
    PostApiV2FindingsGenerateReportResponse:
      type: object
      properties:
        report_type:
          type: string
          description: Determines content‑type of the response (application/json, text/html, text/csv, or Excel MIME type).
    PostApiV2FindingsGenerateReportEveryRequest:
      type: object
      properties:
        report_type:
          type: string
          description: One of JSON, HTML, CSV, Excel
        include_finding_notes:
          type: boolean
        include_finding_images:
          type: boolean
        include_executive_summary:
          type: boolean
        include_table_of_contents:
          type: boolean
    PostApiV2ImportScanRequest:
      type: object
      properties:
        minimum_severity:
          type: string
          description: e.g., 'Info'.
        active:
          type: boolean
          description: Whether imported findings are active.
        verified:
          type: boolean
          description: Whether imported findings are verified.
        scan_type:
          type: string
          description: e.g., 'ZAP Scan'.
        test_title:
          type: string
          description: Title for the created test.
        product_type_name:
          type: string
          description: Name of the product type (Organization).
        product_name:
          type: string
          description: Name of the product (Asset).
        engagement_name:
          type: string
          description: Name of the engagement.
        auto_create_context:
          type: boolean
          description: Create missing Asset, engagement, and environment if needed.
        engagement:
          type: integer
          description: ID of an existing engagement to import into.
        file:
          type: string
          description: The scan report file (multipart/form‑data).
        background_import:
          type: boolean
          description: If true, import runs asynchronously and returns a background import response.
      required:
      - file
    PostApiV2ImportScanResponse:
      type: object
      properties:
        background_import:
          type: boolean
          description: True when the import is processed asynchronously.
        status:
          type: string
          description: Lifecycle status of the test (Processing, Processed, Failed, etc.).
        findings_parsed:
          type: integer
          description: Number of findings read from the report.
        test_id:
          type: integer
          description: Identifier of the created test (used for polling).
    PostApiV2ProductTypesIdGenerateReportOneRequest:
      type: object
      properties:
        report_type:
          type: string
        include_finding_notes:
          type: boolean
        include_finding_images:
          type: boolean
        include_executive_summary:
          type: boolean
        include_table_of_contents:
          type: boolean
    PostApiV2ProductsIdGenerateReportOneRequest:
      type: object
      properties:
        report_type:
          type: string
        include_finding_notes:
          type: boolean
        include_finding_images:
          type: boolean
        include_executive_summary:
          type: boolean
        include_table_of_contents:
          type: boolean
    PostApiV2TestsIdGenerateReportOneRequest:
      type: object
      properties:
        report_type:
          type: string
        include_finding_notes:
          type: boolean
        include_finding_images:
          type: boolean
        include_executive_summary:
          type: boolean
        include_table_of_contents:
          type: boolean
    GetApiV2TestsTestidResponse:
      type: object
      properties:
        status:
          type: string
          description: Current status of the test (Processing, Processed, Failed, etc.).
        processing:
          type: boolean
          description: True while the import is still being processed.
        findings_parsed:
          type: integer
          description: Number of findings parsed from the report.
        message:
          type: string
          description: Human‑readable status message.
    PatchApiV2UserContactInfosIdRequest:
      type: object
      properties:
        token_expiry:
          type: string
          description: ISO‑8601 datetime or null
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
security:
- apiKey: []
tags:
- name: Api