# Create an AI Threat Builder Generation

Starts a generation from a public link, a CVE ID, a threat name, report text or a file. The request is checked at once;
the validation and the build run in the background, so poll the Location of the 202. A replay with the same
Idempotency-Key answers 200 with the first generation.

Errors, in the order of the checks: 401 when the access token is missing, expired, invalid or revoked; 429 over 25
requests a minute for the account and token; 403 when the token has no write:threat_library:ai_threat_builder scope
or the deployment is not the cloud; 401 without the SCV licence, and 402 in its grace period; 413 for a file over
10,485,760 bytes; 422 for an invalid field, named in errors with its code (required_without, max, max_links,
url_not_allowed, multiple_cves, oneof, auto_save_false, boolean, extension or format); 403 when the token creator
is no longer active in the account; 402 without the AI Threat Builder entitlement; 403 when the token creator cannot
create custom threats; 409 with error_code 4050 (a request
with this key is in progress) or 4048 (the key was used with another request); 429 with error_code 4047 (monthly
threat limit), 4049 (monthly chat limit) or 4046 (3 generations still running).

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