Skip to main content
public preview

These docs are a public preview. The endpoint reference is still firming up as the API host is finalized.

Audit Logs API

Every API action is logged. Pull the audit trail for compliance and monitoring.

Get Audit Logs

GEThttps://{your-api-host}/orgs/{org_uuid}/api/logs

Retrieve the audit logs for your organization.

curl -X GET "https://{your-api-host}/orgs/{org_uuid}/api/logs" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response Example

{
  "logs": [
    {
      "id": "log_12345",
      "timestamp": "2025-01-10T12:00:00Z",
      "action": "instance.created",
      "actor": {
        "type": "api_key",
        "key_id": "key_abc123"
      },
      "resource": {
        "type": "instance",
        "id": "1234-5678-90ab-cdef"
      },
      "details": {
        "image": "ubuntu-20.04",
        "size": "small"
      },
      "ip_address": "203.0.113.42",
      "user_agent": "Mozilla/5.0..."
    },
    {
      "id": "log_12346",
      "timestamp": "2025-01-10T12:05:00Z",
      "action": "instance.destroyed",
      "actor": {
        "type": "api_key",
        "key_id": "key_abc123"
      },
      "resource": {
        "type": "instance",
        "id": "1234-5678-90ab-cdef"
      },
      "ip_address": "203.0.113.42",
      "user_agent": "Mozilla/5.0..."
    }
  ],
  "total": 234,
  "page": 1,
  "per_page": 50
}

Log Event Types

Audit logs record the following event types:

instance.created

A new instance was created

instance.destroyed

An instance was terminated

key.rotated

An API key was rotated

key.created

A new API key was created

key.revoked

An API key was revoked