# Get all API call logs with mandatory organizationId and optional filters

`GET /api/api-call-log`

Authentication: no security requirement declared for this operation.

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

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

- `take` (query, number, optional)
  Type: number
  
  minimum: 0
  
  maximum: 100

- `skip` (query, number, optional)
  Type: number
  
  minimum: 0

- `method` (query, number, required)
  Type: number
  
  enum: [0,1,2,3,4,5,6,7,8]

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

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

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

- `statusCode` (query, number, optional)
  Type: number

- `startRequestTime` (query, string, date-time, optional)
  Type: string, date-time

- `endRequestTime` (query, string, date-time, optional)
  Type: string, date-time

Responses:

- 200: Returns a list of all API call logs with filters applied.

- 500: Internal server error.

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/api-call-log?organizationId=string&method=0'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/api-call-log?organizationId=string&method=0', {
  method: 'GET',
});

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

### Python

```python
import requests

response = requests.get('http://localhost:3000/api/api-call-log?organizationId=string&method=0')
print(response.text)
```
