# Activity Logs

## List Activity Logs

> Retrieves a paginated list of activity logs. Can be filtered by \`subject\_type\` and \`subject\_id\`.

```json
{"openapi":"3.0.0","info":{"title":"Patchworks Core API","version":"1.0.0"},"tags":[{"name":"Activity Logs"}],"servers":[{"url":"https://core.wearepatchworks.com"}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"API key passed in the Authorization header. Format: `<api-key>`"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2 Bearer token obtained from POST /fabric/api/login"}},"schemas":{"ActivityLogsListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ActivityLogs"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"},"links":{"$ref":"#/components/schemas/PaginationLinks"}}},"ActivityLogs":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier"},"log_name":{"type":"string"},"description":{"type":"string"},"subject_id":{"type":"integer"},"subject_type":{"type":"string"},"causer_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"event":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}}},"PaginationMeta":{"type":"object","properties":{"current_page":{"type":"integer"},"from":{"type":"integer","nullable":true},"last_page":{"type":"integer"},"path":{"type":"string"},"per_page":{"type":"integer"},"to":{"type":"integer","nullable":true},"total":{"type":"integer"}}},"PaginationLinks":{"type":"object","properties":{"first":{"type":"string","format":"uri"},"last":{"type":"string","format":"uri"},"prev":{"type":"string","format":"uri","nullable":true},"next":{"type":"string","format":"uri","nullable":true}}}}},"paths":{"/api/v1/activity-logs":{"get":{"summary":"List Activity Logs","description":"Retrieves a paginated list of activity logs. Can be filtered by `subject_type` and `subject_id`.","parameters":[{"name":"filter[subject_type]","in":"query","required":false,"schema":{"type":"string"},"description":"Filter results by subject_type."},{"name":"filter[subject_id]","in":"query","required":false,"schema":{"type":"string"},"description":"Filter results by subject_id."},{"name":"fields[causer]","in":"query","required":false,"schema":{"type":"string"},"description":"Comma-separated list of causer fields to return. Available: id, name, email"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1},"description":"Page number for pagination."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"Number of results per page."}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityLogsListResponse"}}}},"401":{"description":"Unauthenticated"},"403":{"description":"Unauthorized"}},"tags":["Activity Logs"]}}}}
```
