Scenario catalog
GET
/api/v1/scenario-catalog
const url = 'https://example.com/api/v1/scenario-catalog';const options = {method: 'GET', headers: {cookie: 'ttx_access_token=<ttx_access_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/scenario-catalog \ --cookie ttx_access_token=<ttx_access_token>TTX-Zone’s own scenarios, in the reader’s language when available.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ScenarioListResponse
object
items
required
Items
Array<object>
ScenarioSummaryA scenario as a library lists it (any level).
object
counts
required
ScenarioCounts
object
actors
Actors
integer
files
Files
integer
images
Images
integer
injects
Injects
integer
needs
Needs
integer
objectives
Objectives
integer
phases
Phases
integer
tags
Tags
integer
threat_actors
Threat Actors
integer
format_version
required
Format Version
integer
id
required
Id
string
language
required
Language
string
languages
required
Languages
Array<string>
name
required
Name
string
origin
Any of:
ActorOrigin
Where a simulated actor comes from – the actor library’s levels. An exercise’s cast only holds copies; the origin says of what.
string
null
usage_count
Usage Count
integer
Example
{ "items": [ { "counts": { "actors": 0, "files": 0, "images": 0, "injects": 0, "needs": 0, "objectives": 0, "phases": 0, "tags": 0, "threat_actors": 0 }, "origin": "system", "usage_count": 0 } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}