Revoking API Credentials with the Identity API

Veracode APIs

This use case scenario provides the Identity REST API command for revoking Veracode API credentials.

After revoking Veracode API credentials, you can no longer use those credentials to access Veracode. You can use the Veracode Platform or Veracode Identity APIs to generate new API credentials.

Use this command to revoke the Veracode API credentials for a specific API ID:
http --auth-type=veracode_hmac --json DELETE "https://api.veracode.com/api/authn/v2/api_credentials/{apiCredsId}"

The credentials expire immediately after you revoke them.

Note: You must include the --json parameter to force the command to send the Content-Type entity header application/json.