v2

latestOpenAPI 3.0.1private2026-07-2667209320.4 KB
Perch

Start a hosted scan

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

ParameterDefaultDescription
id""
name""
command{}

Response

ParameterDefaultDescription
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.

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

Path parameters

appIdstring uuid required

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.

Request body

idstring
namestring

Response

OK

scanKeystring