Malwarebytes Licensing API

The Licensing API from Malwarebytes — 1 operation(s) for licensing.

OpenAPI Specification

malwarebytes-licensing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThreatDown Licensing API
  description: '# Introduction

    ThreatDown Nebula API lets you remotely manage the security of your `Endpoints`, analyze their `assets`, perform advanced analysis on `Detections` of `Malware`, `Ransomware`, `Exploits` and other threats found by the `ThreatDown Endpoint Agent`, and issue jobs like `Scan`, `Isolate`, `Remediate` or `Reboot`.


    To get started, you need a client credential pair (OAuth2 application). You can get a valid application through our sales team.


    You can retrieve your `client_id` and `client_secret` credentials pair in your Nebula console by going to the Integrate page in Nebula. You must also know your Nebula `account_id`.


    ## Cross-Origin Resource Sharing


    This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).

    This allows cross-domain communication from the browser.

    All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.


    ## Authentication


    ThreatDown API uses OAuth2, an open protocol to allow secure authorization in a simple and standard method from web, mobile, and desktop applications.

    See the Authentication section for specific information about supported grants.


    ## Access'' scopes


    When creating a new application, you can decide the level of access it has to your account''s data. This utility allows you to restrict the scope of access to your account''s data depending on the application''s needs. For example, if you only need to analyze detections found on your endpoint, the read scope will be enough to prevent that application from modifying data or issuing jobs.


    Specifying access scopes gives you more control over the access of your data. For example, you may want your company''s IT department to be able to isolate infected endpoints, while you may want your analysts to only read data for generating reports. To do so, you can create two applications using different scopes, and provide the right people with the right pair of credentials for programmatic access.


    ## User permissions


    The user associated with the client (i.e. the user that created the OAuth2 application) must have the required permissions to perform the requested operation. If the user does not have sufficient permissions, the API will respond with a `403 Forbidden` status code.

    For each API, you can find the required permissions in the AUTHORIZATIONS dropdown, under `user_permissions`.


    Some API requires additional permissions based on the data in the body:

    - **jobs** issue API requires `<entity>.performActions` depending on the `command` (\<entity\> can be `endpoints`, `softwareInventory`, or `detections`)

    - **notifications** create/update API requires `<entity>.view` depending on the `category`

    - **reports** create/update API requires `<entity>.view` depending on the `type`


    ## Rate Limiting


    ThreatDown API implements a rate-limiting mechanism to prevent abuse. The rate-limiting mechanism is implemented using a leaky bucket algorithm. Once you exceed the available limit, our server will respond with a `429` status code. You can throttle your requests and retry them later.


    The current limit, which you can see in the table below, has shown to be enough for most use cases. If you encounter `429` error codes, consider taking the following actions to minimize your APIs usage:


    - Subscribe to webhooks events instead of polling the API for reacting to changes.

    - Throttle the requests you send to the ThreatDown API for not exceeding the limit.

    - Batch requests when possible.

    - Contact us and request to increase the API quota for your application.


    Currently, the default available quota is `360` requests per minute.

    '
  version: 1.0.0
  x-logo:
    altText: ThreatDown logo
    url: https://assets.threatdown.com/hermes/ThreatDown_Horizontal_Navy.png
    backgroundColor: '#FFFFFF'
servers:
- url: https://api.threatdown.com
tags:
- name: Licensing
paths:
  /nebula/v1/license/amend:
    post:
      description: Make an amendment to an existing license. This API can be used to start email security trial
      summary: Amend a license
      security:
      - client_credentials:
        - write
      - user_permissions:
        - account.manage
      status:
        outage:
        - auth
      parameters:
      - name: authorization
        required: true
        in: header
        description: Authorization token
        schema:
          type: string
      - name: accountid
        required: true
        in: header
        description: Your Nebula account id (Ex. "9256034b-7967-4253-a5d9-260663e4fa4f")
        schema:
          type: string
          pattern: '[\da-fA-F]{8}-?[\da-fA-F]{4}-?[\da-fA-F]{4}-?[\da-fA-F]{4}-?[\da-fA-F]{12}$'
      requestBody:
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                request:
                  type: object
                  properties:
                    utm:
                      type: object
                      properties:
                        utm_campaign:
                          type: string
                        utm_source:
                          type: string
                        utm_medium:
                          type: string
                        utm_content:
                          type: string
                        utm_term:
                          type: string
                    source:
                      type: string
                    request_type:
                      type: string
                      enum:
                      - amend-eval
                    product_requested:
                      type: string
                      description: TDCOR-B, TDCORS-B, TDADV-B, TDADVS-B, MBCM-B, MBDNS-B, TDEMS-B
                    add_ons:
                      type: string
                      description: A comma separated list of add-ons SKUs
                    user:
                      type: object
                      properties:
                        email:
                          type: string
                          format: email
                        name:
                          type: string
                  required:
                  - request_type
                  - product_requested
                sf_account_id:
                  type: string
                account_name:
                  type: string
                license_key:
                  type: string
                trial_requested:
                  type: boolean
                lead_source:
                  type: string
                lead_source_detail:
                  type: string
                  examples:
                  - CTA Promo-Info Requested
                  - CTA Promo-Remind Me Later
                cancel_details:
                  type: string
                campaign_id:
                  type: string
                account_type:
                  type: string
                  enum:
                  - nebula
                  - oneview
              required:
              - trial_requested
              - account_type
      responses:
        '200':
          description: response schema
          content:
            application/json:
              schema: {}
      tags:
      - Licensing
      operationId: api.nebula.post.licensing.amend
components:
  securitySchemes:
    client_credentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /token
          scopes:
            read: Read data of your Nebula account
            write: Write data, such as groups, policies, exclusions. Create Webhook subscriptions
            execute: Issue jobs on your endpoints, like Scan, Reboot or Isolate.
    user_permissions:
      type: http
      scheme: bearer