# Get all Team Members

## Get teams&#x20;

<mark style="color:blue;">`GET`</mark> `https://{{workspace}}.myeshopbox.com/api/v1/user`

This endpoint is required to get list of teams in a user workspace

#### Query Parameters

| Name      | Type    | Description                                    |
| --------- | ------- | ---------------------------------------------- |
| page      | integer | The number of pages used to offset the results |
| per\_page | integer | The number of items to be return per page      |

#### Headers

| Name           | Type   | Description                             |
| -------------- | ------ | --------------------------------------- |
| Authentication | string | The Bearer token required to access API |

{% tabs %}
{% tab title="200 Records from multiple team is successfully retrieved " %}

```
{
    "data": [
        {
            "id": 40,
            "auth0id": "auth0|5c1e77e0bde98c5d194ec3e5",
            "email": "johndoe@gmail.com",
            "firstName": "John",
            "lastName": "Doe",
            "status": "2",
            "createdAt": "2018-12-23T04:44:12.000Z",
            "updatedAt": "2019-12-13T11:30:24.000Z",
            "profileUrl": "https://storage.cloud.google.com/profile.appspot.com/profile.pdf",
            "phone": "7742143600",
            "lastActiveOn": "2020-02-19T19:04:00.000Z",
            "workspaceStatus": "0",
            "emailVerified": "1",
            "alternatePhone": "978564678",
            "officePhone": "978964566",
            "userGroupDetails": "10::::dcxc####11::::Anuo",
            "userGroups": [
                {
                    "groupId": "10",
                    "groupName": "Operations"
                },
                {
                    "groupId": "11",
                    "groupName": "Operations"
                }
            ],
            "role": "user",
            "userAccountMappingId": 3,
            "userGroup": [
                {
                    "groupId": "10",
                    "groupName": "Operations"
                },
                {
                    "groupId": "11",
                    "groupName": "Operations"
                }
            ]
        }
    ],
    "total": 550,
    "page": 1,
    "per_page": 10
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```
l -X GET https://{{workspace}}.myeshopbox.com/api/v1/user \    
 -H "Authorization: Bearer XXXX"
```

{% endtab %}
{% endtabs %}
