Skip to content

m365

Read a client's Microsoft Defender alerts live

GET/v1/m365/defender-alerts

Reads the newest Microsoft Defender alerts of a client's Microsoft 365 tenant from Microsoft Graph now, optionally of one severity, at most limit of them. A client mapped to several Microsoft tenants needs m365TenantId. Answers unavailable when Microsoft refuses or cannot be reached.

Parameters

NameInRequiredTypeDescription
clientIdqueryYesstring—
m365TenantIdqueryNostring—
severityqueryNostring—
limitqueryNointeger—

Request body

No request body.

Responses and errors

  • 200

    Read a client's Microsoft Defender alerts live

    • m365Tenant (required): object
    • data (required): array
    • count (required): integer
  • 400

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • ValidationFailedError:
    • allOf: ErrorEnvelope
  • 401

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • UnauthorizedError:
    • allOf: ErrorEnvelope
  • 403

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • ForbiddenError:
    • allOf: ErrorEnvelope
  • 429

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • RateLimitedError:
    • allOf: ErrorEnvelope
  • 503

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • UnavailableError:
    • allOf: ErrorEnvelope

Example

curl --request GET \
  --url 'https://api.scopable.io/v1/m365/defender-alerts' \
  --header 'Authorization: Bearer $SCOPABLE_API_KEY'

Replace $SCOPABLE_API_KEY with a key created in Settings, API.

View the OpenAPI 3.1 source

Need help with the API? …