# List Team Users

Get a list of Team Users.

Method: GET

# Endpoint:

https://api.serveravatar.com/teams/{id}/users

# Request Example:

curl --request GET \
  --url "https://api.serveravatar.com/teams/1101/users" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Team User Lists

  • 200 (Ok)
{
  "teamUsers": {
    "current_page": 1,
    "data": [
      {
        "id": 1101,
        "team_id": 1101,
        "user_id": 1101,
        "role": "Admin",
        "created_at": "2020-02-15 10:42:54",
        "updated_at": "2020-02-15 10:42:54",
        "name": "Smit Pipaliya",
        "email": "smit@serveravatar.com",
        "adminRole": true
      },
      {
        "id": 1854,
        "team_id": 1101,
        "user_id": 1812,
        "role": "Member",
        "created_at": "2020-02-22 16:56:54",
        "updated_at": "2020-02-22 16:56:54",
        "name": "Test User",
        "email": "test@serveravatar.com",
        "adminRole": false
      }
    ],
    "first_page_url": "http:\/\/api.serveravatar.com\/teams\/1101\/users?page=1",
    "from": 1,
    "next_page_url": null,
    "path": "http:\/\/api.serveravatar.com\/teams\/1101\/users",
    "per_page": 10,
    "prev_page_url": null,
    "to": 1
  }
}

# Team Not Found:

  • 404 (Not found)
{
  "message": "Team not found."
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong!"
}