Documentation menu

Audit log

What was done in the calling project key's project, and by whom.

OperationMethodSDK
List the audit logGEThixel.auditLog.list

List the audit log#

GET/v1/audit_loghixel.auditLog.list

A page of what was done in the project and its environments, newest first: by people in the dashboard and by keys through this API. The organization's own changes (its settings, members, invitations) are not in it..

Takes a project key with the admin role.

Parameters

NameInTypeDescription
cursorquerystringThe next_cursor of the previous page, to read the next one; left out for the first page. Pass the same filters with it.
limitqueryintegerHow many items the page holds: an integer from 1 to 100; 50 when left out.

Response 200: AuditEntryList

FieldTypeDescription
data requiredarray of AuditEntry
data[].id requiredstringThe entry's id (aud_…).
data[].actor requiredobject
data[].actor.user_id requiredstring | nullThe person who acted; null when a key or Hixel itself did.
data[].actor.label requiredstringWho acted, as they were then: a person's email address, or a key's id.
data[].action requiredstring<subject>.<verb>, such as environment.created.
data[].target_type requiredstringWhat was acted on: environment, key, customer, …
data[].target_id requiredstringThe id of what was acted on.
data[].metadata requiredobject | nullWhat the change was, as the action records it; never a secret.
data[].created_at requiredstring (date-time)
next_cursor requiredstring | nullPass back as cursor for the next page; null on the last page.

Errors

  • 400
    • invalid_request: The request is malformed or fails validation; param names the field.
    • invalid_cursor: The cursor is not one this audit log gave.
    • invalid_query: the request's path, query or body does not match its schema, or the body is not JSON or is over 1 MiB.
  • 401 api_key_required, invalid_api_key, expired_api_key: no key was sent; the key is unknown or revoked, or its project or environment is archived; or it has expired.
  • 403
    • key_inactive: the project key was revoked or expired while the request ran.
    • project_key_required: an environment's key was sent; the project's endpoints take a project key.
    • role_not_allowed: the project key's member role does not allow this; it takes admin.
  • 500 internal: an unexpected failure on the platform's side (internal_error); the details are logged, never returned.
  • 503 database_unavailable: A dependency, such as the database or Stripe, cannot be reached; retry later.
curl "https://api.hixel.dev/v1/audit_log" \
  -H "Authorization: Bearer $HIXEL_PROJECT_KEY"