# Download the Threat Details of an AI Threat Builder Generation

Downloads the details of the threat that the build made as a Markdown file named threat-details-<generation_id>.md.
It is ready when outputs of the generation lists THREAT_DETAILS. The file describes the threat as built; later
edits in the Threat Library do not change it. Errors are JSON, so check the status before saving the body.

Errors, in the order of the checks: 401 when the access token is missing, expired, invalid or revoked; 429 over 500
requests a minute for the account and token; 403 when the token has no read:threat_library:ai_threat_builder scope or
the deployment is not the cloud; 401 without the SCV licence (in its grace period this route still answers); 422 when
the generation_id is not a UUID; 404 for an unknown id, an id of another account, or a generation older than 7
days; 402 without the AI Threat Builder entitlement; 409 with error_code 4051 when THREAT_DETAILS is not in outputs:
the build step has not completed, or the generation failed before or in it.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The generation_id of the create response, a UUID.

Responses

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