---
title: "Auto-provision and validate one application"
method: POST
path: "/api/v2/runtimeValidation/autoProvisionAndValidate"
tags: ["Runtime Validation"]
---

# Auto-provision and validate one application

`POST /api/v2/runtimeValidation/autoProvisionAndValidate`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/runtimeValidation/autoProvisionAndValidate`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Provision a SOURCE_BUILD runtime validation profile for one application (build and run it from its own source inside an isolated container) and immediately queue a full-application validation run, with no manual profile configuration. Use a completed successful FullScan id from the same repository. Rejects a duplicate pending or processing run for the application.

## Request body

- RuntimeValidationAutoProvisionRequest
  - `organizationId` string
  - `profileId` string, required
  - `codeScanId` string, required: Completed successful FullScan id from the same repository as the runtime validation profile.

## Response `200`

Queued validation run

- RuntimeValidationRunSummary
  - `id` string, required
  - `profileId` string, required
  - `codeScanId` string, required
  - `status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELLED', required: Queue and lifecycle status for a runtime validation run.
  - `triggerReason` 'USER_REQUESTED' | 'AUTO_AFTER_SCAN', required: Why the validation run was created.
  - `triggeredByUserId` string, nullable, required
  - `startedAt` string, date-time, nullable, required
  - `completedAt` string, date-time, nullable, required
  - `cancelledAt` string, date-time, nullable, required
  - `summary` string, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `403`: Error Response
- `404`: Error Response
- `409`: Error Response
- `412`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
