Get live response results

Applies to:


Some information in this article relates to prereleased product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Want to experience Microsoft Defender for Endpoint? Sign up for a free trial.


If you are a US Government customer, please use the URIs listed in Microsoft Defender for Endpoint for US Government customers.


For better performance, you can use server closer to your geo location:


API description

Retrieves a specific live response command result by its index.


  1. Rate limitations for this API are 100 calls per minute and 1500 calls per hour.

Minimum requirements

Before you can initiate a session on a device, make sure you fulfill the following requirements:


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Get started.

Permission type Permission Permission display name
Application Machine.Read.All Read all machine profiles
Application Machine.ReadWrite.All Read and write all machine information
Delegated (work or school account) Machine.LiveResponse Run live response on a specific machine

HTTP request

GET{machine action

Request headers

Name Type Description
Authorization String Bearer {token}. Required.

Request body



If successful, this method returns 200, Ok response code with object that holds the link to the command result in the value property. This link is valid for 30 minutes and should be used immediately for downloading the package to a local storage. An expired link can be re-created by another call, and there's no need to run live response again.

Runscript transcript properties:

Property Description
script_name Executed script name
exit_code Executed script exit code
script_output Executed script standard output
script_errors Executed script standard error output


Request example

Here's an example of the request.


Response example

Here's an example of the response.

HTTP/1.1 200 Ok

Content-type: application/json

    "@odata.context": "$metadata#Edm.String",
    "value": ""

File content:

    "script_name": "minidump.ps1",
    "exit_code": 0,
    "script_output": "Transcript started, output file is C:\\ProgramData\\Microsoft\\Windows Defender Advanced Threat Protection\\Temp\\PSScriptOutputs\\PSScript_Transcript_{TRANSCRIPT_ID}.txt
C:\\windows\\TEMP\\\n51 MB\n\u0000\u0000\u0000",


Do you want to learn more? Engage with the Microsoft Security community in our Tech Community: Microsoft Defender for Endpoint Tech Community.