{
  "info": {
    "name": "TitanShield API",
    "description": "Mobile and web application security testing API.\n\n## Authentication\nAll endpoints require an API token in the `X-API-Token` header.\nGet your token from [titanshield.tech/profile](https://titanshield.tech/profile).\n\n```bash\ncurl -H \"X-API-Token: YOUR_TOKEN\" https://titanshield.tech/api/...\n```\n\n## Quick Start\n```bash\n# 1. Upload and scan\ncurl -X POST https://titanshield.tech/run_analysis \\\n  -H \"X-API-Token: YOUR_TOKEN\" \\\n  -F \"platform=android\" -F \"type=sast\" -F \"mode=quick\" \\\n  -F \"input_file=@",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-API-Token",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{api_token}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://titanshield.tech"
    },
    {
      "key": "api_token",
      "value": "YOUR_API_TOKEN_HERE"
    }
  ],
  "item": [
    {
      "name": "Scanning",
      "item": [
        {
          "name": "Upload and scan a mobile app",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/run_analysis",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "run_analysis"
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "platform",
                  "type": "text",
                  "value": "android"
                },
                {
                  "key": "type",
                  "type": "text",
                  "value": "sast"
                },
                {
                  "key": "mode",
                  "type": "text",
                  "value": "quick"
                },
                {
                  "key": "input_file",
                  "type": "file",
                  "src": ""
                }
              ]
            }
          }
        },
        {
          "name": "Get scan status and results",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/analysis/123/status",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "analysis",
                "{id}",
                "status"
              ]
            }
          }
        },
        {
          "name": "Scan source code project",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/scan/source-code",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "scan",
                "source-code"
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": ""
                },
                {
                  "key": "platform_hint",
                  "type": "text",
                  "value": "auto"
                }
              ]
            }
          }
        },
        {
          "name": "Cancel a running scan",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/analysis/123/cancel",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "analysis",
                "{id}",
                "cancel"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Reports",
      "item": [
        {
          "name": "Download scan report",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/analysis/123/download/123",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "analysis",
                "{id}",
                "download",
                "{format}"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Store Scanning",
      "item": [
        {
          "name": "Scan app from Google Play Store",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/scan/play-store",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "scan",
                "play-store"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"package_id\": \"com.whatsapp\",\n  \"scan_mode\": \"quick\",\n  \"analysis_type\": \"sast\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Scan app from Apple App Store",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/scan/app-store",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "scan",
                "app-store"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"app_url\": \"https://apps.apple.com/app/signal/id874139669\",\n  \"bundle_id\": \"org.whispersystems.signal\",\n  \"scan_mode\": \"quick\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    }
  ]
}