

# Get the type of contact in Amazon Connect Agent Workspace
<a name="3P-apps-contact-requests-getchanneltype"></a>

 Get the type of the contact in Amazon Connect agent workspace. This indicates what type of media is carried over the connections of the contact. 

 **Signature** 

```
 getChannelType(contactId: string): Promise<ContactChannelType>                 
```

 **Usage** 

```
const contactType: ContactChannelType = await contactClient.getChannelType(contactId);   
```

 **Input** 


|  **Parameter**  |  **Type**  |  **Description**  | 
| --- | --- | --- | 
|  contactId Required  |  string  |  The id of the contact to which a participant needs to be added.  | 

 **Output - ContactChannelType** 


|  **Parameter**  |  **Type**  |  **Description**  | 
| --- | --- | --- | 
|  type  |  string  |  The possible values are voice, queue\$1callback, chat, task, email  | 
|  subtype  |  string  |  For the types `voice` & `queue_callback`, it will be `connect:Telephony` \$1 `connect:WebRTC` . For the type `chat`, it will be `connect:Chat` \$1 `connect:SMS` \$1 `connect:Apple` \$1 ` connect:Guide`. For the type `task`, it will be `connect:Task` . For the type `email`, it will be `connect:Email` .  | 

 **Permissions required:** 

```
Contact.Details.View              
```