---
title: "GET /ver2/CommandService.svc/commands/{commandId}"
method: GET
path: "/ver2/CommandService.svc/commands/{commandId}"
tags: ["Command"]
---

# GET /ver2/CommandService.svc/commands/{commandId}

`GET /ver2/CommandService.svc/commands/{commandId}`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/CommandService.svc/commands/{commandId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/CommandService.svc/commands/:commandId/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns information about a previously submitted command (any API which is asynchronous).

**Security:** All users.

**SDK API (create):**  `envianceSdk.commands.getCommand (commandId, onsuccess, onerror)`

```
GET /ver2/CommandService.svc/commands/08fc5438-a0d8-4bf9-9141-12dd98e7ce80/ HTTP/1.1

//RESPONSE
{
  "id": "08fc5438-a0d8-4bf9-9141-12dd98e7ce80",
  "description": "Data batch processed.",
  "issued": "2012-12-01T08:00:00",
  "startedProcessing": "2012-12-01T08:01:00",
  "finishedProcessing": "2012-12-01T08:02:00",
  "status": "Succeeded",
  "objects": ["/Facility A/Unit X/Parameter Z"],
  "user": "JSmith",
  "errorInfo": {
    "error": "Requirement with Tag 'GZB_AVG_SORTED' could not be found in the system.",
    "details": [
      { "key": "Tag", "value": "GZB_AVG_SORTED" },
      { "key": "Complete Date", "value": "2012-02-08T09:50:00" },
      { "key": "Value", "value": "18.00803565979" }
    ]
  }
}

```



envianceSdk.commands.getCommand
```
[
  "eccd2310-9b5f-440b-bf0d-91f9803d036b",
  "onsuccess",
  "onerror"
]
```

## Path parameters

- `commandId` string, required

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Response `default`

not available

- EnvianceRestServicesVer2AsyncCommandInfo
  - `id` string, guid
  - `description` string
  - `issued` string, date-time
  - `startedProcessing` string, date-time
  - `finishedProcessing` string, date-time
  - `status` string
  - `objects` string[]
  - `reports` string[]
  - `result` string
  - `user` string
  - `errorInfo` EnvianceRestServicesVer2AsyncErrorInfo
    - `error` string
    - `details` object

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
