---
title: "Fetch the queued Commands for an Organization"
method: GET
path: "/api/v2/queuedcommand/workflows"
tags: ["Commands"]
---

# Fetch the queued Commands for an Organization

`GET /api/v2/queuedcommand/workflows`

## Request

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

This endpoint will return all queued Commands for an Organization.

Each element will contain the workflow ID, the command name, the launch type (e.g. manual, triggered, or scheduled), the target OS, the number of assigned devices, and the number of pending devices that have not yet ran the command.

#### Sample Request
```
curl -X GET https://console.jumpcloud.com/api/v2/queuedcommand/workflows \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'x-api-key: {API_KEY}'
```

## Query parameters

- `limit` integer
- `filter` string[]
- `skip` integer
- `sort` string[]
- `search` string

## Headers

- `x-org-id` string

## Response `200`

OK

- QueuedCommandList: List of queued commands
  - `totalCount` integer: The total number of queued command results.
  - `results` object[]
    - `id` string: The workflowInstanceId.
    - `command` string: The ID of the command, from savedAgentCommands.
    - `system` string: The ID of the device the command is bound to.
    - `pendingCount` integer: The number of devices that still haven't received the directive.

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

---

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