import Runloop from '@runloop/api-client';const client = new Runloop({ bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted});const response = await client.scenarios.runs.downloadLogs('id');console.log(response);const content = await response.blob();console.log(content);
"<string>"
Scenario
Download logs for a Scenario run.
Download a zip file containing all logs for a Scenario run from the associated devbox.
POST
/
v1
/
scenarios
/
runs
/
{id}
/
download_logs
JavaScript
import Runloop from '@runloop/api-client';const client = new Runloop({ bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted});const response = await client.scenarios.runs.downloadLogs('id');console.log(response);const content = await response.blob();console.log(content);