Get a list of application profiles by last policy evaluation date with the REST API
You can use the Applications REST API to list the application profiles that have had an event that triggered a policy evaluation after a specific date. The events that trigger policy evaluations are scans, approved mitigations, new component vulnerability releases, and policy changes.
Send the following request to return the list of application profiles with a policy evaluation after a specific date.
For datetime, use the format yyyy-mm-ddThh:mm:ss.000Z.
Before you begin
To authenticate with Veracode, ensure you have set up API authentication for HMAC or OAuth 2.0.
Veracode HMAC authentication
http --auth-type=veracode_hmac GET "https://api.veracode.com/appsec/v1/applications?policy_compliance_checked_after={datetime}"
OAuth 2.0 Client Credentials authentication
- Windows (PowerShell)
- macOS, Linux, or UNIX
http --auth-type=oauth2-client-credentials-flow `
--auth="$($env:VERACODE_CLIENT_ID):$($env:VERACODE_CLIENT_SECRET)" `
--token-endpoint="$($env:VERACODE_TOKEN_URL)" `
--token-request-type=basic GET "https://api.veracode.com/appsec/v1/applications?policy_compliance_checked_after={datetime}"
http --auth-type=oauth2-client-credentials-flow \
--auth="$VERACODE_CLIENT_ID:$VERACODE_CLIENT_SECRET" \
--token-endpoint="$VERACODE_TOKEN_URL" \
--token-request-type=basic GET "https://api.veracode.com/appsec/v1/applications?policy_compliance_checked_after={datetime}"