# Get a member

`GET /v1/members/{user_id}`

Required scope: `organization:read`

One member: their connected mailboxes and calendar accounts (never their tokens), their recorder and Wingman status, and what their work cost this billing period.

## Path parameters

- `user_id` (string, required)

## Responses

- `200`: Successful Response
- `400`: The request is not valid.
- `401`: Not signed in, or the credentials are not valid.
- `402`: The balance is too low.
- `403`: Not allowed to do this.
- `404`: Not found.
- `409`: Conflicts with the current state.
- `413`: The request body is too large.
- `415`: The content type is not supported.
- `422`: A value in the request is not valid.
- `429`: Too many requests. Wait for `Retry-After` seconds.
- `500`: Something went wrong on our side.
- `502`: A service Valeron depends on refused the request.
- `503`: A service Valeron depends on is unavailable.

## Examples

### Request

```bash title="cURL"
curl "https://api.valeron.io/v1/members/usr_01J2DAY3X7" \
  -H "Authorization: Bearer $VALERON_API_KEY"
```

```js title="JavaScript"
const response = await fetch("https://api.valeron.io/v1/members/usr_01J2DAY3X7", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.VALERON_API_KEY}`,
  },
});
if (!response.ok) throw new Error(`Valeron returned ${response.status}`);
const data = await response.json();
```

```python title="Python"
import os
import requests

response = requests.get(
    "https://api.valeron.io/v1/members/usr_01J2DAY3X7",
    headers={"Authorization": f"Bearer {os.environ['VALERON_API_KEY']}"},
)
response.raise_for_status()
data = response.json()
```

### Response 200

```json
{
  "accounts": [
    {
      "account_name": "example",
      "kind": "mailbox",
      "provider": {
        "label": "Example",
        "value": "example"
      },
      "status": "connected"
    }
  ],
  "avatar_color": "purple",
  "email": "jordan@example.com",
  "id": "usr_01J4J85BKZ",
  "image_url": "example",
  "joined_at": "2026-12-03T14:30:00Z",
  "name": "Jordan Rivera",
  "positions": [
    {
      "id": "usr_01J4J85BKZ",
      "name": "Jordan Rivera",
      "preset": {
        "label": "Example",
        "value": "example"
      }
    }
  ],
  "recorder": {
    "auto_join": {
      "label": "Example",
      "value": "example"
    },
    "last_recorded_at": "2026-12-03T14:30:00Z"
  },
  "role": {
    "label": "Example",
    "value": "example"
  },
  "teams": [
    {
      "id": "usr_01J4J85BKZ",
      "name": "Jordan Rivera"
    }
  ],
  "usage": {
    "by_kind": [
      {
        "amount": {
          "amount_micros": 2400000,
          "currency": "USD",
          "display": "example"
        },
        "use": {
          "label": "Example",
          "value": "example"
        }
      }
    ],
    "since": "2026-12-03T14:30:00Z",
    "total": {
      "amount_micros": 2400000,
      "currency": "USD",
      "display": "example"
    }
  },
  "wingman": {
    "alerts_enabled": true,
    "last_used_at": "2026-12-03T14:30:00Z"
  }
}
```

### Response 401

```json
{
  "error": null
}
```

### Response 402

```json
{
  "error": null
}
```

### Response 403

```json
{
  "error": null
}
```

### Response 404

```json
{
  "error": null
}
```
