---
title: "List an individual Command result"
method: GET
path: "/commandresults/{id}"
tags: ["Command Results"]
---

# List an individual Command result

`GET /commandresults/{id}`

## Request

- Base URL: `https://console.jumpcloud.com/api`
- URL: `https://console.jumpcloud.com/api/commandresults/{id}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api/docs/commandresults/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint returns a specific command result.

#### Sample Request
```
curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'
  ```

## Query parameters

- `fields` string
- `filter` string

## Headers

- `x-org-id` string

## Response `200`

OK

- Commandresult
  - `_id` string: The ID of the command.
  - `command` string: The command that was executed on the system.
  - `files` string[]: An array of file ids that were included in the command
  - `name` string: The name of the command.
  - `organization` string: The ID of the organization.
  - `managedBy` 'enterprise' | 'organization': Command owner type stamped at dispatch (`enterprise` or `organization`).
  - `managedByLabel` string: Display label for Managed By (`Enterprise` or the device organization name).
  - `requestTime` string, date-time, nullable: The time that the command was sent.
  - `response` object
    - `data` object
      - `exitCode` integer: The stderr output from the command that ran.
      - `output` string: The output of the command that was executed.
    - `error` string: The stderr output from the command that ran.
    - `id` string: ID of the response.
  - `responseTime` string, date-time, nullable: The time that the command was completed.
  - `sudo` boolean: If the user had sudo rights
  - `system` string: The name of the system the command was executed on.
  - `systemId` string: The id of the system the command was executed on.
  - `user` string: The user the command ran as.
  - `workflowId` string
  - `workflowInstanceId` string

## Other responses

- `401`: Unauthorized

---

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