List audit logs with optional filters and pagination
GET
/api/audit-logs
const url = 'https://example.com/api/audit-logs';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/audit-logs \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”environmentId
string
resourceType
string
resourceId
string
action
string
limit
number
offset
number
Responses
Section titled “Responses”Unauthorized — missing or invalid bearer token.
Media typeapplication/json
object
code
Stable, machine-readable error code. Always present on the wire.
string
message
Human-readable error message. Always present on the wire.
string
field
Field name when the error is tied to a specific input (e.g. validation).
string
hint
Optional, human-friendly hint for resolving the error.
string
requestId
Server-assigned request ID; quote this when reporting issues.
string
key
additional properties
any
Example
{ "code": "READONLY_FIELD", "message": "Field \"exposedPorts\" is read-only and cannot be set via PATCH.", "field": "exposedPorts", "hint": "Exposed ports are discovered from the running container. Change the ports mapping in the compose file at composePath and redeploy.", "requestId": "req_01H0…"}