# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/setting/team/get-all-team-members.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
