List organization events
Changed onList events for an organization.
Events are records of actions taken across Socket products, such as firewall decisions and CLI/SDK actions.
The maximum date range per request is 365 days. When more results are available, the response body's "endCursor" property contains the cursor to pass as the "startAfterCursor" query parameter to retrieve the next page.
This endpoint consumes 10 units of your quota.
This endpoint requires the following org token scopes:
- telemetry-events:list
Request
- Base URLhttps://api.socket.dev/v0
- URLhttps://api.socket.dev/v0/orgs/{org_slug}/events
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
The slug of the organization
Query parameters
Specify the maximum number of results to return per page (intermediate pages may have fewer than this limit and callers should always check "endCursor" in response body to know if there are more pages)
The ISO 8601 date in YYYY-MM-DD format (e.g. "2025-01-01"). If not specified, defaults to the current date.
The date range in format like "7d" or "-7d" where "d" is days. A positive value means the range extends forward from the date, and a negative value means the range extends backward. Defaults to "-7d" (past week). Maximum range is 365 days. NOTE: "latest" is not supported for events.
The pagination cursor that was returned as the "endCursor" property in previous request. Unsupported cursor aliases return 400; unrelated query parameters are unchanged.
Sort type (eventCreatedAt)
Search keywords to filter events
Comma-separated list of alert actions (one of "error", "warn", "monitor", "ignore"). Filters on the policy-decided alert_action column.
Comma-separated list of alert actions (one of "error", "warn", "monitor", "ignore"). Filters on the policy-decided alert_action column.
Name of artifact
Name of artifact
Filter by artifact namespace
Filter by artifact namespace
Filter by artifact purl (matches on purl without version)
Filter by artifact purl (matches on purl without version)
Comma-separated list of artifact types (e.g. "npm", "pypi", "gem", "maven", "golang", etc.) that should be included
Comma-separated list of artifact types (e.g. "npm", "pypi", "gem", "maven", "golang", etc.) that should be excluded
Filter by artifact version
Filter by artifact version
Comma-separated list of client actions (e.g., "install", "scan", "block")
Comma-separated list of client actions (e.g., "install", "scan", "block")
Comma-separated list of client machine IDs for exact matching
Comma-separated list of client machine IDs for exact matching
Comma-separated list of client product names (e.g., "socket-cli", "socket-firewall")
Comma-separated list of client product names (e.g., "socket-cli", "socket-firewall")
Comma-separated list of HTTP request user-agent header values for exact matching
Comma-separated list of HTTP request user-agent header values for exact matching
Comma-separated list of event categories (e.g., "audit", "analytics", "debug")
Comma-separated list of event categories (e.g., "audit", "analytics", "debug")
Event created at (YYYY-MM-DD HH:MM:SS in UTC time zone)
Event created at (YYYY-MM-DD HH:MM:SS in UTC time zone)
Event created at (YYYY-MM-DD HH:MM:SS in UTC time zone)
Event created at (YYYY-MM-DD HH:MM:SS in UTC time zone)
Event created at (YYYY-MM-DD HH:MM:SS in UTC time zone)
Comma-separated list of event levels ("trace", "debug", "info", "warn", "error", "fatal")
Comma-separated list of event levels ("trace", "debug", "info", "warn", "error", "fatal")
Comma-separated list of event sources (e.g., "api-v0", "socket-cli", "socket-firewall")
Comma-separated list of event sources (e.g., "api-v0", "socket-cli", "socket-firewall")
Comma-separated list of event types (e.g., "show_ide_text_decoration", "firewall_package_download")
Comma-separated list of event types (e.g., "show_ide_text_decoration", "firewall_package_download")
Comma-separated list of client IP addresses (HTTP request remote IPs) for exact matching
Comma-separated list of client IP addresses (HTTP request remote IPs) for exact matching
Comma-separated list of repo full names that should be included
Comma-separated list of repo full names that should be excluded
Comma-separated list of repo slugs that should be included
Comma-separated list of repo slugs that should be excluded
Response
The paginated array of event items for the organization and related metadata.
Changes
- info
endpoint added
- info