---
title: "Get Report by job run id"
method: GET
path: "/reports/by_job_run/{job_run_id}"
tags: ["Reports building"]
---

# Get Report by job run id

`GET /reports/by_job_run/{job_run_id}`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/reports/by_job_run/{job_run_id}`
- Auth: API key in header `Authorization`

Returns array of Reports for job run.

## Path parameters

- `job_run_id` number, required

## Response `200`

Successful response

- object
  - `id` number, required: Report id
  - `job_id` string, required: Job id
  - `job_run_id` number, required: Job run id
  - `report_type` string, required: Report type.
  - `start_time` number, required: Report start time. Null if Report is not started yet.
  - `finish_time` number, required: Report finish time. Null if Report is not finished yet.
  - `created_at` number, required: Report creation time.
  - `created_by` string, required: Username of the user who created the Report.
  - `status` string, required: Report status. Possible values: created - Report is created, waiting_for_job_run_finish - Report is waiting for job run finish, waiting_for_events - Report is waiting for events, in_queue - Report is in queue, in_progress - Report is in progress, aborting - Report is aborting, aborted - Report is aborted, completed - Report is completed.
  - `params` object, required: Report parameters.
  - `params.from` number, required: Report will only include file events created later than params.from.
  - `params.to` number, required: Report will only include file events created earlier than params.to.
  - `params.agent_ids` number, required: List of Agent ids. Only events from Agents ids in this list will be included in the Report.
  - `params.file_event_entity_type` string, required: List of file event entry types. Only events with entry types in this list will be included in the Report.
  - `params.files_ext` object: Report files extension info by file type
  - `params.files_ext.all` string: All file extension. File will include info about all entities.
  - `params.files_ext.indexed_on_source` string: Indexed on source file extension. File will include info about entities indexed on source.
  - `params.files_ext.deleted_on_source` string: Deleted on source file extension. File will include info about entities deleted on source.
  - `params.files_ext.archived_on_source` string: Archived on source file extension. File will include info about entities archived on source.
  - `params.files_ext.skipped_on_source` string: Skipped on source file extension. File will include info about entities skipped on source.
  - `params.files_ext.delivered_to_all_destinations` string: Delivered to all destinations file extension. File will include info about entities delivered to all destinations.
  - `params.files_ext.not_delivered_to_destination` string: Not delivered to all destinations file extension. File will include info about entities not delivered to at least one destination.
  - `result` object: Report result.
  - `result.step` string: Report step. Appears once Report building has started.
  - `result.progress` number: Report progress in percent. Appears once Report building has started.
  - `result.error` string: Report error message.
  - `result.all` object: Entities count that are (will be) included in report file all.
  - `result.all.file` number: Count of file entities.
  - `result.all.folder` number: Count of folder entities.
  - `result.all.symlink` number: Count of symlink entities.
  - `result.all.stream` number: Count of stream entities.
  - `result.all.unknown` number: Count of unknown entities.
  - `result.indexed_on_source` object: Entities count that are (will be) included in report file indexed_on_source. The contents of this object are the same as for result.all.
  - `result.deleted_on_source` object: Entities count that are (will be) included in report file deleted_on_source. The contents of this object are the same as for result.all.
  - `result.archived_on_source` object: Entities count that are (will be) included in report file archived_on_source. The contents of this object are the same as for result.all.
  - `result.skipped_on_source` object: Entities count that are (will be) included in report file skipped_on_source. The contents of this object are the same as for result.all.
  - `result.delivered_to_all_destinations` object: Entities count that are (will be) included in report file delivered_to_all_destinations. The contents of this object are the same as for result.all.
  - `result.not_delivered_to_destination` object: Entities count that are (will be) included in report file not_delivered_to_destination. The contents of this object are the same as for result.all.

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
