

# Get all the availability states configured for the current agent in Amazon Connect Agent Workspace
<a name="3P-apps-agent-requests-listavailabilitystates"></a>

 Get all the availability states configured for the current agent. 

 **Signature** 

```
listAvailabilityStates(): Promise<AgentState[]>
```

 **Usage** 

```
const availabilityStates: AgentState[] = await agentClient.listAvailabilityStates();        
```

 **Output - AgentState** 


|  **Parameter**  |  **Type**  |  **Description**  | 
| --- | --- | --- | 
|  agentStateARN  |  string  |  Amazon Reference Number of agent state  | 
|  type  |  string  |  It could be "routable" \$1 "not\$1routable" \$1 "after\$1call\$1work" \$1 "system" \$1 "error" \$1 "offline"  | 
|  name  |  string  |  Name of the agent state like Available or Offline  | 
|  startTimestamp  |  Date  |  A Date object that indicates when the state was set.  | 

 **Permissions required:** 

```
User.Configuration.View              
```