---
title: Get All Passes
slug: jetstream-v2/get-all-passes
docTags: 
createdAt: 2024-01-23T15:32:49.814Z
---

## About

Return all passes that are currently contained in the access control list of the specified device.

| **Command Type**       | **Device is Online**                   | **Device is Offline**               |
| ---------------------- | -------------------------------------- | ----------------------------------- |
| Synchronous, Queueable | Immediate execution, Published results | Queued execution, Published results |

Applicable to the following device types: [RFID Enclosures (Cabinets, Fridges, Freezers)](docId\:kobLJQncO2S0-1ozNf09G)

## Parameters

| **Property**                                         | **Location** | **Details**                                                                                                                                                   |
| ---------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **AccessKey**<br />string<br />Required<br />Unique  | Header       | The access key for your user account.<br />This value is a 36-character GUID provided during [user account sign up](https://jetstreamrfid.com/login/signup).  |
| **DeviceName**<br />string<br />Required<br />Unique | URL          | The name of the device.<br />This value has a max length of 128 ASCII characters.<br />This value must adhere to this regular expression: ^\[a-zA-Z0-9-\_]\*$ |

## Example

### Request URL

**GET** https\://api.jetstreamrfid.com/2/devices/\{Device Name}/accesscontrol

### Request Body

None Required

### Response Code

200 OK

### Response Body

:::BlockQuote
\{
&#x9;"CommandId": "0093fac7-1d82-430a-8bd2-0562c2067037",
&#x9;"Status": "Completed",
&#x9;"ExceptionList": \[],
&#x9;"OutputParameterList": \[
&#x9;	\{
&#x9;	    "Key": "PassRfid",
&#x9;	    "Value": "MyPassNumber"
&#x9;	}
&#x9;]
}
:::

### Published CommandQueuedEvent

:::BlockQuote
\{
&#x9;"Device": "MyDeviceName",
&#x9;"CommandId": "0093fac7-1d82-430a-8bd2-0562c2067037",
&#x9;"CommandName": "GetPasses",
&#x9;"URI": "/2/Devices/MyDeviceName/AccessControl",
&#x9;"Verb": "Get",
&#x9;"User": "MyUserName",
&#x9;"Parameters": \[],
&#x9;"Type": "CommandQueuedEvent",
&#x9;"EventId": "b2bd08c9-6001-45d0-8981-dda986b2d0b2",
&#x9;"EventTime": "2017-05-16T21:17:21Z"
}
:::

### Published CommandCompletionEvent

:::BlockQuote
\{
&#x9;"CommandId": "0093fac7-1d82-430a-8bd2-0562c2067037",
&#x9;"CommandName": "GetPasses",
&#x9;"OutputParameterList": \[
&#x9;	\{
&#x9;	    "Key": "PassRfid",
&#x9;	    "Value": "MyPassNumber"
&#x9;	}
&#x9;],
&#x9;"ExceptionList": \[],
&#x9;"Device": "MyDeviceName",
&#x9;"ReceivedTime": "2017-05-16T21:17:13Z",
&#x9;"Type": "CommandCompletionEvent",
&#x9;"EventId": "59236a58-2581-4f10-be5c-44c11e681794",
&#x9;"EventTime": "2017-05-16T21:17:12Z"
}
:::

## Version Changes

Replaces GetPasses
