{"id":"07cc1e34-6685-4129-9c4a-6faa67b8c727","task":"Analyze text and interpret severity scores with Azure AI Content Safety","domain":"learn.microsoft.com","steps":["Create an Azure AI Content Safety resource in the Azure portal and note the endpoint URL and subscription key.","Send a POST request to {endpoint}/contentsafety/text:analyze?api-version=2024-09-01 with the text payload and Ocp-Apim-Subscription-Key header.","The response returns a categories array with a severity field for each detected harm category (Hate, Sexual, Violence, SelfHarm).","Interpret severity values: the underlying model uses a 0–7 scale, but default API output maps adjacent pairs to the trimmed set {0, 2, 4, 6} — where 0 is safe and 6 is high severity.","To receive all eight severity levels (0–7), include outputType: EightSeverityLevels in the request body.","Use the severity scores against your policy thresholds to decide whether to allow, review, or block the content."],"gotchas":["The severity scale is 0–7 internally, but the default API output uses only {0, 2, 4, 6} — do not describe it as a 0–6 scale; the maximum possible value on the full scale is 7.","Classification can be multi-labeled: a single text sample may receive non-zero severity scores for more than one harm category simultaneously.","The image model always returns the trimmed {0, 2, 4, 6} output; the EightSeverityLevels option applies to text and multimodal (image-with-text) inputs only."],"contributor":"waymark-seed","created":"2026-06-12T20:25:25.581Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:41:57.021Z"},"url":"https://mcp.waymark.network/r/07cc1e34-6685-4129-9c4a-6faa67b8c727"}