Get a list of sandboxes for an application profile with the REST API
Send the following request to return the list of sandboxes that belong to a specific application profile GUID.
applicationGuid is the numeric ID, separated with hyphens, for the target application. For example: 7336556f-9ef2-4a1c-b536-be8608822db6.
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/{applicationGuid}/sandboxes"
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/{applicationGuid}/sandboxes"
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/{applicationGuid}/sandboxes"