# Create Threat

Start an AI Threat Generation

Initiates an AI-powered threat generation using one of the following input types:

  • Public URL
  • CVE ID
  • Threat name
  • Malware name
  • Report file

Request Processing

The initial request checks are performed synchronously. Input validation and threat generation are processed asynchronously in the background.

Upon successful acceptance, the API returns 202 Accepted with a Location header. Poll the URL provided in this header to track the generation status and retrieve the result.

Idempotency

Resubmitting an identical request with the same Idempotency-Key returns 200 OK with the original generation rather than creating a new one.

If the original request is still being processed or the key has already been used with a different request, the API returns 409 Conflict.

Field-Level Validation Errors (422)

When the API returns 422 Unprocessable Entity, the errors object identifies the invalid fields and their corresponding validation codes.

Validation CodeDescription
required_withoutA required field is missing when an alternative field is not provided.
maxThe field exceeds its maximum allowed value or length.
max_linksThe maximum number of allowed links has been exceeded.
url_not_allowedThe provided URL is not allowed.
multiple_cvesMultiple CVE IDs are not supported in a single request.
oneofThe provided value is not among the supported options.
auto_save_falseThe auto-save value must not be false.
booleanThe field must contain a valid boolean value.
extensionThe uploaded file has an unsupported extension.
formatThe provided value does not match the expected format.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
length ≤ 20000

A public link, a CVE ID, a threat name or report text; with a file, an optional note. Required when no file is sent.
At most 5 links, each with http or https and a public host. A list of 2 or more CVE IDs needs a file.

file

A threat document (.pdf, .docx or .md) of at most 10,485,760 bytes. Required when no input is sent.

string
enum
Defaults to INCLUDE_EXTERNAL_SOURCES

Whether the analysis can add external threat intelligence to the provided content.

Allowed:
string
length ≤ 244

The name of the saved threat, only with auto_save=true. Without it, the generated name is used.

boolean
Defaults to true

true saves the threat to the Threat Library when the build ends; false stops at READY.

Headers
string
^[A-Za-z0-9_.:-]{1,64}$

Retries with the same key and request within 24 hours return the first generation.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json