# Get members of the organization

`GET /api/employee/members`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `tenant` (query, object, optional)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `tenantId` (query, string, optional)
  Type: string

- `organization` (query, object, required)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `organizationId` (query, string, required)
  Type: string

- `sentTo` (query, string, optional)
  Type: string

- `organizationTeamId` (query, string, optional)
  Type: string

- `organizationProjectId` (query, string, optional)
  Type: string

Responses:

- 200: Members of the organization

- 400: Invalid query parameters. Please check your input.

- 401: Unauthorized

- 403: Forbidden

- 404: No members found

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/employee/members?organizationId=string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/employee/members?organizationId=string', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'http://localhost:3000/api/employee/members?organizationId=string',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
