List risk events
Changed onRetrieve risk state-transition events (opened, resolved, reopened). When polling for new events, always pass inserted_after_time, starting from the time the sync begins (or 1970-01-01T00:00:00Z for full history), and follow next_page_token until it is empty. For the next poll, pass the inserted_at and id of the last event processed as inserted_after_time and inserted_after_event_id. Without inserted_after_time, events are not returned in insert order, so the last event is not a reliable cursor. Restarting from an earlier event returns events again, so events should be deduplicated by id.<br><br>A single request can read events for at most 1000 suppliers. For a supply chain with more than 1000 suppliers, supplier_ids must be set to narrow the request to 1000 or fewer; omitting it returns a 400.<br><br>This endpoint does not cost credits to execute.
Request
- Base URLhttps://api.platform.censys.io
- URLhttps://api.platform.censys.io/v1/supplychains/{supply_chain_id}/risk-events
- AuthHTTP bearer
Path parameters
The ID of a Censys supply chain, or the literal 'default' for your organization's primary supply chain. Obtain the supply chain ID using the list supply chains endpoint or from the Supplier Risk URL in the web console.
Query parameters
The ID of a Censys organization to associate the request with. See the Getting Started docs for more information.
Narrow results to one or more Censys suppliers, up to 1000. For multiple values, include comma-separated values. When omitted, every supplier in the supply chain is included, so a supply chain with more than 1000 suppliers must be narrowed with this parameter.
[ "11111111-2222-3333-4444-555555555555" ]
Filter to one or more change types. For multiple values, include comma-separated values.
Filter to one or more severities. For multiple values, include comma-separated values. Connectors are expected to default to HIGH,CRITICAL for alerting use cases.
Filter to one or more risk type IDs, up to 100, e.g. CVE-2021-44228. For multiple values, include comma-separated values.
[ "CVE-2021-44228" ]
Filter to risk events flagged (or not flagged) for rapid response. Omit to include both.
Maximum number of risk events to return per page.
Only return events that occurred at or after this time. Must be a valid RFC3339 string, must be provided together with end_time, and cannot be combined with inserted_after_time.
Only return events that occurred at or before this time. Must be a valid RFC3339 string, must be provided together with start_time, must not be before start_time, and cannot be combined with inserted_after_time.
Pagination token from a previous response to retrieve the next page of results. When paginating, provide the same filters, start_time, end_time, inserted_after_time and inserted_after_event_id as the request that returned the token.
Only return events inserted after this time. Must be a valid RFC3339 string. When polling for new events, always include this, starting from the time the sync begins (or 1970-01-01T00:00:00Z for full history), then continue from the inserted_at of the last event processed. Cannot be combined with start_time and end_time.
The id of the last event processed, used together with inserted_after_time. Of the events inserted at exactly inserted_after_time, only those whose id sorts after this one are returned. Requires inserted_after_time.
Headers
The ID of a Censys organization to associate the request with. See the Getting Started docs for more information. Note: The header parameter is supported for atypical use cases; we recommend always providing this field via the query parameter.
Response
Risk events returned successfully
Changes
- info
endpoint added
- info