---
agentTools:
  projectIndex: https://hitmaps.readme.io/llms.txt
---

# Generate Spin

Generates a roulette spin

[block:api-header]
{
  "title": "API Versions"
}
[/block]

[block:parameters]
{
  "data": {
    "h-0": "Version",
    "h-1": "Changes",
    "0-0": "1.0",
    "0-1": "Initial"
  },
  "cols": 2,
  "rows": 1
}
[/block]

[block:callout]
{
  "type": "danger",
  "title": "In-Game Roulette API",
  "body": "This API is *different* than the API the in-game roulette uses.  Please note that the in-game roulette's API is **private** and is not available for public use."
}
[/block]

[block:callout]
{
  "type": "info",
  "title": "Criteria Filters",
  "body": "At least one of the following must be set to `true` in order to guarantee a valid roulette response:\n - `specificMelee`\n - `specificFirearms`\n - `specificAccients`\n - `genericKills`"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "HITMAPS™ Roulette",
    "version": "2022.07.22"
  },
  "servers": [
    {
      "url": "https://rouletteapi.hitmaps.com/api"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/spins": {
      "post": {
        "summary": "Generate Spin",
        "description": "Generates a roulette spin",
        "operationId": "spins",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "missionPool",
                  "criteriaFilters"
                ],
                "properties": {
                  "missionPool": {
                    "type": "array",
                    "description": "Format: `\"{game}|{location}|{mission-slug}\"`   (example: `\"hitman|paris|the-showstopper\"`)",
                    "items": {
                      "type": "string"
                    }
                  },
                  "criteriaFilters": {
                    "type": "object",
                    "description": "Filters for the roulette",
                    "properties": {
                      "specificDisguises": {
                        "type": "boolean",
                        "description": "`true` to receive a specific disguise for target kill conditions, or `false` for \"Any Disguise\""
                      },
                      "specificMelee": {
                        "type": "boolean",
                        "description": "`true` to include melee weapons (including Fiber Wire and Neck Snap). Only lethal melees on the map will be chosen; nothing from a user's potential inventory."
                      },
                      "specificFirearms": {
                        "type": "boolean",
                        "description": "`true` to include firearms.  Variants (silenced vs loud) may be selected as well."
                      },
                      "specificAccidents": {
                        "type": "boolean",
                        "description": "`true` to include specific accidents, such as \"Drowning\" or \"Electrocution\""
                      },
                      "uniqueTargetKills": {
                        "type": "boolean",
                        "description": "`true` to include unique target kills, such as \"Have the Kashmirian Snipe Dawood\""
                      },
                      "genericKills": {
                        "type": "boolean",
                        "description": "`true` to include generic kills, such as \"Firearm\" or \"Accident\""
                      },
                      "impossibleOrDifficultKills": {
                        "type": "boolean",
                        "description": "`true` to ignore the impossible/difficult conditions"
                      },
                      "additionalObjectives": {
                        "type": "boolean",
                        "description": "`true` to include additional objectives, such as the DNA Virus Prototype in World of Tomorrow"
                      },
                      "additionalObjectiveDisguises": {
                        "type": "boolean",
                        "description": "`true` to receive a specific disguise for the additional objectives"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"mission\": {\n        \"name\": \"World of Tomorrow\",\n        \"slug\": \"world-of-tomorrow\",\n        \"publicIdPrefix\": 3,\n        \"targets\": [\n            {\n                \"name\": \"Silvio Caruso\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/actors/world_of_tomorrow_silvio_caruso_briefing.jpg\"\n            },\n            {\n                \"name\": \"Francesca De Santis\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/actors/world_of_tomorrow_francesca_de_santis.jpg\"\n            }\n        ]\n    },\n    \"targetConditions\": [\n        {\n            \"target\": {\n                \"name\": \"Silvio Caruso\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/actors/world_of_tomorrow_silvio_caruso_briefing.jpg\"\n            },\n            \"killMethod\": {\n                \"name\": \"Fire\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/contractconditions/condition_killmethod_accident_burn.jpg\",\n                \"selectedVariant\": null\n            },\n            \"disguise\": {\n                \"name\": \"Waiter\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/unlockables/outfit_430e8743-df1a-4e88-955f-793bff2e3a6a_0.jpg\"\n            }\n        },\n        {\n            \"target\": {\n                \"name\": \"Francesca De Santis\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/actors/world_of_tomorrow_francesca_de_santis.jpg\"\n            },\n            \"killMethod\": {\n                \"name\": \"Electrocution\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/contractconditions/condition_killmethod_accident_electric.jpg\",\n                \"selectedVariant\": null\n            },\n            \"disguise\": {\n                \"name\": \"Store Clerk\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/unlockables/outfit_063fa6ef-9d58-4c3e-a4fd-70ce51a2f862_0.jpg\"\n            }\n        }\n    ],\n    \"additionalObjectives\": [\n        {\n            \"objective\": {\n                \"name\": \"DNA Specific Virus\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/contracts/octopus/contract_octopus_virus_objectivetile.jpg\"\n            },\n            \"completionMethod\": {\n                \"name\": \"Overheat the Virus\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/challenges/sapienza/story_virus_octopus.jpg\"\n            },\n            \"disguise\": {\n                \"name\": \"Bodyguard\",\n                \"tileUrl\": \"https://media.hitmaps.com/img/hitman3/unlockables/outfit_bf9629e0-f25c-4e71-9561-4a99a93a43e8_0.jpg\"\n            }\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "World of Tomorrow"
                        },
                        "slug": {
                          "type": "string",
                          "example": "world-of-tomorrow"
                        },
                        "publicIdPrefix": {
                          "type": "integer",
                          "example": 3,
                          "default": 0
                        },
                        "targets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Silvio Caruso"
                              },
                              "tileUrl": {
                                "type": "string",
                                "example": "https://media.hitmaps.com/img/hitman3/actors/world_of_tomorrow_silvio_caruso_briefing.jpg"
                              }
                            }
                          }
                        }
                      }
                    },
                    "targetConditions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "target": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Silvio Caruso"
                              },
                              "tileUrl": {
                                "type": "string",
                                "example": "https://media.hitmaps.com/img/hitman3/actors/world_of_tomorrow_silvio_caruso_briefing.jpg"
                              }
                            }
                          },
                          "killMethod": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Fire"
                              },
                              "tileUrl": {
                                "type": "string",
                                "example": "https://media.hitmaps.com/img/hitman3/contractconditions/condition_killmethod_accident_burn.jpg"
                              },
                              "selectedVariant": {}
                            }
                          },
                          "disguise": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Waiter"
                              },
                              "tileUrl": {
                                "type": "string",
                                "example": "https://media.hitmaps.com/img/hitman3/unlockables/outfit_430e8743-df1a-4e88-955f-793bff2e3a6a_0.jpg"
                              }
                            }
                          }
                        }
                      }
                    },
                    "additionalObjectives": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "objective": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "DNA Specific Virus"
                              },
                              "tileUrl": {
                                "type": "string",
                                "example": "https://media.hitmaps.com/img/hitman3/contracts/octopus/contract_octopus_virus_objectivetile.jpg"
                              }
                            }
                          },
                          "completionMethod": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Overheat the Virus"
                              },
                              "tileUrl": {
                                "type": "string",
                                "example": "https://media.hitmaps.com/img/hitman3/challenges/sapienza/story_virus_octopus.jpg"
                              }
                            }
                          },
                          "disguise": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Bodyguard"
                              },
                              "tileUrl": {
                                "type": "string",
                                "example": "https://media.hitmaps.com/img/hitman3/unlockables/outfit_bf9629e0-f25c-4e71-9561-4a99a93a43e8_0.jpg"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "62daefc1e930aa004c00e489:62daefc1e930aa004c00e497"
}
```