---
updatedAt: 2026-05-26T21:25:49.000Z
agentTools:
  projectIndex: https://docs.socket.dev/llms.txt
---

# Get Audit Log Events

Paginated list of audit log events.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:
- audit-log:list

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Specification of the Socket API endpoints",
    "title": "API Endpoints",
    "version": "0"
  },
  "servers": [
    {
      "url": "https://api.socket.dev/v0"
    }
  ],
  "tags": [
    {
      "name": "audit-log"
    }
  ],
  "components": {
    "responses": {
      "SocketBadRequest": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "description": "",
              "properties": {
                "error": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "",
                      "default": ""
                    },
                    "details": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "",
                      "default": null,
                      "nullable": true
                    }
                  },
                  "required": [
                    "details",
                    "message"
                  ]
                }
              },
              "required": [
                "error"
              ]
            }
          }
        },
        "description": "Bad request"
      },
      "SocketUnauthorized": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "description": "",
              "properties": {
                "error": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "",
                      "default": ""
                    },
                    "details": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "",
                      "default": null,
                      "nullable": true
                    }
                  },
                  "required": [
                    "details",
                    "message"
                  ]
                }
              },
              "required": [
                "error"
              ]
            }
          }
        },
        "description": "Unauthorized"
      },
      "SocketForbidden": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "description": "",
              "properties": {
                "error": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "",
                      "default": ""
                    },
                    "details": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "",
                      "default": null,
                      "nullable": true
                    }
                  },
                  "required": [
                    "details",
                    "message"
                  ]
                }
              },
              "required": [
                "error"
              ]
            }
          }
        },
        "description": "Insufficient max_quota for API method"
      },
      "SocketTooManyRequestsResponse": {
        "description": "Insufficient quota for API route",
        "headers": {
          "Retry-After": {
            "description": "Retry contacting the endpoint *at least* after seconds.\nSee https://tools.ietf.org/html/rfc7231#section-7.1.3",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "description": "",
              "properties": {
                "error": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "",
                      "default": ""
                    },
                    "details": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "",
                      "default": null,
                      "nullable": true
                    }
                  },
                  "required": [
                    "details",
                    "message"
                  ]
                }
              },
              "required": [
                "error"
              ]
            }
          }
        }
      },
      "SocketNotFoundResponse": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "description": "",
              "properties": {
                "error": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "",
                      "default": ""
                    },
                    "details": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "",
                      "default": null,
                      "nullable": true
                    }
                  },
                  "required": [
                    "details",
                    "message"
                  ]
                }
              },
              "required": [
                "error"
              ]
            }
          }
        },
        "description": "Resource not found"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Organization Tokens can be passed as a Bearer token"
      },
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Organization Tokens can be passed as the user field in basic auth"
      }
    }
  },
  "paths": {
    "/orgs/{org_slug}/audit-log": {
      "get": {
        "tags": [
          "audit-log"
        ],
        "summary": "Get Audit Log Events",
        "operationId": "getAuditLogEvents",
        "parameters": [
          {
            "name": "org_slug",
            "in": "path",
            "required": true,
            "description": "The slug of the organization",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter audit log events by type. Omit for all types.",
            "schema": {
              "type": "string",
              "enum": [
                "AdminConfigureOauthClientAuthentication",
                "AddLicenseOverlayNote",
                "AddPolicyException",
                "AdminAlertTypeUpdated",
                "AdminBotSkipIpsUpdated",
                "AdminCreateServiceAccountOAuthClient",
                "AdminDeleteServiceAccountOAuthClient",
                "AdminGeneratePatchCoverageReport",
                "AdminLinkGithubInstall",
                "AdminManagedReachabilityEnrolmentCreated",
                "AdminManagedReachabilityEnrolmentDeleted",
                "AdminManagedReachabilityEnrolmentUpdated",
                "AdminManagedReachabilityRunCanceled",
                "AdminManagedReachabilityRunRequested",
                "AdminManagedReachabilitySettingsUpdated",
                "AdminResetOrganizationSetting",
                "AdminOauthClientCreated",
                "AdminOauthClientUpdated",
                "AdminOauthClientDeleted",
                "AdminOauthClientSecretRotated",
                "AdminSyncGithubInstall",
                "AdminTriggerFullScan",
                "AdminUnlinkGithubInstall",
                "AdminUpdateCustomerCampaignAlerts",
                "AdminUpdateGithubInstallWorkspace",
                "AdminUpdateGithubInstallationSettings",
                "AdminUpdateOrganizationSetting",
                "AdminUpdateSilentFixOrgSetting",
                "ApprovePolicyException",
                "AssociateLabel",
                "AuthorizeOauthCimdClient",
                "CancelInvitation",
                "CancelPolicyException",
                "ChangeMemberRole",
                "ChangePlanSubscriptionSeats",
                "CreateApiToken",
                "CreateArtifact",
                "CreateAccessPolicyAttachment",
                "CreateServiceAccount",
                "UpdateServiceAccount",
                "DisableServiceAccount",
                "RevokeServiceAccount",
                "AssignServiceAccountRoles",
                "CreateAccessPolicy",
                "CreateAlertPolicy",
                "CreateAlertPolicyRule",
                "CreateFirewallCustomRegistry",
                "CreateFirewallDeploymentConfig",
                "CreateLabel",
                "CreateOauthClientCredentialsToken",
                "ExchangeOauthAuthorizationCode",
                "CreateOauthRefreshToken",
                "CreateRepoAccessRule",
                "CreateUserWithPassword",
                "CreateWebhook",
                "CreateTicket",
                "CreateTicketingConfiguration",
                "CreateTicketingDestination",
                "CoanaCliLegacyModeCutoffUpdated",
                "CoanaCliLegacyModeDemoteOrg",
                "CoanaCliLegacyModePromoteOrg",
                "CreateAlertResolution",
                "DeclinePolicyExceptionRequest",
                "DeleteAccessPolicy",
                "DeleteAlertPolicy",
                "DeleteAlertPolicyRule",
                "DeleteAlertNote",
                "DeleteAlertResolution",
                "DeleteAlertTriage",
                "DeleteAccessPolicyAttachment",
                "DeleteApiToken",
                "DeleteFirewallCustomRegistry",
                "DeleteFirewallDeploymentConfig",
                "DeleteFullScan",
                "DeleteLabel",
                "DeleteLabelSetting",
                "DeleteRepoAccessRule",
                "DeleteReport",
                "DeleteRepository",
                "DeleteTicketingConfiguration",
                "DeleteTicketingDestination",
                "DeleteWebhook",
                "DisableAccessPolicyAttachment",
                "DisableAccessPolicy",
                "DisablePythonCliRunStreamingOverride",
                "DisassociateLabel",
                "DisconnectAsanaIntegration",
                "DisconnectClickupIntegration",
                "DisconnectJiraIntegration",
                "DisconnectLinearIntegration",
                "DowngradeOrganizationPlan",
                "EnablePythonCliRunStreamingOverride",
                "EndPolicyException",
                "EnqueueAutopatchMergeRun",
                "EnqueueAutopatchPrepareJob",
                "FinalizeAlertPolicyMigration",
                "OrganizationIpPolicyDenied",
                "OptOutRulesAndPolicies",
                "RestoreRulesAndPolicies",
                "SetRulesAndPoliciesNewOrgCutoff",
                "JoinOrganization",
                "AsanaIntegrationConnected",
                "ClickupIntegrationConnected",
                "JiraIntegrationConnected",
                "InvalidateOauthCimdClientGrants",
                "LinearIntegrationConnected",
                "ManagedReachabilityRepositoriesAdded",
                "ManagedReachabilityRepositoryRemoved",
                "ManagedReachabilityRepositoryUpdated",
                "ManagedReachabilitySettingsUpdated",
                "NpmStagingTokenSaved",
                "NpmStagingTokenRemoved",
                "MemberAdded",
                "MemberRemoved",
                "MemberRoleChanged",
                "MemberResourceBoundaryChanged",
                "MemberAccessRestricted",
                "MemberAccessReset",
                "MemberAccessRevoked",
                "OpenFixPullRequest",
                "RemoveLicenseOverlay",
                "RemoveMember",
                "ReorderAlertPolicyRules",
                "RequestPolicyException",
                "RollbackAlertPolicyMigration",
                "ResetInvitationLink",
                "ResetOrganizationSettingToDefault",
                "ResolveOauthCimdClientMetadata",
                "RevokeOauthToken",
                "RevokeOauthApplication",
                "RotateOauthRefreshToken",
                "RevokeApiToken",
                "RotateApiToken",
                "SendInvitation",
                "SessionRevokedByUser",
                "SetLabelSettingToDefault",
                "SetSsoBypassMemberships",
                "SetSsoBypassRbacRoles",
                "SlackBroadcastToolBroadcast",
                "SlackBroadcastToolOptOut",
                "StartAlertPolicyMigrationPreview",
                "SSOEmailVerificationCompleted",
                "SSOLoginCompleted",
                "SvdBackfillAlertUpstreams",
                "SvdBackfillLegacyOverlay",
                "SvdBackfillPatchAlertKeys",
                "SvdCanonicalizeAffectedRanges",
                "SvdGhsaUpload",
                "SvdImportLegacyGithubMatches",
                "SvdImportLegacyOnlyGhsas",
                "SvdImportLegacyOverlay",
                "SvdReprocessClusters",
                "SvdRetransformGhsaMirror",
                "SvdSeedLegacyGithubMatches",
                "SvdTruncateRederive",
                "SvdUpdateGithubRepoAdvisorySource",
                "SvdWorkerPause",
                "SyncOrganization",
                "TransferOwnership",
                "ScimGroupRoleMapped",
                "ScimMemberRoleAssigned",
                "UpdateAlertPolicy",
                "UpdateAlertPolicyRule",
                "UpdateAlertNote",
                "UpdateAccessPolicyAttachment",
                "UpdateAccessPolicy",
                "UpdateOrganizationPolicyEnforcement",
                "UpdateAlertTriage",
                "UpdateApiTokenCommitter",
                "UpdateApiTokenMaxQuota",
                "UpdateApiTokenName",
                "UpdateApiTokenScopes",
                "UpdateApiTokenVisibility",
                "UpdateAutopatchCurated",
                "UpdateAutopatchPrepareConfig",
                "UpdateFirewallCustomRegistry",
                "UpdateFirewallDeploymentConfig",
                "UpdateLabel",
                "UpdateLabelSetting",
                "UpdateLicenseOverlay",
                "UpdateOrganizationSetting",
                "UpdateRepoAccessRule",
                "UpdateTicketingConfiguration",
                "UpdateTicketingDestination",
                "UpdateWebhook",
                "UpgradeOrganizationPlan",
                "UserMagicLinkSent",
                "UserSignedIn",
                "UserSignedOut",
                "WithdrawPolicyExceptionRequest",
                "PurgeOrganizationData",
                "InitializeOAuthManagementPolicies",
                "OAuthClientCreated",
                "OAuthClientConfigured",
                "OAuthClientSecretRotated",
                "OAuthClientDisabled",
                "OAuthClientEnabled",
                "OAuthClientDeleted"
              ]
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Number of events per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page token",
            "schema": {
              "type": "string",
              "default": "1"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "A Unix timestamp in seconds to filter results prior to this date.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "bearerAuth": [
              "audit-log:list"
            ]
          },
          {
            "basicAuth": [
              "audit-log:list"
            ]
          }
        ],
        "description": "Paginated list of audit log events.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- audit-log:list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "event_id": {
                            "type": "string",
                            "description": "",
                            "default": ""
                          },
                          "created_at": {
                            "type": "string",
                            "description": "",
                            "default": ""
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "",
                            "default": ""
                          },
                          "country_code": {
                            "type": "string",
                            "description": "",
                            "default": "",
                            "nullable": true
                          },
                          "organization_id": {
                            "type": "string",
                            "description": "",
                            "default": "",
                            "nullable": true
                          },
                          "ip_address": {
                            "type": "string",
                            "description": "",
                            "default": "",
                            "nullable": true
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "",
                            "default": null,
                            "nullable": true
                          },
                          "status_code": {
                            "type": "integer",
                            "description": "",
                            "default": 0,
                            "nullable": true
                          },
                          "type": {
                            "type": "string",
                            "description": "",
                            "default": ""
                          },
                          "user_agent": {
                            "type": "string",
                            "description": "",
                            "default": "",
                            "nullable": true
                          },
                          "user_id": {
                            "type": "string",
                            "description": "",
                            "default": "",
                            "nullable": true
                          },
                          "user_email": {
                            "type": "string",
                            "description": "",
                            "default": ""
                          },
                          "user_image": {
                            "type": "string",
                            "description": "",
                            "default": ""
                          },
                          "organization_name": {
                            "type": "string",
                            "description": "",
                            "default": ""
                          }
                        },
                        "description": ""
                      },
                      "description": ""
                    },
                    "nextPage": {
                      "type": "string",
                      "description": "",
                      "default": "",
                      "nullable": true
                    }
                  },
                  "required": [
                    "nextPage",
                    "results"
                  ]
                }
              }
            },
            "description": "The paginated list of events in an organizations audit log and the next page querystring token."
          },
          "400": {
            "$ref": "#/components/responses/SocketBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/SocketUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/SocketForbidden"
          },
          "404": {
            "$ref": "#/components/responses/SocketNotFoundResponse"
          },
          "429": {
            "$ref": "#/components/responses/SocketTooManyRequestsResponse"
          }
        },
        "x-readme": {}
      }
    }
  }
}
```