> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Command

This endpoint returns a specific command based on the command ID.

#### Sample Request

```
curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'
```

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                    |
  | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
  | Fields    | Use a space separated string of field parameters to include the data in the response. If omitted, the default list of fields will be returned. |
  | ID        | The command ID.                                                                                                                                |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter       | Description                                                         |
  | --------------- | ------------------------------------------------------------------- |
  | Organization ID | Organization identifier that can be obtained from console settings. |
</div>

## Example Output

```json theme={"dark"}
{
	"command": "string",
	"commandRunners": [
		"string"
	],
	"commandType": "linux",
	"files": [
		"string"
	],
	"launchType": "string",
	"listensTo": "string",
	"name": "string",
	"organization": "string",
	"schedule": "string",
	"scheduleRepeatType": "string",
	"scheduleYear": 0,
	"shell": "string",
	"sudo": true,
	"systems": [
		"string"
	],
	"template": "string",
	"timeToLiveSeconds": 0,
	"timeout": "string",
	"trigger": "string",
	"user": "string"
}
```

## Workflow Library Example

[Get Command with Jumpcloud and Send Results Via Email](https://library.blinkops.com/workflows/get-command-with-jumpcloud-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-command-with-jumpcloud-and-send-results-via-email/canvas" />
</div>
