cURL
curl --request GET \ --url https://api.projectdiscovery.io/v1/asset/policy/{policy_id}/events \ --header 'X-API-Key: <api-key>'
{ "data": { "events": [ { "event_type": "<string>", "subject_type": "<string>", "subject_id": "<string>", "status": "succeeded", "created_at": "2023-11-07T05:31:56Z", "id": "<string>", "subject_name": "<string>", "error_message": "<string>", "channel": "<string>", "destination": "<string>", "alert_config_id": "<string>", "asset_policy_id": "<string>", "updated_at": "2023-11-07T05:31:56Z", "seen": true, "message_payload": {} } ] }, "total": 123, "limit": 123, "offset": 123, "message": "<string>" }
Get the execution history for a specific asset policy, including apply actions, alert deliveries, and errors.
curl -X GET "https://api.projectdiscovery.io/v1/asset/policy/POLICY_ID/events?limit=20&offset=0" \ -H "X-Api-Key: YOUR_API_KEY"
Unique identifier of the asset policy
Maximum results per page (default: 50, max: 100)
Number of items to skip for pagination
Shared Response
Show child attributes
Was this page helpful?