# Get a single team member

Returns a single team member by their ID. This endpoint does not return pending invitations.

You can retrieve a specific member or invitation by providing an `email` query parameter in [List all team members API](https://betterstack.com/docs/uptime/api/team-members/list/).

[endpoint]
base_url = "https://betterstack.com"
path = "/api/v2/team-members/{id}"
method = "GET"

[[path_param]]
name = "id"
description = "The ID of the team member."
required = true
type = "string"

[[query_param]]
name = "team_name"
description = "Required if using a [global API token](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-a-global-api-token) to specify the team."
required = false
type = "string"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns a single team member.'''
body = '''{
  "data": {
    "id": "101",
    "type": "team_member",
    "attributes": {
      "email": "alice@example.com",
      "first_name": "Alice",
      "last_name": "Smith",
      "created_at": "2023-10-26T10:00:00.000Z",
      "role": "admin",
      "mobile_app_platforms": ["ios", "android"]
    }
  }
}'''

[[response]]
status = 404
description = '''The team member with the specified ID was not found.'''
body = '''{
  "errors": "Resource type user with id = 101 was not found"
}'''
[/responses]

#### Example cURL

```shell
[label Example]
curl --request GET \
  --url "https://betterstack.com/api/v2/team-members/101" \
  --header "Authorization: Bearer $TOKEN"
```
