# List

This endpoint will retrieve the list of all the team members associated to a specific bot.

### Request

The following request will publish a chatbot on the currently active channels

```bash
curl --location --request GET 'https://<SERVICE ENDPOINT>/teams' \
--header 'Authorization: Bearer <BOT_AUTH_TOKEN>' \
--header 'Content-Type: application/json'
```

### Response

If successful, the response will contain the list of all the team members associated with bot specified in the request token.

```javascript
[
    {
        "Email": "somemail@somemail.com",
        "Group": "GROUP_NAME",
        "State": "Pending",
        "ProfileId":"<profile id>",
        "IsOnline":true
    }
]
```

### Response Codes

This endpoint will reply with the following standard HTTP codes.

<table data-header-hidden><thead><tr><th width="276">Code</th><th>Meaning</th></tr></thead><tbody><tr><td>Code</td><td>Meaning</td></tr><tr><td>200</td><td>Ok. The request has been successfully fulfilled.</td></tr><tr><td>400</td><td>Bad Request. The supplied token is invalid or does not have enough permissions.</td></tr><tr><td>404</td><td>Not Found. The account or the chatbot specified could not be found.</td></tr></tbody></table>
