---
title: "Get command results."
method: GET
path: "/rest/command/getcommandresults/{commandId}"
tags: ["Command APIs"]
---

# Get command results.

`GET /rest/command/getcommandresults/{commandId}`

## Request

- Base URL: `https://masonconsole.com`
- URL: `https://masonconsole.com/rest/command/getcommandresults/{commandId}`
- Auth: HTTP bearer

This API retrieves command results for a specific command. It supports pagination and filtering by search string, sort column, sort order, and status filter.

## Path parameters

- `commandId` string, required

## Query parameters

- `startIndex` integer, required
- `pageSize` integer, required
- `searchstring` string
- `sortcolumn` string
- `sortorder` string
- `statusfilter` string

## Response `200`

Successful response

- CommandStatusesList
  - `commandStatus` CommandStatus[]: A list of command statuses.
    - `id` string
    - `commandid` string
    - `date` string, date-time
    - `status` 'PENDING' | 'sent' | 'READY' | 'UPDATE_SENT' | 'EXECUTED' | 'FAILURE': Status of the command: - PENDING: The device is offline and has not received the command yet. - sent: Command was sent to the device. - READY: Command is scheduled for later but has not been executed yet. - UPDATE_SENT: Scheduled command has been changed. - EXECUTED: Command has been executed. - FAILURE: Command was executed but failed.
    - `note` string: General note about the status of the command.
    - `deviceid` string
    - `properties` object
    - `additionalprops` object
  - `message` string
  - `result` string
  - `totalRecordCount` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal server error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/bymason/apis/mason-device-console-api-docs.md) - [All operations](https://skmtc.dev/bymason/apis/mason-device-console-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/bymason/apis/mason-device-console-api-docs/revisions/d9cdcc14b7d1?raw)
