Get trial logs

Get trial logs

Get the logs for a trial.

GEThttps://studio.edgeimpulse.com/v1/api/{projectId}/optimize/trial/{trialId}/stdout
Path parameters
projectId*integer

Project ID

trialId*string

trial ID

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

stdout*array of object
totalCount*integer

Total number of logs (only the last 1000 lines are returned)

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/trial/{trialId}/stdout', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "stdout": [
    {
      "created": "2025-01-21T00:48:42.933Z",
      "data": "text",
      "logLevel": "error"
    }
  ],
  "totalCount": 0
}

Last updated