# Audit Logs

## Get a list of audit logs

> Returns a paginated list of audit log entries for the organization.\
> \
> \*\*Rate limit:\*\* 60 requests per minute

```json
{"openapi":"3.0.1","info":{"title":"Pylon API.","version":"1.0.0"},"servers":[{"url":"https://api.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"GetAuditLogsResponseBody":{"properties":{"data":{"description":"The data payload of the response.","items":{"$ref":"#/components/schemas/AuditLog"},"type":"array"},"pagination":{"$ref":"#/components/schemas/Pagination"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"},"AuditLog":{"properties":{"action":{"description":"The action that was performed.","type":"string"},"action_happened_at":{"description":"The time at which the action happened.","type":"string"},"actor_contact_id":{"description":"The ID of the contact who performed the action, if applicable.","type":"string"},"actor_user_id":{"description":"The ID of the user who performed the action, if applicable.","type":"string"},"attributes":{"additionalProperties":{"type":"string"},"description":"Key-value attributes associated with the audit log.","type":"object"},"created_at":{"description":"The time at which the audit log was created.","type":"string"},"id":{"description":"The ID of the audit log.","type":"string"},"link":{"description":"The link associated with the audit log, if applicable.","type":"string"},"metadata":{"description":"Additional metadata associated with the audit log. The structure varies based on the action type.","properties":{},"type":"object"},"object_id":{"description":"The ID of the object that the audit log is for.","type":"string"},"object_type":{"description":"The type of object that the audit log is for.","type":"string"},"source":{"description":"The source of the audit log.","type":"string"}},"type":"object"},"Pagination":{"properties":{"cursor":{"description":"The cursor for the next page of results.","type":"string"},"has_next_page":{"description":"Indicates if there is a next page of results.","type":"boolean"}},"required":["cursor","has_next_page"],"type":"object"},"ErrorApiResponseBody":{"properties":{"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"}}},"paths":{"/audit-logs":{"get":{"description":"Returns a paginated list of audit log entries for the organization.\n\n**Rate limit:** 60 requests per minute","operationId":"GetAuditLogs","parameters":[{"description":"The cursor to use for pagination.","in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The number of audit logs to fetch. Defaults to 100. Must be greater than 0 and less than 1000.","in":"query","name":"limit","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAuditLogsResponseBody"}}},"description":""},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""}},"summary":"Get a list of audit logs","tags":["audit_logs"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usepylon.com/pylon-docs/developer/api/api-reference/audit-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
