Microsoft Defender website screenshot

Microsoft Defender

Collection of Microsoft Defender security APIs for threat protection, endpoint security, and security operations.

Microsoft Defender publishes 3 APIs on the APIs.io network: Alerts API, Machines API, and Vulnerabilities API.

The Microsoft Defender catalog on APIs.io includes 1 JSON-LD context and 1 Spectral governance ruleset.

Microsoft Defender’s developer surface includes authentication, developer portal, and 16 more developer resources.

48.5/100 developing ▬ flat Agent 33/100 agent ready saas Full breakdown ↓
scored 2026-09-08 · rubric v0.20.0
AccessFreemiumSelf serve⚡ Free to try
1 APIs

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-09-08 · rubric v0.20.0
Create-or-Update Ergonomics applies to this provider. This API accepts writes, so it carries 10 points of the composite. It is scored from the published contracts themselves: whether a caller can create-or-update in one call, whether the write accepts a key the caller already holds, and whether the response says which branch ran. Without that, every write needs a search-and-branch in front of it, and the first time that check is skipped a duplicate record is created. Scored against the observed mean rather than raw — a provider at the catalog average is unchanged by this facet, not penalised by it.
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. This rating is computed from github.com/api-evangelist/microsoft-defender: open an issue to ask a question, or submit a pull request to add artifacts. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

APIs 9

Individual APIs this provider publishes, each with its own machine-readable definition.

Microsoft Defender for Cloud Apps API

Cloud Access Security Broker (CASB) API for discovering, investigating, and governing cloud apps.

Microsoft Defender Threat Intelligence API

Access threat intelligence data, indicators of compromise (IOCs), and threat analytics.

Microsoft Defender for Office 365 API

API for email and collaboration protection including anti-phishing, anti-malware, and safe attachments.

Microsoft Defender XDR API

Unified extended detection and response API for automating workflows based on shared incident and advanced hunting tables across Microsoft security products.

Microsoft Defender for Cloud REST API

REST API for unified security management and advanced threat protection across hybrid cloud workloads in Azure, other clouds, and on-premises.

Microsoft Defender for Identity API

API for identity-based attack detection and investigation across on-premises Active Directory and hybrid environments, with sensor management via Microsoft Graph.

Microsoft Defender Alerts API

Manage security alerts generated by Microsoft Defender for Endpoint. Alerts represent detected threats, suspicious activities, and security events on endpoints.

Microsoft Defender Machines API

Manage devices (machines) that have communicated with Microsoft Defender for Endpoint. Retrieve device information, health status, risk scores, and exposure levels.

Microsoft Defender Vulnerabilities API

Retrieve vulnerability information from Microsoft Defender Vulnerability Management. Access CVE data, severity scores, exploit information, and exposure metrics.

Scroll for all 9

Open Collections 5

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

API Collection

OPEN COLLECTION

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Microsoft Defender Rate Limits

6 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Microsoft Defender Context

0 classes · 5 properties

JSON-LD

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs.

Microsoft Defender API Rules

5 rules · 3 warnings 2 info

SPECTRAL

JSON Schema 9

Standalone JSON Schema definitions for this provider's data models.

Microsoft Defender for Endpoint Alert

29 properties

JSON SCHEMA

AlertComment

3 properties

JSON SCHEMA

AlertEvidence

25 properties

JSON SCHEMA

AlertUpdate

5 properties

JSON SCHEMA

IpAddress

4 properties

JSON SCHEMA

Machine

21 properties

JSON SCHEMA

MachineReference

4 properties

JSON SCHEMA

RelatedUser

2 properties

JSON SCHEMA

Vulnerability

17 properties

JSON SCHEMA

Scroll for all 9

JSON Structure 1

JSON Structure definitions describing this provider's data shapes.

Microsoft Defender Structure

0 properties

JSON STRUCTURE

Security Posture 3

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Microsoft Defender Authentication

oauth2 · 1 scheme

SECURITY

Microsoft Defender Domain Security

TLSv1.3 · HSTS · DMARC

SECURITY

Microsoft Defender Vulnerability Disclosure

security.txt · contact published

SECURITY

Scopes 1

OAuth scopes governing access to this provider's APIs.

Microsoft Defender Scopes

1 scope · clientCredentials/authorizationCode

1 scopes

SCOPES

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Microsoft Defender Agentic Access

10 operations · 1 acting

10 operations · 1 acting

AGENTIC

Resources

Get Started 1

Portal, sign-up, and the first successful call

Documentation 1

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Build 1

SDKs, sample code, and the tooling you integrate with

Access & Security 7

Authentication, authorization, and security posture

Scroll for all 7

Operate 2

Status, limits, changes, and where to get help

Commercial 2

Pricing, plans, and the legal terms of use

Company 1

The organization behind the API

Other 2

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
name: Microsoft Defender
description: Collection of Microsoft Defender security APIs for threat protection, endpoint security, and security operations.
deliveryModel:
  model: saas
  open_source: false
  commercial: true
  callable_host: true
  label: Hosted service · you call their endpoint
  confidence: high
  source:
  - openapi
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: freemium
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  label: Freemium · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  - url: https://security.microsoft.com
    status: 302
    note: declared website redirects to https://login.microsoftonline.com/common/oauth2/authorize?client_id=80ccca67-54bd-44ab-8625-4b79c4dc7775&response_type=code%20id_token&scope=openid%20profile&state=OpenIdConnect.AuthenticationProperties%3DRz3ddEkEW3sCl5UCgcVwX8a8Ir1Q6_ILuWrtConTQwwKtyKFNhW_moRzN-_q6IZS1dKFGGx7jegyPBSSIIASrDGabcBAEmiEmXBxJYDdh9NCfTTOtCeDZaIe-v_wXDk_JhcKYICC7FqM9r8ZJC9bqA&response_mode=form_post&nonce=639240508798129965.MTE2Y2IyNDgtZWNmMy00OTcyLTljNjktMWIyODdjNTQyODE4ZjIzNjY3OGMtNTBmMS00MmUwLWE3OWUtM2E5YjA5NWMxYzBi&client-request-id=a09eeb6f-0236-4bd1-b925-be28f3ebdf16&redirect_uri=https%3A%2F%2Fsecurity.microsoft.com%2F&x-client-SKU=ID_NET472&x-client-ver=8.22.0.0
      — a different registrable domain (microsoft.com -> microsoftonline.com), possible rename or acquisition (probed 2026-09-03,
      roadmap#169)
  generated: '2026-07-22'
  method: derived
image: https://www.microsoft.com/favicon.ico
created: '2024-01-15'
modified: '2026-05-19'
specificationVersion: '0.23'
url: https://raw.githubusercontent.com/api-evangelist/microsoft-defender/refs/heads/main/apis.yml
apis:
- name: Microsoft Defender for Cloud Apps API
  description: Cloud Access Security Broker (CASB) API for discovering, investigating, and governing cloud apps.
  image: https://www.microsoft.com/favicon.ico
  humanUrl: https://learn.microsoft.com/en-us/defender-cloud-apps/
  baseUrl: https://portal.cloudappsecurity.com/api
  tags:
  - CASB
  - Cloud Security
  - Data Protection
  - Shadow IT
  properties:
  - type: Documentation
    url: https://learn.microsoft.com/en-us/defender-cloud-apps/api-introduction
  - type: Authentication
    url: https://learn.microsoft.com/en-us/defender-cloud-apps/api-authentication
  - type: Activities API
    url: https://learn.microsoft.com/en-us/defender-cloud-apps/api-activities
  - type: Alerts API
    url: https://learn.microsoft.com/en-us/defender-cloud-apps/api-alerts
  - type: Entities API
    url: https://learn.microsoft.com/en-us/defender-cloud-apps/api-entities
  - type: Cloud Discovery API
    url: https://learn.microsoft.com/en-us/defender-cloud-apps/api-discovery
- name: Microsoft Defender Threat Intelligence API
  description: Access threat intelligence data, indicators of compromise (IOCs), and threat analytics.
  image: https://www.microsoft.com/favicon.ico
  humanUrl: https://learn.microsoft.com/en-us/defender/threat-intelligence/
  baseUrl: https://graph.microsoft.com/v1.0/security/threatIntelligence
  tags:
  - IOC
  - Security Intelligence
  - Threat Analytics
  - Threat Intelligence
  properties:
  - type: Documentation
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-threatintelligence-overview
  - type: APIReference
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview
  - type: Authentication
    url: https://learn.microsoft.com/en-us/graph/auth/
- name: Microsoft Defender for Office 365 API
  description: API for email and collaboration protection including anti-phishing, anti-malware, and safe attachments.
  image: https://www.microsoft.com/favicon.ico
  humanUrl: https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/
  baseUrl: https://graph.microsoft.com/v1.0/security
  tags:
  - Collaboration Security
  - Email Security
  - Phishing Protection
  - Safe Attachments
  properties:
  - type: Documentation
    url: https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/defender-for-office-365
  - type: Threat Protection
    url: https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/threat-explorer
  - type: Safe Links
    url: https://learn.microsoft.com/en-us/defender-office-365/safe-links-about
  - type: Safe Attachments
    url: https://learn.microsoft.com/en-us/defender-office-365/safe-attachments-about
  - type: Service Description
    url: https://learn.microsoft.com/en-us/office365/servicedescriptions/office-365-advanced-threat-protection-service-description
- name: Microsoft Defender XDR API
  description: Unified extended detection and response API for automating workflows based on shared incident and advanced
    hunting tables across Microsoft security products.
  image: https://www.microsoft.com/favicon.ico
  humanUrl: https://learn.microsoft.com/en-us/defender-xdr/api-overview
  baseUrl: https://api.security.microsoft.com/api
  tags:
  - Advanced Hunting
  - Event Streaming
  - Incidents
  - Threat Protection
  - XDR
  properties:
  - type: Documentation
    url: https://learn.microsoft.com/en-us/defender-xdr/api-overview
  - type: APIReference
    url: https://learn.microsoft.com/en-us/defender-xdr/api-supported
  - type: Authentication
    url: https://learn.microsoft.com/en-us/defender-xdr/api-access
  - type: Incidents API
    url: https://learn.microsoft.com/en-us/defender-xdr/api-incident
  - type: Advanced Hunting API
    url: https://learn.microsoft.com/en-us/defender-xdr/api-advanced-hunting
  - type: Streaming API
    url: https://learn.microsoft.com/en-us/defender-xdr/streaming-api
  - type: Supported Event Types
    url: https://learn.microsoft.com/en-us/defender-xdr/supported-event-types
  - type: ErrorCodes
    url: https://learn.microsoft.com/en-us/defender-xdr/api-error-codes
- name: Microsoft Defender for Cloud REST API
  description: REST API for unified security management and advanced threat protection across hybrid cloud workloads in Azure,
    other clouds, and on-premises.
  image: https://www.microsoft.com/favicon.ico
  humanUrl: https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-cloud-introduction
  baseUrl: https://management.azure.com
  tags:
  - Azure Security
  - Cloud Security
  - CSPM
  - Security Posture
  - Workload Protection
  properties:
  - type: Documentation
    url: https://learn.microsoft.com/en-us/rest/api/defenderforcloud/
  - type: GettingStarted
    url: https://learn.microsoft.com/en-us/azure/defender-for-cloud/get-started
  - type: Pricing
    url: https://azure.microsoft.com/en-us/pricing/details/defender-for-cloud/
  - type: ReleaseNotes
    url: https://learn.microsoft.com/en-us/azure/defender-for-cloud/release-notes
- name: Microsoft Defender for Identity API
  description: API for identity-based attack detection and investigation across on-premises Active Directory and hybrid environments,
    with sensor management via Microsoft Graph.
  image: https://www.microsoft.com/favicon.ico
  humanUrl: https://learn.microsoft.com/en-us/defender-for-identity/
  baseUrl: https://graph.microsoft.com/v1.0/security/identities
  tags:
  - Active Directory
  - Identity Security
  - Identity Threat Detection
  - Sensor Management
  properties:
  - type: Documentation
    url: https://learn.microsoft.com/en-us/defender-for-identity/
  - type: Overview
    url: https://learn.microsoft.com/en-us/defender-for-identity/what-is
  - type: Architecture
    url: https://learn.microsoft.com/en-us/defender-for-identity/architecture
  - type: Graph Security API
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview
- aid: microsoft-defender:microsoft-defender-alerts-api
  name: Microsoft Defender Alerts API
  description: Manage security alerts generated by Microsoft Defender for Endpoint. Alerts represent detected threats, suspicious
    activities, and security events on endpoints.
  tags:
  - Alerts
  properties:
  - type: OpenAPI
    url: openapi/microsoft-defender-alerts-api-openapi.yml
  - type: Documentation
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/apis-intro
  - type: JSONSchema
    url: json-schema/microsoft-defender-alert-schema.json
  - type: JSONLD
    url: json-ld/microsoft-defender-context.jsonld
  - type: Authentication
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-create-app-webapp
  - type: Pricing
    url: https://www.microsoft.com/en-us/security/business/endpoint-security/microsoft-defender-endpoint-pricing
  - type: APIReference
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-list
  - type: ReleaseNotes
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/api-release-notes
  - type: Management APIs
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/management-apis
  - type: Alerts API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-alerts
  - type: Vulnerabilities API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-all-vulnerabilities
  - type: Security Recommendations API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-security-recommendations
  - type: Documentation
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview
  - type: SDKs
    url: https://learn.microsoft.com/en-us/graph/sdks/sdks-overview
  - type: CodeExamples
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview#common-use-cases
- aid: microsoft-defender:microsoft-defender-machines-api
  name: Microsoft Defender Machines API
  description: Manage devices (machines) that have communicated with Microsoft Defender for Endpoint. Retrieve device information,
    health status, risk scores, and exposure levels.
  tags:
  - Machines
  properties:
  - type: OpenAPI
    url: openapi/microsoft-defender-machines-api-openapi.yml
  - type: Documentation
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/apis-intro
  - type: JSONSchema
    url: json-schema/microsoft-defender-alert-schema.json
  - type: JSONLD
    url: json-ld/microsoft-defender-context.jsonld
  - type: Authentication
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-create-app-webapp
  - type: Pricing
    url: https://www.microsoft.com/en-us/security/business/endpoint-security/microsoft-defender-endpoint-pricing
  - type: APIReference
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-list
  - type: ReleaseNotes
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/api-release-notes
  - type: Management APIs
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/management-apis
  - type: Alerts API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-alerts
  - type: Vulnerabilities API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-all-vulnerabilities
  - type: Security Recommendations API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-security-recommendations
  - type: Documentation
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview
  - type: SDKs
    url: https://learn.microsoft.com/en-us/graph/sdks/sdks-overview
  - type: CodeExamples
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview#common-use-cases
- aid: microsoft-defender:microsoft-defender-vulnerabilities-api
  name: Microsoft Defender Vulnerabilities API
  description: Retrieve vulnerability information from Microsoft Defender Vulnerability Management. Access CVE data, severity
    scores, exploit information, and exposure metrics.
  tags:
  - Vulnerabilities
  properties:
  - type: OpenAPI
    url: openapi/microsoft-defender-vulnerabilities-api-openapi.yml
  - type: Documentation
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/apis-intro
  - type: JSONSchema
    url: json-schema/microsoft-defender-alert-schema.json
  - type: JSONLD
    url: json-ld/microsoft-defender-context.jsonld
  - type: Authentication
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-create-app-webapp
  - type: Pricing
    url: https://www.microsoft.com/en-us/security/business/endpoint-security/microsoft-defender-endpoint-pricing
  - type: APIReference
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-list
  - type: ReleaseNotes
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/api-release-notes
  - type: Management APIs
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/management-apis
  - type: Alerts API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-alerts
  - type: Vulnerabilities API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-all-vulnerabilities
  - type: Security Recommendations API
    url: https://learn.microsoft.com/en-us/defender-endpoint/api/get-security-recommendations
  - type: Documentation
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview
  - type: SDKs
    url: https://learn.microsoft.com/en-us/graph/sdks/sdks-overview
  - type: CodeExamples
    url: https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview#common-use-cases
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com
common:
- type: Website
  url: https://www.microsoft.com/
- type: CapabilityMap
  url: capabilities/microsoft-defender-capability-edges.yml
  name: Microsoft Defender Business Capability Map
- type: AgenticAccess
  url: agentic-access/microsoft-defender-agentic-access.yml
- type: VulnerabilityDisclosure
  url: security/microsoft-defender-vulnerability-disclosure.yml
- type: DomainSecurity
  url: security/microsoft-defender-domain-security.yml
- type: Authentication
  url: authentication/microsoft-defender-authentication.yml
- type: OAuthScopes
  url: scopes/microsoft-defender-scopes.yml
- type: GitHubOrganization
  url: https://github.com/MicrosoftDocs
- type: Portal
  url: https://security.microsoft.com
- type: Documentation Hub
  url: https://learn.microsoft.com/en-us/microsoft-365/security/
- type: StatusPage
  url: https://status.azure.com/
- type: TermsOfService
  url: https://www.microsoft.com/en-us/legal/terms-of-use
- type: PrivacyPolicy
  url: https://privacy.microsoft.com/en-us/privacystatement
- type: Developer Changelog
  url: https://developer.microsoft.com/en-us/changelog
- type: Security Blog
  url: https://www.microsoft.com/en-us/security/blog/
- type: Microsoft Graph Explorer
  url: https://developer.microsoft.com/en-us/graph/graph-explorer
- type: Authentication Overview
  url: https://learn.microsoft.com/en-us/graph/auth/
- type: Security Pricing Overview
  url: https://www.microsoft.com/en-us/security/pricing-overview

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/microsoft-defender"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/microsoft-defender/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/microsoft-defender/evidence"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.