StackHawk Documentation StackHawk Logo HawkDocs

No results found

Try different keywords or check your spelling

Search documentation

Find guides, API references, and more

esc

Start a hosted scan

POST /api/v1/app/{appId}/perch/start

Start a Scan

Provisions the resources needed to run a hosted security scan and starts the scan asynchronously.

Prerequisites

  • The application must be a Hosted application type
  • The target domain must be verified for hosted scanning
  • No scan should already be running for this application

Request Body

Parameter Default Description
id ""
name ""
command {}

Response

Parameter Default Description
scanKey ""
{
	"scanKey": ""
}

Errors

  • 409 Conflict: A scan is already running for this application
  • 400 Bad Request: The application is not verified for cloud scanning or is not a cloud application
  • 404 Not Found: Application not found or user doesn't have access

👥 Teams Supported If the application belongs to a StackHawk Team, only members of the Team can call this endpoint. 🧾 Audited This is recorded as SCAN_STARTED User Activity.

Requires write:scan permission.

Path parameters

appIdstring · uuidrequired

UUID identifier for this StackHawk Application.

Query parameters

envIdstring · uuid

Optional UUID identifier of the environment to scan. Defaults to the app's default environment.

Body

command
perch.PerchCommand
Hide child attributesShow child attributes
command.command
enum<string>
12 available options
NOOPSCAN_STARTSCAN_STOPRESCAN_STARTSCREENR_START_BROWSERSCREENR_START_MCPSCREENR_START_SCREENRSCREENR_START_AUTH_ANALYSISSCREENR_EXPORT_SESSIONSCREENR_STOPCONFIG_VALIDATEAUTH_VALIDATE
command.config
string
command.errors
perch.PerchError[]
Hide child attributesShow child attributes
command.errors.errorType
enum<string>
4 available options
UNKNOWNAUTHENTICATIONPROVISIONINGDEVICE
command.errors.message
string
command.id
string
command.name
string
id
string
name
string

Response

OK

scanKey
string
scanKey
string

Bad Request

Unauthorized

Your privacy settings

We use first and third party cookies to ensure that we give you the best experience on our website and in our products.