{
  "info": {
    "_postman_id": "3b157b1c-f422-5f80-ac94-4784c64971d6",
    "name": "DefAI API",
    "description": "Every request here is a documented example, verified against the API. Base URL: https://defai.austriaeast.cloudapp.azure.com. No API key: never put one in an app. Guide: https://defai.austriaeast.cloudapp.azure.com/guide/ios-quickstart. Run the collection to check each response against what the docs promise. The feedback request queues a real review item, so run it sparingly.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://defai.austriaeast.cloudapp.azure.com"
    },
    {
      "key": "analysis_id",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Scan messages",
      "item": [
        {
          "name": "scan-scam",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/analyze/message",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "analyze",
                "message"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"Emirates NBD: Your account is suspended. Share the OTP sent to your phone and verify at http://enbd-secure-verify.top/login to avoid closure.\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\",\n  \"sender\": \"ENBD-Alert\",\n  \"locale\": \"en-AE\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "A bank-impersonation SMS asking for the one-time code, with a lookalike link. Caught."
          },
          "response": [
            {
              "name": "200 — scan-scam",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/analyze/message",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "analyze",
                    "message"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"Emirates NBD: Your account is suspended. Share the OTP sent to your phone and verify at http://enbd-secure-verify.top/login to avoid closure.\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\",\n  \"sender\": \"ENBD-Alert\",\n  \"locale\": \"en-AE\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"analysis_id\": \"602e757d-6a99-47d7-8740-6670046c875d\",\n  \"risk_score\": 1.0,\n  \"risk_level\": \"scam\",\n  \"category\": \"otp_phishing\",\n  \"explanation\": \"Matched 2 scam pattern(s): Claims your bank account/card will be blocked or suspended; Asks you to share an OTP/verification code — legitimate services never do | Suspicious link(s): enbd-secure-verify.top (high-abuse TLD .top, brand name combined with hyphens/phishing keywords (lookalike domain)) | Impersonation: claims to be Emirates NBD but links to non-official domain(s): enbd-secure-verify.top (official: emiratesnbd.com); sender ID also does not match the official sender | Verification: identity claim contradicted by link evidence\",\n  \"recommended_action\": \"This is almost certainly a scam. Do not respond. Block the sender and report it to your bank/authorities if you shared anything.\",\n  \"matched_rules\": [\n    {\n      \"id\": \"bank-account-suspension\",\n      \"category\": \"bank_impersonation\",\n      \"description\": \"Claims your bank account/card will be blocked or suspended\",\n      \"weight\": 0.55\n    },\n    {\n      \"id\": \"otp-share-request\",\n      \"category\": \"otp_phishing\",\n      \"description\": \"Asks you to share an OTP/verification code — legitimate services never do\",\n      \"weight\": 0.9\n    }\n  ],\n  \"urls\": [\n    {\n      \"url\": \"http://enbd-secure-verify.top/login\",\n      \"domain\": \"enbd-secure-verify.top\",\n      \"suspicious\": true,\n      \"reasons\": [\n        \"high-abuse TLD .top\",\n        \"brand name combined with hyphens/phishing keywords (lookalike domain)\"\n      ],\n      \"score\": 0.85,\n      \"listed_by\": []\n    }\n  ],\n  \"scores\": {\n    \"rule_score\": 0.955,\n    \"url_score\": 0.85,\n    \"llm_score\": null,\n    \"llm_used\": false\n  },\n  \"llm_verdict\": null,\n  \"verification\": {\n    \"claims\": [\n      {\n        \"entity_id\": \"emirates_nbd\",\n        \"entity_name\": \"Emirates NBD\",\n        \"category\": \"bank_impersonation\",\n        \"status\": \"contradicted\",\n        \"evidence\": [\n          \"claims to be Emirates NBD but links to non-official domain(s): enbd-secure-verify.top (official: emiratesnbd.com)\",\n          \"sender ID also does not match the official sender\"\n        ],\n        \"is_claim\": true\n      }\n    ],\n    \"web_findings\": [],\n    \"domain_ages\": {},\n    \"score_adjustment\": 0.35,\n    \"notes\": [\n      \"identity claim contradicted by link evidence\"\n    ]\n  },\n  \"review_status\": \"auto\",\n  \"redaction_applied\": false,\n  \"created_at\": \"2026-11-22T12:33:01.997240Z\",\n  \"detected_language\": \"en\",\n  \"coverage\": \"full\",\n  \"coverage_note\": null,\n  \"processing\": {\n    \"local_stages\": [\n      \"redaction\",\n      \"rule engine\",\n      \"URL heuristics\",\n      \"identity checks (local registry)\"\n    ],\n    \"external_stages\": [],\n    \"external_consented\": false,\n    \"notes\": []\n  }\n}"
            },
            {
              "name": "429 — error-rate-limit",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/analyze/message",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "analyze",
                    "message"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"Your parcel could not be delivered.\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"detail\": \"rate limit exceeded, slow down\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));",
                  "pm.test(\"risk_level is one of ['scam', 'likely_scam']\", () => pm.expect([\"scam\", \"likely_scam\"]).to.include(pm.response.json().risk_level));",
                  "pm.collectionVariables.set(\"analysis_id\", pm.response.json().analysis_id);"
                ]
              }
            }
          ]
        },
        {
          "name": "scan-scam-ar",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/analyze/message",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "analyze",
                "message"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"بنك الإمارات دبي الوطني: تم إيقاف حسابك. أرسل لنا رمز التحقق الذي وصلك وحدّث بياناتك على http://enbd-secure-verify.top/login\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\",\n  \"sender\": \"ENBD-Alert\",\n  \"locale\": \"ar-AE\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "The same scam in Arabic."
          },
          "response": [
            {
              "name": "200 — scan-scam-ar",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/analyze/message",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "analyze",
                    "message"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"بنك الإمارات دبي الوطني: تم إيقاف حسابك. أرسل لنا رمز التحقق الذي وصلك وحدّث بياناتك على http://enbd-secure-verify.top/login\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\",\n  \"sender\": \"ENBD-Alert\",\n  \"locale\": \"ar-AE\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"analysis_id\": \"f6809754-0fd9-4ec9-b87f-a413c91b7809\",\n  \"risk_score\": 1.0,\n  \"risk_level\": \"scam\",\n  \"category\": \"otp_phishing\",\n  \"explanation\": \"Matched 2 scam pattern(s): Asks you to share an OTP / verification code (Arabic); Claims your account/card is suspended or blocked (Arabic) | Suspicious link(s): enbd-secure-verify.top (high-abuse TLD .top, brand name combined with hyphens/phishing keywords (lookalike domain)) | Impersonation: claims to be Emirates NBD but links to non-official domain(s): enbd-secure-verify.top (official: emiratesnbd.com); sender ID also does not match the official sender | Verification: identity claim contradicted by link evidence\",\n  \"recommended_action\": \"This is almost certainly a scam. Do not respond. Block the sender and report it to your bank/authorities if you shared anything.\",\n  \"matched_rules\": [\n    {\n      \"id\": \"ar-otp-share-request\",\n      \"category\": \"otp_phishing\",\n      \"description\": \"Asks you to share an OTP / verification code (Arabic)\",\n      \"weight\": 0.9\n    },\n    {\n      \"id\": \"ar-bank-account-suspension\",\n      \"category\": \"bank_impersonation\",\n      \"description\": \"Claims your account/card is suspended or blocked (Arabic)\",\n      \"weight\": 0.55\n    }\n  ],\n  \"urls\": [\n    {\n      \"url\": \"http://enbd-secure-verify.top/login\",\n      \"domain\": \"enbd-secure-verify.top\",\n      \"suspicious\": true,\n      \"reasons\": [\n        \"high-abuse TLD .top\",\n        \"brand name combined with hyphens/phishing keywords (lookalike domain)\"\n      ],\n      \"score\": 0.85,\n      \"listed_by\": []\n    }\n  ],\n  \"scores\": {\n    \"rule_score\": 0.955,\n    \"url_score\": 0.85,\n    \"llm_score\": null,\n    \"llm_used\": false\n  },\n  \"llm_verdict\": null,\n  \"verification\": {\n    \"claims\": [\n      {\n        \"entity_id\": \"emirates_nbd\",\n        \"entity_name\": \"Emirates NBD\",\n        \"category\": \"bank_impersonation\",\n        \"status\": \"contradicted\",\n        \"evidence\": [\n          \"claims to be Emirates NBD but links to non-official domain(s): enbd-secure-verify.top (official: emiratesnbd.com)\",\n          \"sender ID also does not match the official sender\"\n        ],\n        \"is_claim\": true\n      }\n    ],\n    \"web_findings\": [],\n    \"domain_ages\": {},\n    \"score_adjustment\": 0.35,\n    \"notes\": [\n      \"identity claim contradicted by link evidence\"\n    ]\n  },\n  \"review_status\": \"auto\",\n  \"redaction_applied\": false,\n  \"created_at\": \"2026-11-22T12:33:02.018460Z\",\n  \"detected_language\": \"mixed\",\n  \"coverage\": \"full\",\n  \"coverage_note\": null,\n  \"processing\": {\n    \"local_stages\": [\n      \"redaction\",\n      \"rule engine\",\n      \"URL heuristics\",\n      \"identity checks (local registry)\"\n    ],\n    \"external_stages\": [],\n    \"external_consented\": false,\n    \"notes\": []\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));",
                  "pm.test(\"risk_level is one of ['scam', 'likely_scam']\", () => pm.expect([\"scam\", \"likely_scam\"]).to.include(pm.response.json().risk_level));"
                ]
              }
            }
          ]
        },
        {
          "name": "scan-suspicious",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/analyze/message",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "analyze",
                "message"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"Your parcel could not be delivered. Update your address here: https://bit.ly/3xYz12\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\",\n  \"locale\": \"en-AE\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Uncertain: a delivery notice behind a link shortener. Not enough to call it a scam, too much to call it safe."
          },
          "response": [
            {
              "name": "200 — scan-suspicious",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/analyze/message",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "analyze",
                    "message"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"Your parcel could not be delivered. Update your address here: https://bit.ly/3xYz12\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\",\n  \"locale\": \"en-AE\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"analysis_id\": \"abd0c005-8956-421a-850b-30ae72abb519\",\n  \"risk_score\": 0.4,\n  \"risk_level\": \"suspicious\",\n  \"category\": \"delivery_scam\",\n  \"explanation\": \"Matched 1 scam pattern(s): Asks to confirm address via a link for a pending delivery | Suspicious link(s): bit.ly (link shortener hides the real destination)\",\n  \"recommended_action\": \"Be cautious. Do not click links or share codes until you verify the sender through official channels.\",\n  \"matched_rules\": [\n    {\n      \"id\": \"delivery-address-confirm\",\n      \"category\": \"delivery_scam\",\n      \"description\": \"Asks to confirm address via a link for a pending delivery\",\n      \"weight\": 0.4\n    }\n  ],\n  \"urls\": [\n    {\n      \"url\": \"https://bit.ly/3xYz12\",\n      \"domain\": \"bit.ly\",\n      \"suspicious\": true,\n      \"reasons\": [\n        \"link shortener hides the real destination\"\n      ],\n      \"score\": 0.4,\n      \"listed_by\": []\n    }\n  ],\n  \"scores\": {\n    \"rule_score\": 0.4,\n    \"url_score\": 0.4,\n    \"llm_score\": null,\n    \"llm_used\": false\n  },\n  \"llm_verdict\": null,\n  \"verification\": {\n    \"claims\": [],\n    \"web_findings\": [],\n    \"domain_ages\": {},\n    \"score_adjustment\": 0.0,\n    \"notes\": []\n  },\n  \"review_status\": \"needs_review\",\n  \"redaction_applied\": false,\n  \"created_at\": \"2026-11-22T12:33:02.021113Z\",\n  \"detected_language\": \"en\",\n  \"coverage\": \"full\",\n  \"coverage_note\": null,\n  \"processing\": {\n    \"local_stages\": [\n      \"redaction\",\n      \"rule engine\",\n      \"URL heuristics\",\n      \"identity checks (local registry)\"\n    ],\n    \"external_stages\": [],\n    \"external_consented\": false,\n    \"notes\": []\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));",
                  "pm.test(\"risk_level is one of ['suspicious']\", () => pm.expect([\"suspicious\"]).to.include(pm.response.json().risk_level));"
                ]
              }
            }
          ]
        },
        {
          "name": "scan-limited-coverage",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/analyze/message",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "analyze",
                "message"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"Votre colis est en attente. Veuillez payer les frais de livraison pour le recevoir.\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Uncertain: a language the rules cannot read. A low score here is NOT evidence of safety — show coverage_note."
          },
          "response": [
            {
              "name": "200 — scan-limited-coverage",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/analyze/message",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "analyze",
                    "message"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"Votre colis est en attente. Veuillez payer les frais de livraison pour le recevoir.\",\n  \"source_type\": \"sms\",\n  \"source_app\": \"ios\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"analysis_id\": \"c34cacb4-fd43-4907-937d-0c3726238602\",\n  \"risk_score\": 0.0,\n  \"risk_level\": \"safe\",\n  \"category\": \"none\",\n  \"explanation\": \"No scam indicators found. | No detection coverage for French. This message was NOT analyzed — the absence of warnings does not mean it is safe.\",\n  \"recommended_action\": \"No detection coverage for French. This message was NOT analyzed — the absence of warnings does not mean it is safe. No indicators were detected by the checks currently available. This is not a guarantee — stay alert and verify anything unexpected through official channels.\",\n  \"matched_rules\": [],\n  \"urls\": [],\n  \"scores\": {\n    \"rule_score\": 0.0,\n    \"url_score\": 0.0,\n    \"llm_score\": null,\n    \"llm_used\": false\n  },\n  \"llm_verdict\": null,\n  \"verification\": {\n    \"claims\": [],\n    \"web_findings\": [],\n    \"domain_ages\": {},\n    \"score_adjustment\": 0.0,\n    \"notes\": []\n  },\n  \"review_status\": \"auto\",\n  \"redaction_applied\": false,\n  \"created_at\": \"2026-11-22T12:33:02.023441Z\",\n  \"detected_language\": \"fr\",\n  \"coverage\": \"none\",\n  \"coverage_note\": \"No detection coverage for French. This message was NOT analyzed — the absence of warnings does not mean it is safe.\",\n  \"processing\": {\n    \"local_stages\": [\n      \"redaction\",\n      \"rule engine\",\n      \"URL heuristics\",\n      \"identity checks (local registry)\"\n    ],\n    \"external_stages\": [],\n    \"external_consented\": false,\n    \"notes\": []\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));",
                  "pm.test(\"coverage is one of ['limited', 'none']\", () => pm.expect([\"limited\", \"none\"]).to.include(pm.response.json().coverage));"
                ]
              }
            }
          ]
        },
        {
          "name": "batch",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/analyze/batch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "analyze",
                "batch"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"messages\": [\n    {\n      \"text\": \"Your Careem ride with Omar is arriving in 3 minutes.\",\n      \"source_type\": \"sms\",\n      \"source_app\": \"ios\"\n    },\n    {\n      \"text\": \"Your parcel could not be delivered. Update your address here: https://bit.ly/3xYz12\",\n      \"source_type\": \"sms\",\n      \"source_app\": \"ios\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Two messages in one round trip (up to 50). Each item succeeds or fails on its own."
          },
          "response": [
            {
              "name": "200 — batch",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/analyze/batch",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "analyze",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"messages\": [\n    {\n      \"text\": \"Your Careem ride with Omar is arriving in 3 minutes.\",\n      \"source_type\": \"sms\",\n      \"source_app\": \"ios\"\n    },\n    {\n      \"text\": \"Your parcel could not be delivered. Update your address here: https://bit.ly/3xYz12\",\n      \"source_type\": \"sms\",\n      \"source_app\": \"ios\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"results\": [\n    {\n      \"index\": 0,\n      \"analysis\": {\n        \"analysis_id\": \"a5159a0a-f81a-4422-9777-cbe5de20ddd4\",\n        \"risk_score\": 0.0,\n        \"risk_level\": \"safe\",\n        \"category\": \"none\",\n        \"explanation\": \"No scam indicators found.\",\n        \"recommended_action\": \"No indicators were detected by the checks currently available. This is not a guarantee — stay alert and verify anything unexpected through official channels.\",\n        \"matched_rules\": [],\n        \"urls\": [],\n        \"scores\": {\n          \"rule_score\": 0.0,\n          \"url_score\": 0.0,\n          \"llm_score\": null,\n          \"llm_used\": false\n        },\n        \"llm_verdict\": null,\n        \"verification\": {\n          \"claims\": [],\n          \"web_findings\": [],\n          \"domain_ages\": {},\n          \"score_adjustment\": 0.0,\n          \"notes\": []\n        },\n        \"review_status\": \"auto\",\n        \"redaction_applied\": false,\n        \"created_at\": \"2026-11-22T12:33:02.025703Z\",\n        \"detected_language\": \"en\",\n        \"coverage\": \"full\",\n        \"coverage_note\": null,\n        \"processing\": {\n          \"local_stages\": [\n            \"redaction\",\n            \"rule engine\",\n            \"URL heuristics\",\n            \"identity checks (local registry)\"\n          ],\n          \"external_stages\": [],\n          \"external_consented\": false,\n          \"notes\": []\n        }\n      },\n      \"error\": null\n    },\n    {\n      \"index\": 1,\n      \"analysis\": {\n        \"analysis_id\": \"bb74f6a1-d0d0-4080-bcd6-c96a860dd71a\",\n        \"risk_score\": 0.4,\n        \"risk_level\": \"suspicious\",\n        \"category\": \"delivery_scam\",\n        \"explanation\": \"Matched 1 scam pattern(s): Asks to confirm address via a link for a pending delivery | Suspicious link(s): bit.ly (link shortener hides the real destination)\",\n        \"recommended_action\": \"Be cautious. Do not click links or share codes until you verify the sender through official channels.\",\n        \"matched_rules\": [\n          {\n            \"id\": \"delivery-address-confirm\",\n            \"category\": \"delivery_scam\",\n            \"description\": \"Asks to confirm address via a link for a pending delivery\",\n            \"weight\": 0.4\n          }\n        ],\n        \"urls\": [\n          {\n            \"url\": \"https://bit.ly/3xYz12\",\n            \"domain\": \"bit.ly\",\n            \"suspicious\": true,\n            \"reasons\": [\n              \"link shortener hides the real destination\"\n            ],\n            \"score\": 0.4,\n            \"listed_by\": []\n          }\n        ],\n        \"scores\": {\n          \"rule_score\": 0.4,\n          \"url_score\": 0.4,\n          \"llm_score\": null,\n          \"llm_used\": false\n        },\n        \"llm_verdict\": null,\n        \"verification\": {\n          \"claims\": [],\n          \"web_findings\": [],\n          \"domain_ages\": {},\n          \"score_adjustment\": 0.0,\n          \"notes\": []\n        },\n        \"review_status\": \"needs_review\",\n        \"redaction_applied\": false,\n        \"created_at\": \"2026-11-22T12:33:02.026764Z\",\n        \"detected_language\": \"en\",\n        \"coverage\": \"full\",\n        \"coverage_note\": null,\n        \"processing\": {\n          \"local_stages\": [\n            \"redaction\",\n            \"rule engine\",\n            \"URL heuristics\",\n            \"identity checks (local registry)\"\n          ],\n          \"external_stages\": [],\n          \"external_consented\": false,\n          \"notes\": []\n        }\n      },\n      \"error\": null\n    }\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Links",
      "item": [
        {
          "name": "virustotal-without-consent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/links/virustotal",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "links",
                "virustotal"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"http://enbd-secure-verify.top/login\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Checking a link with VirusTotal sends it to VirusTotal (a Google service), so the server refuses unless the user agreed: send consent: true only after asking."
          },
          "response": [
            {
              "name": "400 — virustotal-without-consent",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/links/virustotal",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "links",
                    "virustotal"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"http://enbd-secure-verify.top/login\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"detail\": \"consent required: this sends the link to VirusTotal (a Google service)\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 400\", () => pm.response.to.have.status(400));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Feedback",
      "item": [
        {
          "name": "feedback",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/feedback",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "feedback"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"analysis_id\": \"{{analysis_id}}\",\n  \"expected\": \"legitimate\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "The user taps \"This looks wrong\" on a result. Not replayed against production, to keep launch statistics clean."
          },
          "response": [
            {
              "name": "200 — feedback",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/feedback",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "feedback"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"analysis_id\": \"{{analysis_id}}\",\n  \"expected\": \"legitimate\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true,\n  \"message\": \"Thank you — this has been queued for a human to review.\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "System",
      "item": [
        {
          "name": "capabilities",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/capabilities",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "capabilities"
              ]
            },
            "description": "Call on launch to feature-detect. auth_required describes the staff review endpoints, not scanning."
          },
          "response": [
            {
              "name": "200 — capabilities",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/capabilities",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "capabilities"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"api_version\": \"v1\",\n  \"rules_version\": \"2026.11.20-1\",\n  \"features\": {\n    \"message_analysis\": true,\n    \"batch_analysis\": true,\n    \"live_call\": true,\n    \"voice_upload\": false,\n    \"ai_explanations\": false,\n    \"online_reputation_checks\": false,\n    \"caller_web_check\": false,\n    \"rules_pack_sync\": true,\n    \"virustotal_check\": false\n  },\n  \"language_coverage\": {\n    \"en\": \"full\",\n    \"ar\": \"full\"\n  },\n  \"limits\": {\n    \"max_text_chars\": 20000,\n    \"max_batch_messages\": 50,\n    \"max_upload_bytes\": 26214400,\n    \"max_audio_seconds\": 600,\n    \"rate_limit_requests\": 120,\n    \"rate_limit_window_seconds\": 60\n  },\n  \"auth_required\": false,\n  \"contact_email\": null,\n  \"intelligence\": {\n    \"serial\": 0,\n    \"delta_sync\": true,\n    \"signing\": \"none\",\n    \"signing_key_id\": null,\n    \"public_key\": null\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));"
                ]
              }
            }
          ]
        },
        {
          "name": "health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "health"
              ]
            },
            "description": "Liveness check."
          },
          "response": [
            {
              "name": "200 — health",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/health",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "health"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"ok\",\n  \"rules_version\": \"2026.11.20-1\",\n  \"rules_loaded\": 75,\n  \"llm_available\": false,\n  \"stt_available\": false,\n  \"external_checks_enabled\": false,\n  \"auth_required\": false,\n  \"active_sessions\": 0\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 200\", () => pm.response.to.have.status(200));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Errors",
      "item": [
        {
          "name": "error-validation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/analyze/message",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "analyze",
                "message"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"hello\",\n  \"source_app\": \"ios\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "A request the server rejects: source_type is missing. Fix the request; do not retry."
          },
          "response": [
            {
              "name": "422 — error-validation",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/analyze/message",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "analyze",
                    "message"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"hello\",\n  \"source_app\": \"ios\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Content",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"detail\": [\n    {\n      \"type\": \"missing\",\n      \"loc\": [\n        \"body\",\n        \"source_type\"\n      ],\n      \"msg\": \"Field required\",\n      \"input\": {\n        \"text\": \"hello\",\n        \"source_app\": \"ios\"\n      }\n    }\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"status is 422\", () => pm.response.to.have.status(422));"
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
