{"openapi":"3.0.3","info":{"title":"Autoproof Public API V2","version":"0.1.0","description":"Public contract surface for Autoproof V2."},"servers":[{"url":"/v2"}],"paths":{"/admin/organizations/{organizationId}/runtime-replays/analysis-baselines":{"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/ApiKeyHeader"}],"post":{"operationId":"freezeDevAnalysisBaseline","summary":"Freeze an accepted common baseline for normal DEV analyses of one exact source.","description":"Requires a current system administrator with an organization-bound API key, POST member permission and DEV replay eligibility. The owned repository, source archive digest, sealed baseline generation and evaluation manifest are immutable. Consumers use their normal analysis workflow and isolated fresh targets. The evaluation manifest digest is an administrator's audit reference; the external collector verifies it against its frozen inputs and consumer receipts. A failed restore retains normal configuration; its comparison environment is then unconfirmed. Read back an uncertain POST using the repository and archive digest.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["repositoryId","sourceArchiveSha256","configurationId","baselineSha256","baselineGeneration","evaluationManifestSha256"],"properties":{"repositoryId":{"type":"string","format":"uuid"},"sourceArchiveSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"configurationId":{"type":"string","format":"uuid"},"baselineSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baselineGeneration":{"type":"string","pattern":"^[1-9][0-9]*$"},"evaluationManifestSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}}}},"responses":{"200":{"description":"Frozen baseline identity or identical prior admission."},"401":{"description":"Missing or invalid API key."},"403":{"description":"Organization or administrator permission denied."},"404":{"description":"DEV eligibility or owned baseline unavailable."},"409":{"description":"Unaccepted source or conflicting immutable binding."},"429":{"description":"Public API rate limit exceeded."}}}},"/admin/organizations/{organizationId}/runtime-replays/analysis-baselines/{repositoryId}/{archiveSha256}":{"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"archiveSha256","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"}},{"$ref":"#/components/parameters/ApiKeyHeader"}],"get":{"operationId":"getDevAnalysisBaseline","summary":"Read the original immutable DEV common baseline binding.","description":"Readback confirms the frozen metadata. It does not confirm current baseline usability.","responses":{"200":{"description":"Frozen baseline identity; no runtime capability is issued."},"401":{"description":"Missing or invalid API key."},"403":{"description":"Organization or administrator permission denied."},"404":{"description":"DEV eligibility or original binding unavailable."},"429":{"description":"Public API rate limit exceeded."}}}},"/admin/organizations/{organizationId}/runtime-replays/product-rounds":{"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/ApiKeyHeader"}],"post":{"operationId":"startDevRuntimeProductRound","summary":"Issue one DEV-only product Q or R job.","description":"Requires an active system administrator API key bound to the path organization, normal public API plan and rate-limit eligibility, and the DEV replay allowlist. The requestId is immutable; an uncertain response must be read back, never retried with a new ID. Each round has its own product deadline. No external witness is required.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["requestId","configurationExecutionId","roundNumber"],"properties":{"requestId":{"type":"string","format":"uuid"},"configurationExecutionId":{"type":"string","format":"uuid"},"roundNumber":{"type":"integer","minimum":0,"maximum":10},"previousAttemptId":{"type":"string","format":"uuid","nullable":true}}}}}},"responses":{"202":{"description":"Product round admitted; response is the raw product round result."},"401":{"description":"Missing or invalid API key."},"403":{"description":"Organization, membership, system administrator grant or plan denied."},"404":{"description":"DEV replay or approved configuration unavailable."},"409":{"description":"Request or predecessor conflicts with existing state."},"429":{"description":"Public API rate limit exceeded."}}}},"/admin/organizations/{organizationId}/runtime-replays/product-rounds/{attemptId}":{"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"attemptId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/ApiKeyHeader"}],"get":{"operationId":"getDevRuntimeProductRound","summary":"Read a DEV product round result using its original request ID.","description":"Requires a valid organization-bound system administrator API key and DEV eligibility. Readback does not require the POST member-role permission.","responses":{"200":{"description":"Raw product status, individual deadline, task timing, failure and cleanup result."},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key access denied."},"404":{"description":"DEV replay or attempt unavailable."},"429":{"description":"Public API rate limit exceeded."}}}},"/admin/organizations/{organizationId}/runtime-replays/{attemptId}":{"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"attemptId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/ApiKeyHeader"}],"get":{"operationId":"getHistoricalDevRuntimeReplay","summary":"Read preserved legacy DEV replay evidence with an organization-bound system administrator API key.","responses":{"200":{"description":"Historical product replay result."},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key access denied."},"404":{"description":"DEV replay or attempt unavailable."},"429":{"description":"Public API rate limit exceeded."}}}},"/usage":{"get":{"operationId":"getPublicUsageSummary","summary":"Return API-key-bound quota and usage summary.","description":"Public API clients authenticate with `X-API-Key`; the organization is resolved from the API key instead of a path parameter.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"}],"responses":{"200":{"description":"Public usage summary for plan, verification, and member quotas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUsageSummaryResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read organization usage, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Organization is missing or inactive."}}}},"/repositories":{"get":{"operationId":"listRepositories","summary":"List repositories for the API key organization.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"archive_state","in":"query","required":false,"schema":{"type":"string","enum":["active","archived","all"],"default":"active"}}],"responses":{"200":{"description":"Repository page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryListResponse"}}}},"400":{"description":"Pagination cursor is malformed."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"422":{"description":"Repository list query parameter is invalid."}}},"post":{"operationId":"createRepository","summary":"Create a repository reference for the API key organization.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryCreateRequest"}}}},"responses":{"202":{"description":"Repository accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResponse"}}}},"400":{"description":"Provider integration is required or unavailable for access_mode=provider_integration."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below member, is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`). The organization plan's repository cap is reached (`repository_limit_exceeded`; details carry `limit` and `registered`)."},"409":{"description":"The repository is archived and must be restored, or deletion is in progress."},"422":{"description":"Request body is missing or invalid, or repository URL/access mode is invalid."}}}},"/repositories/notification-settings":{"get":{"operationId":"listRepositoryNotificationSettings","summary":"List configured repository Slack and Jira settings.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"}],"responses":{"200":{"description":"Configured repository notification settings keyed by repository ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryNotificationSettingsListResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."}}}},"/repositories/{repositoryId}":{"get":{"operationId":"getRepository","summary":"Return a repository for the API key organization.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Repository.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."}}},"delete":{"operationId":"deleteRepository","summary":"Start hard deletion of an archived repository.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"impact_version","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Repository deletion job accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionJobResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below organization admin, is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."},"409":{"description":"Repository is active, already purging, or its deletion impact changed."}}}},"/repositories/{repositoryId}/deletion-impact":{"get":{"operationId":"getRepositoryDeletionImpact","summary":"Preview the exact impact of deleting a repository.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Current deletion impact and confirmation version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionImpactResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."}}}},"/deletion-jobs/{jobId}":{"get":{"operationId":"getDeletionJob","summary":"Read a resource deletion job.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"jobId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Deletion job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionJobResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Deletion job was not found."}}}},"/repositories/{repositoryId}/refresh":{"put":{"operationId":"refreshRepositoryMetadata","summary":"Refresh provider metadata for a provider-integrated repository or a public GitHub repository.","description":"Uses the organization provider credential. GitHub is read with an installation token of the organization's GitHub App, also for a public GitHub repository registered by URL (access_mode public) outside the installation. Without a GitHub App the server does not read GitHub: such a repository answers 400 and the client reads its branches and tags from GitHub itself. Other public repositories are not read here.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Repository with freshly fetched branches and tags.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResponse"}}}},"400":{"description":"Repository is neither provider-integrated nor a public GitHub repository, or the organization has no provider connection for it (`provider_integration_required`)."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below member, is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."},"409":{"description":"Provider access to the repository is disconnected."},"502":{"description":"Provider metadata request failed."}}}},"/repositories/{repositoryId}/automation/schedule":{"parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/RepositoryIdPath"}],"get":{"operationId":"getPublicRepositoryScanSchedule","summary":"Beta: read the repository's nightly scan schedule.","description":"Beta. Scheduled scans are enabled per organization during the beta; elsewhere every schedule route answers `404 scheduled_scans_not_enabled`. Any organization member's key may read the schedule. The response also carries the latest occurrence and the latest completed result. `unavailable_reason` explains why a schedule cannot be turned on right now, including `scheduled_scan_limit_reached` when the organization already has the beta maximum of repositories with an enabled schedule (30).\n","x-beta":true,"responses":{"200":{"description":"Schedule and latest scheduled scan results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryScanSchedule"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"The key owner is no longer an organization member, or the organization is on Starter (`api_key_paid_plan_required`).\n"},"404":{"description":"The repository was not found in the API key's organization (`scheduled_scan_not_found`), or scheduled scans are not enabled for the organization (`scheduled_scans_not_enabled`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded for this API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}},"put":{"operationId":"updatePublicRepositoryScanSchedule","summary":"Beta: set the repository's nightly scan schedule.","description":"Beta. Requires an API key whose owner currently has the organization owner or admin role. Both fields are required and repeating the same request is safe (an unchanged request records no audit event). An enabled schedule scans the repository's current GitHub default branch every `interval_days` nights between 00:00 and 06:00 KST; each repository gets a fixed start time in that window, and the first scan runs the next night. Scans go through the normal analysis queue and use the organization's verification quota. A night whose default branch commit already has a completed analysis is recorded as `NO_CHANGE` and starts no analysis. Turning a schedule off is always allowed; turning it on requires a paid plan and a GitHub App repository the installation can access. During the beta an organization can have at most 30 repositories with an enabled schedule; changing the interval of an enabled schedule is not limited.\n","x-beta":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryScanScheduleUpdate"}}}},"responses":{"200":{"description":"Saved schedule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryScanSchedule"}}}},"400":{"description":"The body is missing a boolean `enabled` or an integer `interval_days` (`invalid_schedule_settings`), `interval_days` is outside 1-7 (`invalid_interval_days`), or the repository cannot be scheduled now (`unsupported_repository`, `repository_inactive`, `installation_not_ready`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"The key owner is not an organization owner or admin (`insufficient_permission`), enabling needs a paid plan (`plan_not_entitled`), the organization is on Starter (`api_key_paid_plan_required`), or the organization already has the maximum number of repositories with an enabled schedule (`scheduled_scan_limit_reached`; details carry `limit` and `enabled`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"The repository was not found in the API key's organization (`scheduled_scan_not_found`), or scheduled scans are not enabled for the organization (`scheduled_scans_not_enabled`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded for this API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/repositories/{repositoryId}/automation":{"parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/RepositoryIdPath"}],"get":{"operationId":"getPublicRepositoryAutomationPolicy","summary":"Return a repository GitHub automation policy.","description":"Same policy as the web app's repository automation settings. The organization is the API key's organization. Any organization member's key may read it. A repository without a stored policy returns the disabled default.\n","responses":{"200":{"description":"Effective repository policy and authoritative GitHub capability.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationPolicyResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"The key owner is no longer an organization member, the organization is on Starter (`api_key_paid_plan_required` or `github_automation_paid_plan_required`).\n"},"404":{"description":"Repository was not found in the API key's organization."},"429":{"description":"Rate limit exceeded for this API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}},"put":{"operationId":"updatePublicRepositoryAutomationPolicy","summary":"Replace a repository GitHub automation policy.","description":"Full replacement: every field is required. Requires an API key whose owner currently has the organization owner or admin role; the role is checked on every request. While `pull_request_automation_enabled` is false, `pull_request_trigger.enabled` must be false and an enabled pull request trigger is rejected with `422 pull_request_automation_unavailable`. Use `$default` in `push_trigger.branches` to follow the repository default branch. The request is safe to repeat.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationPolicyRequest"}}}},"responses":{"200":{"description":"Updated effective policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationPolicyResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"The key owner is not an organization owner or admin (`insufficient_permission`), or the organization is on Starter (`api_key_paid_plan_required` or `github_automation_paid_plan_required`).\n"},"404":{"description":"Repository was not found in the API key's organization."},"422":{"description":"The policy is incomplete or invalid (`automation_policy_incomplete`, `push_branches_required`, `pull_request_base_branches_required`, `draft_pr_requires_patch_validation`, `invalid_branch_selector`, `too_many_branch_selectors`, `pull_request_automation_unavailable`).\n"},"429":{"description":"Rate limit exceeded for this API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/repositories/{repositoryId}/automation/status":{"parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/RepositoryIdPath"}],"get":{"operationId":"getPublicRepositoryAutomationStatus","summary":"Return sanitized latest automation decisions and provider links.","responses":{"200":{"description":"Latest trigger, Patch Validation, Jira and Draft PR status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryAutomationStatusResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"The key owner is no longer an organization member, or the organization is on Starter (`api_key_paid_plan_required` or `github_automation_paid_plan_required`).\n"},"404":{"description":"Repository was not found in the API key's organization."},"429":{"description":"Rate limit exceeded for this API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/repositories/{repositoryId}/archive":{"post":{"operationId":"archiveRepository","summary":"Archive a repository and its terminal analyses.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Repository is archived or was already archived."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below organization admin, is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."},"409":{"description":"Repository has active analysis, retry, or patch-validation work."}}}},"/repositories/{repositoryId}/restore":{"post":{"operationId":"restoreRepository","summary":"Restore a repository and analyses archived by its archive batch.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Repository is active or was already active."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below organization admin, is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."},"409":{"description":"Repository is purging and cannot be restored."}}}},"/repositories/{repositoryId}/commits":{"get":{"operationId":"listRepositoryCommits","summary":"List commits for a ref of a provider-integrated repository or a public GitHub repository.","description":"Uses the organization provider credential, like the refresh endpoint: a public GitHub repository is read with the organization's GitHub App and answers 400 without one.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"ref","in":"query","required":true,"schema":{"type":"string"}},{"name":"ref_type","in":"query","required":false,"schema":{"type":"string","enum":["branch","tag"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":200}}],"responses":{"200":{"description":"Commit history for the requested ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryCommitListResponse"}}}},"400":{"description":"Repository is neither provider-integrated nor a public GitHub repository, or the organization has no provider connection for it (`provider_integration_required`)."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."},"409":{"description":"Provider access to the repository is disconnected."},"422":{"description":"Ref, ref type, or limit is invalid."},"502":{"description":"Provider commit request failed."}}}},"/archive-repositories":{"post":{"operationId":"createArchiveRepository","summary":"Create an archive-backed repository without uploading source.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveRepositoryCreateRequest"}}}},"responses":{"201":{"description":"Archive repository.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below member, or the organization is on Starter (`api_key_paid_plan_required`). The organization plan's repository cap is reached (`repository_limit_exceeded`; details carry `limit` and `registered`)."},"409":{"description":"An archive repository with this identity is archived or being deleted."},"422":{"description":"Repository name is missing or invalid."}}}},"/demo/redeem":{"post":{"operationId":"redeemDemoLinkForAgent","summary":"Exchange a sales demo link code for an expiring API key.","description":"No credential is sent; the demo link code is the credential. The first redemption of a\nlink provisions the demo organization and starts its 72-hour or 7-day lifetime. Each\nredemption issues one more API key (up to `max_api_keys` per link) that expires with the\ndemo account. Rate limited per client IP.\n","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoRedeemRequest"}}}},"responses":{"200":{"description":"Demo API key. The key is returned only in this response.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoAgentRedemptionResponse"}}}},"404":{"description":"Code does not match a demo link (`demo_link_not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"409":{"description":"The link already issued its maximum number of API keys (`demo_link_api_key_limit_reached`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"410":{"description":"The link or its demo account expired (`demo_link_expired`) or was revoked (`demo_link_revoked`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"422":{"description":"Code is missing or malformed (`demo_link_invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Too many redemption attempts from this client."}}}},"/repositories/{repositoryId}/archive-revisions":{"get":{"operationId":"listSourceArchiveRevisions","summary":"List source archive inputs for an archive repository.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Source archive input list, including upload and selection state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSourceArchiveRevisionListResponse"}}}},"401":{"description":"API key is missing or invalid."},"404":{"description":"Archive repository was not found."}}}},"/repositories/{repositoryId}/archive-revisions/upload-session":{"post":{"operationId":"createSourceArchiveRevisionUploadSession","summary":"Create a direct upload session for a single-use analysis source input.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicArchiveRevisionUploadSessionRequest"}}}},"responses":{"201":{"description":"Uploading source archive input and direct upload URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSourceArchiveRevisionUploadSessionResponse"}}}},"400":{"description":"Upload request is invalid or storage is unavailable."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below member, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Archive repository was not found."},"422":{"description":"Request body is missing or invalid."}}}},"/repositories/{repositoryId}/archive-revisions/{revisionId}":{"delete":{"operationId":"abandonSourceArchiveRevision","summary":"Abandon an unclaimed single-use source archive input.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"Cleanup was requested or had already been requested."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below member, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository or source upload was not found."},"409":{"description":"Source upload has already been claimed by an execution attempt."}}}},"/repositories/{repositoryId}/archive-revisions/{revisionId}/selection":{"post":{"operationId":"selectSourceArchiveCommit","summary":"Select the exact Git commit to use from an inspected source upload.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSourceArchiveSelectionRequest"}}}},"responses":{"200":{"description":"Selected attempt input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSourceArchiveRevision"}}}},"400":{"description":"The upload is not Git-backed or the commit is absent."},"404":{"description":"Repository or source upload was not found."},"409":{"description":"Source upload is not ready or has already been claimed."}}}},"/repositories/{repositoryId}/scans":{"post":{"operationId":"createRepositoryScan","summary":"Trigger a repository-scoped scan.","description":"Public scan is the user-facing representation of an internal analysis. The response intentionally hides `analysisId` and uses `commit_sha` as the public lookup key. If `commit_sha` is omitted, V2 resolves the requested ref to the provider's current commit before accepting the scan. If `ref_type` is omitted, V2 detects whether the ref is a provider branch or tag before scheduling the scan. V2 reads GitHub only with the organization's GitHub App installation token. Without a GitHub App connection, a public GitHub repository needs `ref`, `ref_type` and `commit_sha` (and a Git member of an Application needs a Git item in `application_source_inputs`); a missing value is rejected with 422 `source_selection_required` instead of being read from GitHub. When `sast_input` is absent, V2 runs direct scan mode. When `sast_input` is present, V2 runs verify-only mode for caller-supplied Semgrep/OpenGrep native JSON or SARIF results and does not require the runner to execute OpenGrep for the SAST phase.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicScanCreateRequest"}}}},"responses":{"202":{"description":"Scan accepted. Summary is omitted on trigger responses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicScanResponse"}}}},"400":{"description":"SAST input format or size is invalid."},"401":{"description":"API key is missing or invalid."},"402":{"description":"Verification quota is exhausted before scan resources are scheduled. The `quota_exceeded` error details include `quota_scope`, `current_plan`, `used`, `limit`, `reset_at`, `upgrade_available`, and `recommended_action`.\n"},"403":{"description":"API key role is below member, is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Repository was not found."},"409":{"description":"Repository is archived or not ready, the scan target is already in progress, or Idempotency-Key was reused with a different request body."},"413":{"description":"Repository exceeds the caller's plan `github_api_size_limit_kib` guardrail."},"422":{"description":"Request body is missing or invalid, ref/ref_type/provider ref resolution failed, or a public GitHub repository of an organization without a GitHub App connection needs `ref`, `ref_type` and `commit_sha` (`source_selection_required`)."},"503":{"description":"New workflow admission is temporarily closed for a controlled deployment. Retry-After is returned."}}},"get":{"operationId":"listRepositoryScans","summary":"List a repository's scan history.","description":"Public API clients authenticate with `X-API-Key`; viewer, member, admin, and owner roles may read scans.         optional consistency check and, when supplied, must match the API key's organization. Returns repository-scoped scans in reverse creation order. Summaries are omitted from the list response; use the per-commit detail endpoint for counts.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Repository scan page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicScanListResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."}}}},"/repositories/{repositoryId}/runtime-configurations":{"post":{"operationId":"startPublicRepositoryRuntimeConfiguration","summary":"Build and validate one repository runtime without running an analysis.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"},{"$ref":"#/components/parameters/RepositoryIdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryRuntimeConfigurationRequest"}}}},"responses":{"202":{"description":"Runtime configuration accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRuntimeConfigurationResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key role is below member."},"404":{"description":"Repository or source archive was not found."},"409":{"description":"Repository source is unavailable, a configuration is already running, or Idempotency-Key was reused with a different request body."},"422":{"description":"Runtime configuration input is invalid, or a public GitHub repository of an organization without a GitHub App connection needs `ref`, `ref_type` and `commit_sha` (`source_selection_required`)."},"503":{"description":"New workflow admission is temporarily closed for a controlled deployment. Retry-After is returned."}}}},"/repositories/{repositoryId}/runtime-configurations/{configurationId}":{"get":{"operationId":"getPublicRepositoryRuntimeConfiguration","summary":"Read one repository runtime configuration status.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/RepositoryIdPath"},{"name":"configurationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Runtime configuration status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRuntimeConfigurationResponse"}}}},"401":{"description":"API key is missing or invalid."},"404":{"description":"Repository or runtime configuration was not found."}}}},"/repositories/{repositoryId}/scans/{commitSha}":{"get":{"operationId":"getRepositoryScan","summary":"Return the latest scan for a repository commit.","description":"Public API clients authenticate with `X-API-Key`. Resolves the latest non-deleted analysis for `{repositoryId, commitSha}` and returns raw detection, deduplicated finding, accepted classification, and security-verdict counts.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commitSha","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Latest scan for the commit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicScanResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Scan was not found for this repository and commit."}}}},"/repositories/{repositoryId}/scans/{commitSha}/events":{"get":{"operationId":"streamRepositoryScanEvents","summary":"Stream repository scan progress as Server-Sent Events.","description":"Outbound SSE stream for a single repository commit scan. The stream emits sanitized `PublicScanResponse` payloads only; internal `analysisId` and `attemptId` are never exposed. Event names are `scan.status` for intermediate status or summary changes, `scan.completed` / `scan.failed` for terminal states, `error` when the scan does not exist at connect time, and `timeout` when the bounded server TTL elapses and the client should poll the detail endpoint. The durable PostgreSQL event cursor is authoritative; notifications are used only to wake connected streams. Public API clients authenticate with `X-API-Key`.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commitSha","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"`text/event-stream` response containing `event:` and `data:` frames. Missing scans are reported as an `error` SSE frame rather than a 404 HTTP status so clients can handle all stream outcomes uniformly.\n","headers":{"Cache-Control":{"schema":{"type":"string"},"description":"`no-cache, no-transform`"},"X-Accel-Buffering":{"schema":{"type":"string"},"description":"`no`"}},"content":{"text/event-stream":{"schema":{"type":"string"},"examples":{"status":{"summary":"Intermediate status frame","value":"event: scan.status\ndata: {\"commit_sha\":\"abc123\",\"ref\":\"main\",\"ref_type\":\"branch\",\"status\":\"ANALYZING\",\"scanned_at\":\"2026-06-17T00:00:00Z\",\"summary\":{\"findings_count\":7,\"deduplicated_findings_count\":5,\"verified_count\":4,\"terminal_count\":4,\"pending_count\":1,\"state_counts\":{\"verifying\":1,\"retrying\":0,\"failed\":0,\"filtered\":0,\"quota_blocked\":0},\"classification_counts\":{\"exploitable_runtime_confirmed\":3,\"exploitable_structurally_confirmed\":0,\"not_exploitable\":1,\"needs_review\":0},\"true_positive_count\":3,\"false_positive_count\":1}}\n"},"completed":{"summary":"Terminal completion frame","value":"event: scan.completed\ndata: {\"commit_sha\":\"abc123\",\"ref\":\"main\",\"ref_type\":\"branch\",\"status\":\"COMPLETED\",\"scanned_at\":\"2026-06-17T00:00:00Z\",\"summary\":{\"findings_count\":7,\"deduplicated_findings_count\":5,\"verified_count\":4,\"terminal_count\":4,\"pending_count\":1,\"state_counts\":{\"verifying\":1,\"retrying\":0,\"failed\":0,\"filtered\":0,\"quota_blocked\":0},\"classification_counts\":{\"exploitable_runtime_confirmed\":3,\"exploitable_structurally_confirmed\":0,\"not_exploitable\":1,\"needs_review\":0},\"true_positive_count\":3,\"false_positive_count\":1}}\n"},"missing":{"summary":"Missing scan frame","value":"event: error\ndata: {\"code\":\"not_found\",\"message\":\"Scan not found.\"}\n"}}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."}}}},"/repositories/{repositoryId}/verifications":{"get":{"operationId":"listRepositoryVerifications","summary":"List logical verification units after cross-commit finding dedup and same-sink grouping.","description":"Each row is one customer-visible verification decision. Group members are not independently actionable.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","schema":{"type":"string"}},{"name":"new_only","in":"query","schema":{"type":"boolean","default":false}},{"name":"state","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"include_archived","in":"query","schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Verification unit page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationListResponse"}}}},"400":{"description":"Pagination cursor is malformed."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read this repository."},"422":{"description":"Verification unit filter is invalid."}}}},"/repositories/{repositoryId}/verifications/stats":{"get":{"operationId":"getRepositoryVerificationStats","summary":"Return logical verification unit counts for the same list scope.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","schema":{"type":"string"}},{"name":"new_only","in":"query","schema":{"type":"boolean","default":false}},{"name":"state","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"include_archived","in":"query","schema":{"type":"boolean","default":false}},{"name":"analysis_id","in":"query","description":"Include per-analysis counts only for these analyses. Omit for summary-only stats.","schema":{"type":"array","maxItems":50,"items":{"type":"string","format":"uuid"}}}],"responses":{"200":{"description":"Verification unit counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitStats"}}}},"400":{"description":"An analysis ID is malformed."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read this repository."},"422":{"description":"Verification unit filter is invalid."},"503":{"description":"Verification stats capacity is temporarily exhausted; retry after the Retry-After delay."}}}},"/verifications/{unitId}/retry-eligibility":{"get":{"operationId":"getVerificationRetryEligibility","summary":"Check successful-unit re-verification and exact original archive requirements.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Single-unit eligibility.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryEligibility"}}}},"404":{"description":"Unit not found."},"409":{"description":"Failed units return failed_retry_requires_commit_batch."}}}},"/repositories/{repositoryId}/verifications/retry-eligibility":{"get":{"operationId":"getCommitVerificationRetryEligibility","summary":"Return eligibility for a commit-wide retry or legacy successful-only selection.","description":"mode=all or failed requires commit and excludes narrowing selectors. Omitting mode preserves successful-only filters; a FAILED match returns failed_retry_requires_commit_batch.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","schema":{"type":"string","enum":["all","failed"]}},{"name":"new_only","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"state","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Server-evaluated retry eligibility.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryEligibility"}}}},"404":{"description":"Repository or requested analysis not found."},"409":{"description":"Repository or requested analysis is not active and retryable."}}}},"/app/v2/organizations/{organizationId}/verifications":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}],"get":{"operationId":"listOrganizationVerifications","summary":"List verification units across active repositories in the organization.","description":"Requires a browser bearer session and organization membership. API keys are not accepted.","security":[{"browserSession":[]}],"parameters":[{"name":"repository_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"state","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"exploitability","in":"query","description":"Classification v2 filter (every organization).","schema":{"type":"array","items":{"$ref":"#/components/schemas/Exploitability"}}},{"name":"exploit_evidence","in":"query","description":"Classification v2 filter (every organization).","schema":{"type":"array","items":{"$ref":"#/components/schemas/ExploitEvidence"}}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Organization verification unit page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationListResponse"}}}},"400":{"description":"Pagination cursor is malformed."},"401":{"description":"Browser session is missing or invalid, or an API key was supplied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"Organization membership is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"422":{"description":"Verification unit filter is invalid."}}}},"/app/v2/organizations/{organizationId}/verifications/stats":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}],"get":{"operationId":"getOrganizationVerificationStats","summary":"Return verification unit counts across active repositories in the organization.","description":"Requires a browser bearer session and organization membership. API keys are not accepted.","security":[{"browserSession":[]}],"parameters":[{"name":"analysis_id","in":"query","description":"Include per-analysis counts only for these analyses. Omit for summary-only stats.","schema":{"type":"array","maxItems":50,"items":{"type":"string","format":"uuid"}}}],"responses":{"200":{"description":"Organization verification unit counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitStats"}}}},"400":{"description":"An analysis ID is malformed."},"401":{"description":"Browser session is missing or invalid, or an API key was supplied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"Organization membership is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"422":{"description":"More than 50 analysis IDs were requested."},"503":{"description":"Verification stats capacity is temporarily exhausted; retry after the Retry-After delay."}}}},"/verifications/{unitId}":{"get":{"operationId":"getVerification","summary":"Read current unit state, accepted report, members and retry status.","description":"The verification_unit_id is the immutable deduplicated verification unit. Accepted report and artifacts survive a later retry failure. Optional retry_id selects that admission only; it does not rewind current status or accepted result. Raw SAST is retrieved per member.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"retry_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Verification detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationDetail"}}}},"401":{"description":"Invalid API key."},"404":{"description":"Verification or retry not found in this organization."}}}},"/verifications/{unitId}/findings/{findingId}/raw-sast":{"get":{"operationId":"getVerificationFindingRawSast","summary":"Read the complete preserved origin detection of a unit member.","description":"Uses immutable origin_detection_id, never the most recent rediscovery. Missing provenance values are null. raw_sast is this detection payload, not the scanner-wide report.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"findingId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Complete preserved original evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRawSast"}}}},"404":{"description":"raw_sast_unavailable: original evidence unavailable or member not in this unit/organization. The verification remains readable."}}}},"/verifications/{unitId}/attempts":{"get":{"operationId":"listVerificationAttempts","summary":"List unit attempts, including admissions that failed before execution.","description":"One row per group attempt or unlinked admission. Linked admissions never add a second row. latest and accepted are independent; no internal diagnostics are exposed.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Stable descending creation/identity order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationAttempts"}}}},"400":{"description":"Invalid pagination."},"404":{"description":"Verification not found."}}}},"/verifications/{unitId}/poc.py":{"get":{"operationId":"downloadVerificationPoc","summary":"Download PoC from the accepted unit result.","description":"Returns the canonical Phase 4 PoC code. The finding must have an accepted verification result containing PoC code.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Python proof-of-concept source.","headers":{"Content-Disposition":{"description":"Attachment filename derived from the finding ID.","schema":{"type":"string"}}},"content":{"text/x-python":{"schema":{"type":"string"}}}},"400":{"description":"Phase 4 has not produced an accepted result yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"API key is not allowed to read this finding, or the organization is on Starter (`api_key_paid_plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"Finding or accepted PoC code was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/verifications/{unitId}/regression-code":{"get":{"operationId":"downloadVerificationRegressionCode","summary":"Download regression code from the accepted unit result.","description":"Returns the exact canonical `phase4r.test.code`. The finding must have an accepted verification result containing regression source.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Repo-local regression reproducer source.","headers":{"Content-Disposition":{"description":"Safe attachment basename from `phase4r.test.file_path`, or `regression_test.txt` when unavailable.","schema":{"type":"string"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"Phase 4 has not produced an accepted result yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"API key is not allowed to read this finding, or the organization is on Starter (`api_key_paid_plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"Finding or accepted regression code was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/verifications/{unitId}/retry":{"post":{"operationId":"submitVerificationRetry","summary":"Reverify successful units only; failed units require commit-wide retry.","description":"Persists unit admissions and responds before source preparation, runner or provider work. Active units are excluded; all active returns 409, partial acceptance returns 202, no targets returns 200 without creating a job or quota reservation. Optional Idempotency-Key is retained for 24 hours per organization and logical operation across aliases: same request while original admissions are active returns 409; after all original admissions terminate returns original admission IDs with replayed=true and no new execution or quota. A changed request under the same key returns 409. New key or no key is a new intent. Failed retries refund their new reservations and preserve previously accepted reports and charged quota.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitRetryRequest"}}}},"responses":{"200":{"description":"No targets; no job or reservation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"202":{"description":"Durable admission submitted; poll the same verification ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"400":{"description":"Malformed request or unsupported selector."},"401":{"description":"API key missing or invalid."},"402":{"description":"Quota preflight failed; nothing admitted."},"403":{"description":"Requires member role or higher."},"404":{"description":"Repository or verification not found."},"409":{"description":"verification_retry_in_progress, failed_retry_requires_commit_batch, verification_retry_not_eligible, or idempotency_key_reused."},"503":{"description":"Admission temporarily closed; Retry-After is returned."}}}},"/verifications/retry":{"post":{"operationId":"submitSelectedVerificationRetries","summary":"Reverify successful units only; failed units require commit-wide retry.","description":"Persists unit admissions and responds before source preparation, runner or provider work. Active units are excluded; all active returns 409, partial acceptance returns 202, no targets returns 200 without creating a job or quota reservation. Optional Idempotency-Key is retained for 24 hours per organization and logical operation across aliases: same request while original admissions are active returns 409; after all original admissions terminate returns original admission IDs with replayed=true and no new execution or quota. A changed request under the same key returns 409. New key or no key is a new intent. Failed retries refund their new reservations and preserve previously accepted reports and charged quota.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitBulkRetryRequest"}}}},"responses":{"200":{"description":"No targets; no job or reservation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"202":{"description":"Durable admission submitted; poll the same verification ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"400":{"description":"Malformed request or unsupported selector."},"401":{"description":"API key missing or invalid."},"402":{"description":"Quota preflight failed; nothing admitted."},"403":{"description":"Requires member role or higher."},"404":{"description":"Repository or verification not found."},"409":{"description":"verification_retry_in_progress, failed_retry_requires_commit_batch, verification_retry_not_eligible, or idempotency_key_reused."},"503":{"description":"Admission temporarily closed; Retry-After is returned."}}}},"/repositories/{repositoryId}/verifications/retry":{"post":{"operationId":"submitCommitVerificationRetries","summary":"Retry all failed or all eligible units detected in a commit.","description":"Persists unit admissions and responds before source preparation, runner or provider work. Active units are excluded; all active returns 409, partial acceptance returns 202, no targets returns 200 without creating a job or quota reservation. Optional Idempotency-Key is retained for 24 hours per organization and logical operation across aliases: same request while original admissions are active returns 409; after all original admissions terminate returns original admission IDs with replayed=true and no new execution or quota. A changed request under the same key returns 409. New key or no key is a new intent. Failed retries refund their new reservations and preserve previously accepted reports and charged quota.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationCommitRetryRequest"}}}},"responses":{"200":{"description":"No targets; no job or reservation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"202":{"description":"Durable admission submitted; poll the same verification ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"400":{"description":"Invalid request, forbidden selectors or failed_retry_requires_commit_batch."},"401":{"description":"API key missing or invalid."},"402":{"description":"Quota preflight failed; nothing admitted."},"403":{"description":"Requires member role or higher."},"404":{"description":"Repository or verification not found."},"409":{"description":"verification_retry_in_progress or idempotency_key_reused. Active unit IDs are in error.details.verification_unit_ids."},"503":{"description":"Admission temporarily closed; Retry-After is returned."}}}},"/repositories/{repositoryId}/findings":{"get":{"operationId":"listRepositoryFindings","summary":"List findings for a repository.","description":"Public API clients authenticate with `X-API-Key`; viewer, member, admin, and owner roles may read findings.         optional consistency check and, when supplied, must match the API key's organization.\n","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","required":false,"schema":{"type":"string"}},{"name":"new_only","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"state","in":"query","required":false,"description":"One or more current finding states. Repeating the parameter or comma-separated values are accepted.","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","required":false,"description":"One or more final finding classification values. Repeating the parameter or comma-separated values are accepted.","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","required":false,"description":"Keyword search across the public vulnerability context: rule/check id, rule title/message, finding path, CWE, OWASP, severity, and confidence. PoC code, regression code, runtime logs, and generated report text are not part of default keyword search.","schema":{"type":"string"}},{"name":"include_sast","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_archived","in":"query","required":false,"description":"Include findings whose detections exist only in archived analyses. Archived evidence is retained but excluded by default.","schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Finding page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingListResponse"}}}},"400":{"description":"Pagination cursor is malformed."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"422":{"description":"Finding filter is invalid."}}}},"/repositories/{repositoryId}/verification-units":{"get":{"operationId":"listRepositoryVerificationUnits","deprecated":true,"summary":"Deprecated alias of GET /repositories/{repositoryId}/verifications.","description":"Deprecated. Served by the same handler as GET /repositories/{repositoryId}/verifications and returns the same response; use that path.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","schema":{"type":"string"}},{"name":"new_only","in":"query","schema":{"type":"boolean","default":false}},{"name":"state","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"include_archived","in":"query","schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Verification unit page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationListResponse"}}}},"400":{"description":"Pagination cursor is malformed."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read this repository."},"422":{"description":"Verification unit filter is invalid."}}}},"/repositories/{repositoryId}/verification-units/stats":{"get":{"operationId":"getRepositoryVerificationUnitStats","deprecated":true,"summary":"Deprecated alias of GET /repositories/{repositoryId}/verifications/stats.","description":"Deprecated. Served by the same handler as GET /repositories/{repositoryId}/verifications/stats and returns the same response; use that path.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","schema":{"type":"string"}},{"name":"new_only","in":"query","schema":{"type":"boolean","default":false}},{"name":"state","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"include_archived","in":"query","schema":{"type":"boolean","default":false}},{"name":"analysis_id","in":"query","description":"Include per-analysis counts only for these analyses. Omit for summary-only stats.","schema":{"type":"array","maxItems":50,"items":{"type":"string","format":"uuid"}}}],"responses":{"200":{"description":"Verification unit counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitStats"}}}},"400":{"description":"An analysis ID is malformed."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read this repository."},"422":{"description":"Verification unit filter is invalid."},"503":{"description":"Verification stats capacity is temporarily exhausted; retry after the Retry-After delay."}}}},"/repositories/{repositoryId}/verification-files":{"get":{"operationId":"listRepositoryVerificationFiles","summary":"List verification units grouped by repository-relative file path.","description":"File groups are paginated before their complete matching verification-unit children are embedded. Verification identity is unchanged.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","schema":{"type":"string"}},{"name":"new_only","in":"query","schema":{"type":"boolean","default":false}},{"name":"state","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"include_archived","in":"query","schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"offset","in":"query","description":"Zero-based file-group offset. Cannot be combined with cursor.","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"File-group page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationFileListResponse"}}}},"400":{"description":"Pagination cursor is malformed."},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read this repository."},"422":{"description":"Verification filter is invalid."}}}},"/repositories/{repositoryId}/jira-file-issues":{"get":{"operationId":"listRepositoryJiraFileIssues","summary":"List durable Jira file links, optionally scoped to one commit and visible file paths.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","schema":{"type":"string"}},{"name":"file_path","in":"query","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Matching Jira file links.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JiraFileIssueListResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read this repository."}}},"post":{"operationId":"createRepositoryJiraFileIssue","summary":"Manually create one Jira issue for selected findings in a commit and file.","description":"The server validates that every selected finding is a successful verification unit in the selected analysis, commit, and file. Manual creation intentionally permits overlapping or repeated issues.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JiraFileIssueCreateRequest"}}}},"responses":{"201":{"description":"Jira issue created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JiraIssueCreateResponse"}}}},"401":{"description":"Jira authentication failed or API key is invalid."},"403":{"description":"Caller cannot modify this repository."},"404":{"description":"Analysis file cohort was not found."},"409":{"description":"Another delivery is in progress."},"422":{"description":"Commit, file path, or selected finding membership is invalid."},"502":{"description":"Jira delivery failed."}}}},"/verification-units/{unitId}":{"get":{"operationId":"getVerificationUnit","deprecated":true,"summary":"Deprecated alias of GET /verifications/{unitId}.","description":"Deprecated. Served by the same handler as GET /verifications/{unitId} and returns the same response; use that path. include_sast has no effect here; read a member's raw SAST through GET /verifications/{unitId}/findings/{findingId}/raw-sast.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"retry_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Verification detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationDetail"}}}},"401":{"description":"Invalid API key."},"404":{"description":"Verification or retry not found in this organization."}}}},"/verification-units/{unitId}/retry":{"post":{"operationId":"retryVerificationUnit","deprecated":true,"summary":"Deprecated alias of POST /verifications/{unitId}/retry.","description":"Deprecated. Served by the same handler as POST /verifications/{unitId}/retry and returns the same response; use that path. The earlier response fields (message, state, queued, deduplicated, execution_attempt_id, retry_session_id, quota_state) are no longer returned.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitRetryRequest"}}}},"responses":{"200":{"description":"No targets; no job or reservation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"202":{"description":"Durable admission submitted; poll the same verification ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"400":{"description":"Malformed request or unsupported selector."},"401":{"description":"API key missing or invalid."},"402":{"description":"Quota preflight failed; nothing admitted."},"403":{"description":"Requires member role or higher."},"404":{"description":"Repository or verification not found."},"409":{"description":"verification_retry_in_progress, failed_retry_requires_commit_batch, verification_retry_not_eligible, or idempotency_key_reused."},"503":{"description":"Admission temporarily closed; Retry-After is returned."}}}},"/verification-units/retry":{"post":{"operationId":"retryVerificationUnits","deprecated":true,"summary":"Deprecated alias of POST /verifications/retry.","description":"Deprecated. Served by the same handler as POST /verifications/retry and returns the same response; use that path. The earlier results, queued_count and failed_count response is no longer returned.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitBulkRetryRequest"}}}},"responses":{"200":{"description":"No targets; no job or reservation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"202":{"description":"Durable admission submitted; poll the same verification ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"400":{"description":"Malformed request or unsupported selector."},"401":{"description":"API key missing or invalid."},"402":{"description":"Quota preflight failed; nothing admitted."},"403":{"description":"Requires member role or higher."},"404":{"description":"Repository or verification not found."},"409":{"description":"verification_retry_in_progress, failed_retry_requires_commit_batch, verification_retry_not_eligible, or idempotency_key_reused."},"503":{"description":"Admission temporarily closed; Retry-After is returned."}}}},"/repositories/{repositoryId}/findings/stats":{"get":{"operationId":"getRepositoryFindingStats","summary":"Return finding status counts for a repository.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","required":false,"schema":{"type":"string"}},{"name":"new_only","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"include_archived","in":"query","required":false,"description":"Include findings and per-analysis counts backed only by archived analyses.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Finding status counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingStatsResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."}}}},"/repositories/{repositoryId}/verification-units/retry-eligibility":{"get":{"operationId":"getVerificationUnitRetryEligibility","deprecated":true,"summary":"Deprecated alias of GET /repositories/{repositoryId}/verifications/retry-eligibility.","description":"Deprecated. Served by the same handler as GET /repositories/{repositoryId}/verifications/retry-eligibility and returns the same response; use that path.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","schema":{"type":"string","enum":["all","failed"]}},{"name":"new_only","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"state","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Server-evaluated retry eligibility.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryEligibility"}}}},"404":{"description":"Repository or requested analysis not found."},"409":{"description":"Repository or requested analysis is not active and retryable."}}}},"/repositories/{repositoryId}/verification-unit-retry-jobs":{"post":{"operationId":"startVerificationUnitRetryJob","summary":"Retry failed or all results in the specified commit.","description":"The server selects and freezes the complete commit scope across all pages. mode=failed selects current FAILED units; mode=all includes SUCCEEDED, FAILED and QUOTA_BLOCKED. Scope commit selects results while each unit retains its original source commit. An active job for the same commit and mode is returned. No ID, search or classification subset is accepted with mode. Without mode, only successful-only legacy selections are allowed. Unavailable inputs fail per item and do not block other recoverable units. Closing the client does not cancel the job.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryJobRequest"}}}},"responses":{"200":{"description":"No targets; no job, attempt or reservation. Job-shaped response has job_id=null.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryJob"}}}},"202":{"description":"Durable unit admissions submitted. Completed receipt replay returns the original admissions without new work.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryJob"}}}},"400":{"description":"Request validation failed, including a missing archive analysis/input or source identity mismatch."},"402":{"description":"Verification quota is exhausted. No retry job or finding attempt is created."},"404":{"description":"Repository or requested analysis not found."},"409":{"description":"Active units, failed ID selection, or conflicting idempotency key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"503":{"description":"New verification retry admission is temporarily closed. Retry-After is returned."}}}},"/verification-unit-retry-jobs/{jobId}":{"get":{"operationId":"getVerificationUnitRetryJob","summary":"Return durable retry-all job progress.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"jobId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Retry-all job progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryJob"}}}},"404":{"description":"Retry-all job not found."}}}},"/verification-units/{unitId}/retry-eligibility":{"get":{"operationId":"getSingleVerificationUnitRetryEligibility","deprecated":true,"summary":"Deprecated alias of GET /verifications/{unitId}/retry-eligibility.","description":"Deprecated. Served by the same handler as GET /verifications/{unitId}/retry-eligibility and returns the same response; use that path.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Single-unit eligibility.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryEligibility"}}}},"404":{"description":"Unit not found."},"409":{"description":"Failed units return failed_retry_requires_commit_batch."}}}},"/verification-unit-retry-jobs/{jobId}/failures":{"get":{"operationId":"getVerificationUnitRetryJobFailures","summary":"Return fixed public guidance for units that could not be queued.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"jobId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Per-unit public guidance. Internal exceptions are never returned.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["verification_unit_id","verification_failure"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"verification_failure":{"$ref":"#/components/schemas/PublicVerificationFailure"}}}}}}},"404":{"description":"Job not found."}}}},"/findings/{findingId}":{"get":{"operationId":"getFinding","summary":"Return a finding detail record.","description":"The verification payload is client-safe and includes the structured Phase 4 report, including root-cause evidence and verified source snippets when available. PoC and repo-local regression source are available through dedicated download endpoints. `source_link` is the stored repository source location captured during finding ingestion when the repository URL, commit, and SAST path are available.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"findingId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"include_sast","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Finding detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingDetailResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is bound to a different organization, or the organization is on Starter (`api_key_paid_plan_required`)."},"404":{"description":"Finding was not found for this organization."}}}},"/findings/{findingId}/poc.py":{"get":{"operationId":"downloadFindingPoc","summary":"Download the accepted proof-of-concept as Python source.","description":"Returns the canonical Phase 4 PoC code. The finding must have an accepted verification result containing PoC code.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"findingId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Python proof-of-concept source.","headers":{"Content-Disposition":{"description":"Attachment filename derived from the finding ID.","schema":{"type":"string"}}},"content":{"text/x-python":{"schema":{"type":"string"}}}},"400":{"description":"Phase 4 has not produced an accepted result yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"API key is not allowed to read this finding, or the organization is on Starter (`api_key_paid_plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"Finding or accepted PoC code was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/findings/{findingId}/regression-code":{"get":{"operationId":"downloadFindingRegressionCode","summary":"Download the accepted repo-local regression reproducer source.","description":"Returns the exact canonical `phase4r.test.code`. The finding must have an accepted verification result containing regression source.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"findingId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Repo-local regression reproducer source.","headers":{"Content-Disposition":{"description":"Safe attachment basename from `phase4r.test.file_path`, or `regression_test.txt` when unavailable.","schema":{"type":"string"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"Phase 4 has not produced an accepted result yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"API key is not allowed to read this finding, or the organization is on Starter (`api_key_paid_plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"Finding or accepted regression code was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/findings/{findingId}/patch-validation":{"post":{"operationId":"triggerPatchValidation","summary":"Trigger runtime patch validation for the finding's accepted verification proof.","description":"Request body is intentionally absent. Eligibility is advisory on finding detail; authorization and atomic quota reservation are enforced here.","parameters":[{"$ref":"#/components/parameters/ApiKeyHeader"},{"name":"findingId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"A new run was accepted or the active run was returned idempotently.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchValidationTriggerResponse"}}}},"400":{"description":"The accepted proof is not eligible for Runtime Patch Validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"The caller lacks member permission or public API plan access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"402":{"description":"Patch validation quota is exhausted; the canonical run is failed and no Job is created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"Finding was not found for this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"409":{"description":"The finding state changed before run creation or its accepted source analysis must be restored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"500":{"description":"An unexpected patch-validation error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"503":{"description":"A required provider or scheduling service is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/app/v2/organizations/{organizationId}/verification-units":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}],"get":{"operationId":"listOrganizationVerificationUnits","deprecated":true,"summary":"Deprecated alias of GET /app/v2/organizations/{organizationId}/verifications.","description":"Deprecated. Served by the same handler as GET /app/v2/organizations/{organizationId}/verifications and returns the same response; use that path.","security":[{"browserSession":[]}],"parameters":[{"name":"repository_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"state","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}}},{"name":"final_classification","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}}},{"name":"exploitability","in":"query","description":"Classification v2 filter (every organization).","schema":{"type":"array","items":{"$ref":"#/components/schemas/Exploitability"}}},{"name":"exploit_evidence","in":"query","description":"Classification v2 filter (every organization).","schema":{"type":"array","items":{"$ref":"#/components/schemas/ExploitEvidence"}}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Organization verification unit page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationListResponse"}}}},"400":{"description":"Pagination cursor is malformed."},"401":{"description":"Browser session is missing or invalid, or an API key was supplied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"Organization membership is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"422":{"description":"Verification unit filter is invalid."}}}},"/app/v2/organizations/{organizationId}/verification-units/stats":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}],"get":{"operationId":"getOrganizationVerificationUnitStats","deprecated":true,"summary":"Deprecated alias of GET /app/v2/organizations/{organizationId}/verifications/stats.","description":"Deprecated. Served by the same handler as GET /app/v2/organizations/{organizationId}/verifications/stats and returns the same response; use that path.","security":[{"browserSession":[]}],"parameters":[{"name":"analysis_id","in":"query","description":"Include per-analysis counts only for these analyses. Omit for summary-only stats.","schema":{"type":"array","maxItems":50,"items":{"type":"string","format":"uuid"}}}],"responses":{"200":{"description":"Organization verification unit counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitStats"}}}},"400":{"description":"An analysis ID is malformed."},"401":{"description":"Browser session is missing or invalid, or an API key was supplied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"Organization membership is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"422":{"description":"More than 50 analysis IDs were requested."},"503":{"description":"Verification stats capacity is temporarily exhausted; retry after the Retry-After delay."}}}},"/app/v2/organizations/{organizationId}/repositories/notification-settings":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}],"get":{"operationId":"listAppRepositoryNotificationSettings","summary":"List configured repository notification settings.","description":"Requires a browser bearer session and organization membership. API keys are not accepted.","security":[{"browserSession":[]}],"responses":{"200":{"description":"Configured repository Slack and Jira settings keyed by repository ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryNotificationSettingsListResponse"}}}},"401":{"description":"Browser session is missing or invalid, or an API key was supplied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"Organization membership is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}}}},"/app/v2/organizations/{organizationId}/applications":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}],"get":{"operationId":"listApplications","summary":"List active repository Applications.","responses":{"200":{"description":"Applications visible to the organization member.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationResponse"}}}}},"403":{"description":"Organization membership is required."}}},"post":{"operationId":"createApplication","summary":"Create an Application and its current repository membership.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRequest"}}}},"responses":{"201":{"description":"Application created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationResponse"}}}},"403":{"description":"Organization admin permission is required."},"409":{"description":"Application name or a repository/source alias within this Application is duplicated."},"422":{"description":"Application input is invalid."}}}},"/app/v2/organizations/{organizationId}/applications/{applicationId}":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getApplication","summary":"Return one active repository Application.","responses":{"200":{"description":"Application detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationResponse"}}}},"403":{"description":"Organization membership is required."},"404":{"description":"Application was not found."}}},"patch":{"operationId":"updateApplication","summary":"Replace an Application name and membership using version CAS.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUpdateRequest"}}}},"responses":{"200":{"description":"Application updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationResponse"}}}},"403":{"description":"Organization admin permission is required."},"404":{"description":"Application was not found."},"409":{"description":"The version is stale or membership conflicts."},"422":{"description":"Application input is invalid."}}},"delete":{"operationId":"archiveApplication","summary":"Archive an Application and release its repository memberships.","parameters":[{"name":"expected_version","in":"query","required":true,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"204":{"description":"Application archived."},"403":{"description":"Organization admin permission is required."},"404":{"description":"Application was not found."},"409":{"description":"The version is stale."}}}},"/app/v2/organizations/{organizationId}/applications/{applicationId}/runtime-configurations":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"operationId":"startApplicationRuntimeConfiguration","summary":"Build and validate an Application runtime without running an analysis.","parameters":[{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRuntimeConfigurationRequest"}}}},"responses":{"202":{"description":"Runtime configuration accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRuntimeConfigurationResponse"}}}},"403":{"description":"Organization membership is required."},"404":{"description":"The Application or an input source was not found."},"409":{"description":"A source is unavailable, a configuration is already running, or Idempotency-Key was reused with a different request body."},"422":{"description":"Runtime configuration input is invalid, or a public GitHub repository of an organization without a GitHub App connection needs `ref`, `ref_type` and `commit_sha` (`source_selection_required`)."}}}},"/app/v2/organizations/{organizationId}/applications/{applicationId}/runtime-configurations/{configurationId}":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"configurationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getApplicationRuntimeConfiguration","summary":"Read one Application runtime configuration status.","responses":{"200":{"description":"Runtime configuration status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRuntimeConfigurationResponse"}}}},"403":{"description":"Organization membership is required."},"404":{"description":"The Application or runtime configuration was not found."}}}},"/app/v2/organizations/{organizationId}/repositories/{repositoryId}/runtime-configurations":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"$ref":"#/components/parameters/RepositoryIdPath"}],"post":{"operationId":"startRepositoryRuntimeConfiguration","summary":"Build and validate one repository runtime without running an analysis.","parameters":[{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryRuntimeConfigurationRequest"}}}},"responses":{"202":{"description":"Runtime configuration accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRuntimeConfigurationResponse"}}}},"403":{"description":"Organization member permission is required."},"404":{"description":"Repository or source archive was not found."},"409":{"description":"Repository source is unavailable, a configuration is already running, or Idempotency-Key was reused with a different request body."},"422":{"description":"Runtime configuration input is invalid, or a public GitHub repository of an organization without a GitHub App connection needs `ref`, `ref_type` and `commit_sha` (`source_selection_required`)."}}}},"/app/v2/organizations/{organizationId}/repositories/{repositoryId}/runtime-configurations/{configurationId}":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"$ref":"#/components/parameters/RepositoryIdPath"},{"name":"configurationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getRepositoryRuntimeConfiguration","summary":"Read one repository runtime configuration status.","responses":{"200":{"description":"Runtime configuration status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRuntimeConfigurationResponse"}}}},"403":{"description":"Organization membership is required."},"404":{"description":"Repository or runtime configuration was not found."}}}},"/app/v2/organizations/{organizationId}/repositories/{repositoryId}/automation":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"$ref":"#/components/parameters/RepositoryIdPath"}],"get":{"operationId":"getRepositoryAutomationPolicy","summary":"Return a repository GitHub automation policy.","responses":{"200":{"description":"Effective repository policy and authoritative GitHub capability.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationPolicyResponse"}}}},"403":{"description":"The browser user is not an organization member, or GitHub automation is unavailable on Starter."},"404":{"description":"Repository was not found."}}},"put":{"operationId":"updateRepositoryAutomationPolicy","summary":"Update repository GitHub automation policy.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationPolicyRequest"}}}},"responses":{"200":{"description":"Updated effective policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationPolicyResponse"}}}},"403":{"description":"Organization admin permission and a paid plan are required."},"404":{"description":"Repository was not found."},"422":{"description":"Automation policy is incomplete or invalid, or enables the pull request trigger while pull request automation is unavailable (`pull_request_automation_unavailable`).\n"}}}},"/app/v2/organizations/{organizationId}/repositories/{repositoryId}/automation/status":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"$ref":"#/components/parameters/RepositoryIdPath"}],"get":{"operationId":"getRepositoryAutomationStatus","summary":"Return sanitized latest automation decisions and provider links.","responses":{"200":{"description":"Latest trigger, Patch Validation, Jira and Draft PR status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryAutomationStatusResponse"}}}},"403":{"description":"The browser user is not an organization member, or GitHub automation is unavailable on Starter."},"404":{"description":"Repository was not found."}}}},"/app/v2/organizations/{organizationId}/verifications/{unitId}/retry-eligibility":{"get":{"operationId":"appGetVerificationRetryEligibility","summary":"Check successful-unit re-verification and exact original archive requirements.","parameters":[{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Single-unit eligibility.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetryEligibility"}}}},"404":{"description":"Unit not found."},"409":{"description":"Failed units return failed_retry_requires_commit_batch."}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]},"/app/v2/organizations/{organizationId}/verifications/{unitId}":{"get":{"operationId":"appGetVerification","summary":"Read current unit state, accepted report, members and retry status.","description":"The verification_unit_id is the immutable deduplicated verification unit. Accepted report and artifacts survive a later retry failure. Optional retry_id selects that admission only; it does not rewind current status or accepted result. Raw SAST is retrieved per member.","parameters":[{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"retry_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Verification detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppVerificationDetail"}}}},"401":{"description":"Invalid API key."},"404":{"description":"Verification or retry not found in this organization."}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]},"/app/v2/organizations/{organizationId}/verifications/{unitId}/findings/{findingId}/raw-sast":{"get":{"operationId":"appGetVerificationFindingRawSast","summary":"Read the complete preserved origin detection of a unit member.","description":"Uses immutable origin_detection_id, never the most recent rediscovery. Missing provenance values are null. raw_sast is this detection payload, not the scanner-wide report.","parameters":[{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"findingId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Complete preserved original evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRawSast"}}}},"404":{"description":"raw_sast_unavailable: original evidence unavailable or member not in this unit/organization. The verification remains readable."}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]},"/app/v2/organizations/{organizationId}/verifications/{unitId}/attempts":{"get":{"operationId":"appListVerificationAttempts","summary":"List unit attempts, including admissions that failed before execution.","description":"One row per group attempt or unlinked admission. Linked admissions never add a second row. latest and accepted are independent; no internal diagnostics are exposed.","parameters":[{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Stable descending creation/identity order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationAttempts"}}}},"400":{"description":"Invalid pagination."},"404":{"description":"Verification not found."}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]},"/app/v2/organizations/{organizationId}/verifications/{unitId}/poc.py":{"get":{"operationId":"appDownloadVerificationPoc","summary":"Download PoC from the accepted unit result.","description":"Returns the canonical Phase 4 PoC code. The finding must have an accepted verification result containing PoC code.","parameters":[{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Python proof-of-concept source.","headers":{"Content-Disposition":{"description":"Attachment filename derived from the finding ID.","schema":{"type":"string"}}},"content":{"text/x-python":{"schema":{"type":"string"}}}},"400":{"description":"Phase 4 has not produced an accepted result yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"API key is not allowed to read this finding, or the organization is on Starter (`api_key_paid_plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"Finding or accepted PoC code was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]},"/app/v2/organizations/{organizationId}/verifications/{unitId}/regression-code":{"get":{"operationId":"appDownloadVerificationRegressionCode","summary":"Download regression code from the accepted unit result.","description":"Returns the exact canonical `phase4r.test.code`. The finding must have an accepted verification result containing regression source.","parameters":[{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Repo-local regression reproducer source.","headers":{"Content-Disposition":{"description":"Safe attachment basename from `phase4r.test.file_path`, or `regression_test.txt` when unavailable.","schema":{"type":"string"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"Phase 4 has not produced an accepted result yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"401":{"description":"API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"403":{"description":"API key is not allowed to read this finding, or the organization is on Starter (`api_key_paid_plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"404":{"description":"Finding or accepted regression code was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}},"429":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicErrorResponse"}}}}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]},"/app/v2/organizations/{organizationId}/verifications/{unitId}/retry":{"post":{"operationId":"appSubmitVerificationRetry","summary":"Reverify successful units only; failed units require commit-wide retry.","description":"Persists unit admissions and responds before source preparation, runner or provider work. Active units are excluded; all active returns 409, partial acceptance returns 202, no targets returns 200 without creating a job or quota reservation. Optional Idempotency-Key is retained for 24 hours per organization and logical operation across aliases: same request while original admissions are active returns 409; after all original admissions terminate returns original admission IDs with replayed=true and no new execution or quota. A changed request under the same key returns 409. New key or no key is a new intent. Failed retries refund their new reservations and preserve previously accepted reports and charged quota.","parameters":[{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKeyHeaderOptional"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationUnitRetryRequest"}}}},"responses":{"200":{"description":"No targets; no job or reservation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"202":{"description":"Durable admission submitted; poll the same verification ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRetrySubmission"}}}},"400":{"description":"Malformed request or unsupported selector."},"401":{"description":"API key missing or invalid."},"402":{"description":"Quota preflight failed; nothing admitted."},"403":{"description":"Requires member role or higher."},"404":{"description":"Repository or verification not found."},"409":{"description":"verification_retry_in_progress, failed_retry_requires_commit_batch, verification_retry_not_eligible, or idempotency_key_reused."},"503":{"description":"Admission temporarily closed; Retry-After is returned."}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]},"/app/v2/organizations/{organizationId}/verifications/resolve":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}],"get":{"operationId":"resolveAppLegacyFinding","security":[{"browserSession":[]}],"parameters":[{"name":"legacy_finding_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Verification app response.","content":{"application/json":{"schema":{"type":"object","required":["verification_unit_id"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"}}}}}},"404":{"description":"No visible unit membership."}}}},"/app/v2/organizations/{organizationId}/verifications/{unitId}/patch-validation":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"operationId":"appPatchValidation","security":[{"browserSession":[]}],"responses":{"202":{"description":"Verification app response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationPatchValidationResponse"}}}},"401":{"description":"Browser session required; API keys rejected."},"403":{"description":"Member access required for writes; viewer access for reads."},"404":{"description":"Unit unavailable in the organization."},"409":{"description":"Accepted source changed or action unavailable."}}}},"/app/v2/organizations/{organizationId}/verifications/{unitId}/jira-issues":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"appJiraIssues","security":[{"browserSession":[]}],"responses":{"200":{"description":"Verification app response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationJiraIssuesResponse"}}}},"401":{"description":"Browser session required; API keys rejected."},"403":{"description":"Member access required for writes; viewer access for reads."},"404":{"description":"Unit unavailable in the organization."},"409":{"description":"Accepted source changed or action unavailable."}}}},"/app/v2/organizations/{organizationId}/verifications/{unitId}/jira-issue":{"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"},{"name":"unitId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"operationId":"appJiraIssue","security":[{"browserSession":[]}],"responses":{"200":{"description":"Verification app response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationJiraIssueResponse"}}}},"401":{"description":"Browser session required; API keys rejected."},"403":{"description":"Member access required for writes; viewer access for reads."},"404":{"description":"Unit unavailable in the organization."},"409":{"description":"Accepted source changed or action unavailable."}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JiraIssueCreateRequest"}}}}}},"/app/v2/organizations/{organizationId}/repositories/{repositoryId}/jira-file-issues":{"get":{"operationId":"appListRepositoryJiraFileIssues","summary":"List durable Jira file links, optionally scoped to one commit and visible file paths.","parameters":[{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"commit","in":"query","schema":{"type":"string"}},{"name":"file_path","in":"query","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Matching Jira file links.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppJiraFileIssueListResponse"}}}},"401":{"description":"API key is missing or invalid."},"403":{"description":"API key is not allowed to read this repository."}},"security":[{"browserSession":[]}]},"post":{"operationId":"appCreateRepositoryJiraFileIssue","summary":"Manually create one Jira issue for selected findings in a commit and file.","description":"The server validates that every selected finding is a successful verification unit in the selected analysis, commit, and file. Manual creation intentionally permits overlapping or repeated issues.","parameters":[{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppJiraFileIssueCreateRequest"}}}},"responses":{"201":{"description":"Jira issue created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JiraIssueCreateResponse"}}}},"401":{"description":"Jira authentication failed or API key is invalid."},"403":{"description":"Caller cannot modify this repository."},"404":{"description":"Analysis file cohort was not found."},"409":{"description":"Another delivery is in progress."},"422":{"description":"Commit, file path, or selected finding membership is invalid."},"502":{"description":"Jira delivery failed."}},"security":[{"browserSession":[]}]},"servers":[{"url":"/"}],"parameters":[{"$ref":"#/components/parameters/OrganizationIdPath"}]}},"components":{"securitySchemes":{"browserSession":{"type":"http","scheme":"bearer"}},"parameters":{"OrganizationIdPath":{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"RepositoryIdPath":{"name":"repositoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"ApiKeyHeader":{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^ak_.+$"},"description":"Organization-bound public API key. Public API access requires a paid plan. Starter organizations receive `403 api_key_paid_plan_required` with `current_plan` and `minimum_plan` details.\n"},"IdempotencyKeyHeader":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}},"IdempotencyKeyHeaderOptional":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":160},"description":"Optional write idempotency key. Repeating the same key with the same request body replays the stored response; repeating it with a different body returns 409."}},"schemas":{"RepositoryScanScheduleUpdate":{"type":"object","description":"Beta. Nightly scan schedule settings for one repository.","required":["enabled","interval_days"],"properties":{"enabled":{"type":"boolean"},"interval_days":{"type":"integer","minimum":1,"maximum":7,"description":"Scan every this many nights."}}},"RepositoryScanSchedule":{"type":"object","description":"Beta. A repository's nightly scan schedule and its latest results.","required":["enabled","interval_days"],"properties":{"enabled":{"type":"boolean"},"interval_days":{"type":"integer","minimum":1,"maximum":7},"next_run_at":{"type":"string","format":"date-time","nullable":true,"description":"Next scheduled time (UTC); null while the schedule is off."},"unavailable_reason":{"type":"string","nullable":true,"enum":["plan_not_entitled","unsupported_repository","repository_inactive","installation_not_ready","scheduled_scan_limit_reached",null],"description":"Why the schedule cannot be turned on now; null when it can."},"latest_run":{"description":"The most recent scheduled occurrence, whatever its status.","oneOf":[{"$ref":"#/components/schemas/ScheduledScanRun"},{"type":"object","nullable":true,"enum":[null]}]},"latest_result":{"description":"The most recent occurrence whose analysis completed.","oneOf":[{"$ref":"#/components/schemas/ScheduledScanRun"},{"type":"object","nullable":true,"enum":[null]}]}}},"ScheduledScanRun":{"type":"object","description":"Beta. One scheduled occurrence. `reason` explains a delay, block, failure or skip, for example `quota_exhausted`, `repository_too_large`, `installation_not_ready`, `default_head_unavailable` (retried), `submission_retry` (retried), `next_night`, `newer_occurrence_due`, `schedule_changed`, `schedule_disabled` or `verification_quota_exhausted`.\n","required":["id","repository_id","scheduled_at","status"],"properties":{"id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"scheduled_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["PENDING","CHECKING","QUEUED","RUNNING","COMPLETED","NO_CHANGE","DELAYED","MISSED","BLOCKED","FAILED","UNAVAILABLE"],"description":"`NO_CHANGE` means the default branch commit already had a result and no analysis was started; `MISSED` means a newer occurrence or a schedule change replaced it; `UNAVAILABLE` means the linked analysis was archived or deleted.\n"},"reason":{"type":"string","nullable":true},"branch":{"type":"string","nullable":true,"description":"Default branch resolved at the scheduled time."},"commit_sha":{"type":"string","nullable":true,"description":"Commit of that branch at the scheduled time."},"result":{"oneOf":[{"$ref":"#/components/schemas/ScheduledScanResult"},{"type":"object","nullable":true,"enum":[null]}]}}},"ScheduledScanResult":{"type":"object","description":"Verification summary for the execution attempt linked to this occurrence. No-change occurrences link to the earlier result of the same commit.","required":["analysis_id","attempt_id","verified_units","runtime_confirmed","unfinished_units"],"properties":{"analysis_id":{"type":"string","format":"uuid"},"attempt_id":{"type":"string","format":"uuid"},"completed_at":{"type":"string","format":"date-time","nullable":true},"verification_status":{"type":"string","nullable":true,"description":"Verification task status, or PARTIAL when some verification units did not finish."},"verified_units":{"type":"integer","minimum":0},"runtime_confirmed":{"type":"integer","minimum":0},"unfinished_units":{"type":"integer","minimum":0}}},"VerificationSummary":{"type":"object","required":["verification_unit_id","repository_id","origin_attempt_id","member_count","grouped","kind","retryable","rule_ids","cwes","members","vulnerability_info","first_detected_at","created_at","updated_at"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"origin_attempt_id":{"type":"string","format":"uuid","nullable":true},"origin_commit_sha":{"type":"string","nullable":true},"member_count":{"type":"integer","minimum":1},"grouped":{"type":"boolean"},"kind":{"type":"string","enum":["GENERATED","MIGRATED_SINGLETON"]},"file_path":{"type":"string","nullable":true},"start_line":{"type":"integer","minimum":1,"nullable":true},"end_line":{"type":"integer","minimum":1,"nullable":true},"start_column":{"type":"integer","minimum":1,"nullable":true},"end_column":{"type":"integer","minimum":1,"nullable":true},"source_code_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","nullable":true},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","QUOTA_BLOCKED"],"nullable":true},"state":{"allOf":[{"$ref":"#/components/schemas/FindingState"}],"nullable":true},"final_classification":{"$ref":"#/components/schemas/FindingFinalClassification"},"security_verdict":{"$ref":"#/components/schemas/FindingSecurityVerdict"},"proof_status":{"$ref":"#/components/schemas/FindingProofStatus"},"classification_reason":{"type":"string","nullable":true},"classification_evidence":{"type":"object","additionalProperties":true,"nullable":true},"verification_failure":{"allOf":[{"$ref":"#/components/schemas/PublicVerificationFailure"}],"nullable":true},"retryable":{"type":"boolean","description":"Single-unit reanalysis is permitted only for current successful units. Failed units can still be recovered with commit mode=failed or all."},"current_detection_count":{"type":"integer","minimum":0,"nullable":true,"description":"Distinct members detected in the requested commit; null without a commit filter."},"highest_severity":{"type":"string","nullable":true},"rule_ids":{"type":"array","items":{"type":"string"}},"cwes":{"type":"array","items":{"type":"string"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/VerificationMember"}},"vulnerability_info":{"type":"object","additionalProperties":true},"first_detected_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"exploitability":{"allOf":[{"$ref":"#/components/schemas/Exploitability"}],"description":"Every organization (browser and API key requests alike), only for a unit with a resolved result; the four classification v2 fields are then present together. final_classification keeps its v1 meaning next to them."},"exploit_evidence":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidence"}],"nullable":true,"description":"With exploitability; set only for proven_exploitable."},"exploit_evidence_detail":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidenceDetail"}],"nullable":true,"description":"With exploitability; set only when exploit_evidence is none."},"needs_review_reason":{"allOf":[{"$ref":"#/components/schemas/NeedsReviewReason"}],"nullable":true,"description":"With exploitability; set only for needs_review."}}},"VerificationMember":{"type":"object","required":["ordinal","finding_id","vulnerability_hash","cwes","vulnerability_info","jira_issues","raw_sast_url"],"properties":{"ordinal":{"type":"integer","minimum":0},"finding_id":{"type":"string","format":"uuid"},"vulnerability_hash":{"type":"string"},"finding_identity_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","nullable":true},"rule_id":{"type":"string","nullable":true},"severity":{"type":"string","nullable":true},"cwes":{"type":"array","items":{"type":"string"}},"vulnerability_info":{"type":"object","additionalProperties":true},"jira_issues":{"type":"array","items":{"$ref":"#/components/schemas/JiraIssueLinkResponse"}},"raw_sast_url":{"type":"string","description":"Authenticated raw-evidence link on the same public/app organization surface."}}},"VerificationListResponse":{"type":"object","required":["data","page"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VerificationSummary"}},"page":{"$ref":"#/components/schemas/FindingPage"}}},"VerificationRetryStatus":{"type":"object","required":["retry_id","status","submitted_at","updated_at","completed_at","failure"],"properties":{"retry_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["submitted","in_progress","succeeded","failed","quota_blocked"]},"submitted_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"failure":{"allOf":[{"$ref":"#/components/schemas/PublicVerificationFailure"}],"nullable":true}}},"VerificationDetail":{"allOf":[{"$ref":"#/components/schemas/VerificationSummary"},{"type":"object","required":["verdict","confidence","runtime_result","regression_result","structural_result","condition_scope","execution_info","patch_validation","source_link","ep_context","retry","action_finding_id","poc_url","regression_code_url","attempts_url"],"properties":{"verdict":{"type":"string","nullable":true},"confidence":{"type":"string","nullable":true},"runtime_result":{"$ref":"#/components/schemas/FindingRuntimeResult"},"regression_result":{"$ref":"#/components/schemas/FindingRegressionResult"},"structural_result":{"$ref":"#/components/schemas/FindingStructuralResult"},"condition_scope":{"type":"string","nullable":true},"execution_info":{"allOf":[{"$ref":"#/components/schemas/FindingExecutionInfo"}],"nullable":true},"patch_validation":{"$ref":"#/components/schemas/FindingPatchValidation"},"source_link":{"type":"string","format":"uri","nullable":true,"description":"Stored direct repository source link for the finding location when available."},"ep_context":{"allOf":[{"$ref":"#/components/schemas/FindingEpContext"}],"nullable":true},"retry":{"allOf":[{"$ref":"#/components/schemas/VerificationRetryStatus"}],"nullable":true},"action_finding_id":{"type":"string","format":"uuid","nullable":true},"poc_url":{"type":"string"},"regression_code_url":{"type":"string"},"attempts_url":{"type":"string"}}}]},"VerificationRawSast":{"type":"object","required":["verification_unit_id","finding_id","source","raw_sast"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"finding_id":{"type":"string","format":"uuid"},"source":{"type":"object","required":["commit_sha","detected_at"],"properties":{"commit_sha":{"type":"string","nullable":true},"detected_at":{"type":"string","format":"date-time","nullable":true}}},"raw_sast":{"type":"object","additionalProperties":true}}},"VerificationAttempt":{"type":"object","required":["attempt_id","retry_id","attempt_type","attempt_number","status","latest","accepted","created_at","completed_at","failure","execution_info"],"properties":{"attempt_id":{"type":"string","format":"uuid","nullable":true},"retry_id":{"type":"string","format":"uuid","nullable":true},"attempt_type":{"type":"string","enum":["ANALYSIS","MANUAL_RETRY","AUTO_RECOVERY"]},"attempt_number":{"type":"integer","nullable":true},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","QUOTA_BLOCKED","submitted","in_progress","failed","quota_blocked"]},"latest":{"type":"boolean"},"accepted":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"failure":{"allOf":[{"$ref":"#/components/schemas/PublicVerificationFailure"}],"nullable":true},"execution_info":{"allOf":[{"$ref":"#/components/schemas/FindingExecutionInfo"}],"nullable":true}}},"VerificationAttempts":{"type":"object","required":["attempts","total_count","limit","offset","has_more"],"properties":{"attempts":{"type":"array","items":{"$ref":"#/components/schemas/VerificationAttempt"}},"total_count":{"type":"integer","minimum":0},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"}}},"VerificationCommitRetryRequest":{"type":"object","additionalProperties":false,"required":["commit","mode"],"properties":{"commit":{"type":"string","minLength":1},"mode":{"type":"string","enum":["failed","all"]},"source_archive_inputs":{"$ref":"#/components/schemas/VerificationRetrySourceInputs"}},"description":"Server selects every eligible verification in this queried commit across pages and filters. Original source and unit membership stay fixed. ID lists, search/state/classification/new_only selectors and internal execution IDs are rejected. mode=failed selects latest failures; mode=all includes successful, failed and quota-blocked units."},"VerificationRetrySubmission":{"type":"object","required":["status","accepted_units","excluded_units","replayed"],"properties":{"status":{"type":"string","enum":["submitted","no_targets"]},"accepted_units":{"type":"array","items":{"type":"object","required":["verification_unit_id","retry_id"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"retry_id":{"type":"string","format":"uuid"}}}},"excluded_units":{"type":"array","items":{"type":"object","required":["verification_unit_id","code"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"code":{"type":"string"}}}},"replayed":{"type":"boolean"}}},"PublicVerificationFailure":{"type":"object","additionalProperties":false,"required":["code","message","action"],"description":"Fixed customer guidance for incomplete verification. Internal diagnostics remain private; verdict and classification_reason stay unset until a verdict exists.","properties":{"code":{"type":"string","enum":["verification_failed","source_unavailable","repository_access_required","quota_exceeded","source_required","retry_not_needed"]},"message":{"type":"string"},"action":{"type":"string","enum":["retry_commit","rerun_analysis","restore_analysis","contact_admin","wait_for_service","upload_source","restore_source","reconnect_repository","open_organization_settings","none"]}}},"AutomationTriggerPolicy":{"type":"object","additionalProperties":false,"required":["enabled","branches"],"properties":{"enabled":{"type":"boolean"},"branches":{"type":"array","items":{"type":"string"}}}},"AutomationPolicyRequest":{"type":"object","additionalProperties":false,"required":["automation_enabled","push_trigger","pull_request_trigger","on_runtime_verified","on_verified_fix"],"properties":{"automation_enabled":{"type":"boolean"},"push_trigger":{"$ref":"#/components/schemas/AutomationTriggerPolicy"},"pull_request_trigger":{"$ref":"#/components/schemas/AutomationTriggerPolicy"},"on_runtime_verified":{"type":"object","additionalProperties":false,"required":["run_patch_validation"],"properties":{"run_patch_validation":{"type":"boolean"}}},"on_verified_fix":{"type":"object","additionalProperties":false,"required":["create_draft_pull_request"],"properties":{"create_draft_pull_request":{"type":"boolean"}}}}},"AutomationPolicyResponse":{"type":"object","additionalProperties":false,"required":["organization_id","repository_id","push_scan_ready","pull_request_automation_enabled","pull_request_scan_ready","fix_capability_state","missing_permissions","automation_enabled","push_trigger","pull_request_trigger","on_runtime_verified","on_verified_fix"],"properties":{"organization_id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"policy_id":{"type":"string","format":"uuid","nullable":true},"push_scan_ready":{"type":"boolean"},"pull_request_automation_enabled":{"type":"boolean"},"pull_request_scan_ready":{"type":"boolean"},"fix_capability_state":{"type":"string","enum":["FIX_DISABLED","FIX_PERMISSION_REQUIRED","FIX_APPROVAL_PENDING","FIX_READY","SUSPENDED","DISCONNECTED"]},"missing_permissions":{"type":"array","items":{"type":"string"}},"last_reconciled_at":{"type":"string","format":"date-time","nullable":true},"automation_enabled":{"type":"boolean"},"push_trigger":{"$ref":"#/components/schemas/AutomationTriggerPolicy"},"pull_request_trigger":{"$ref":"#/components/schemas/AutomationTriggerPolicy"},"on_runtime_verified":{"type":"object","additionalProperties":false,"required":["run_patch_validation"],"properties":{"run_patch_validation":{"type":"boolean"}}},"on_verified_fix":{"type":"object","additionalProperties":false,"required":["create_draft_pull_request"],"properties":{"create_draft_pull_request":{"type":"boolean"}}}}},"AutomationTriggerStatus":{"type":"object","additionalProperties":false,"required":["trigger_decision_id","delivery_id","origin","decision","reason_code","dispatch_status","linked_analysis_status","decided_at","updated_at"],"properties":{"trigger_decision_id":{"type":"string","format":"uuid"},"delivery_id":{"type":"string"},"origin":{"type":"string"},"decision":{"type":"string"},"reason_code":{"type":"string"},"dispatch_status":{"type":"string"},"dispatch_reason":{"type":"string","nullable":true},"analysis_id":{"type":"string","format":"uuid","nullable":true},"linked_analysis_status":{"type":"string","nullable":true},"exact_sha":{"type":"string","nullable":true},"decided_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"AutomationPatchValidationActionStatus":{"type":"object","additionalProperties":false,"required":["action_id","finding_id","status","eligibility_version","source_sha","occurred_at","updated_at"],"properties":{"action_id":{"type":"string","format":"uuid"},"finding_id":{"type":"string","format":"uuid"},"status":{"type":"string"},"reason_code":{"type":"string","nullable":true},"patch_run_id":{"type":"string","format":"uuid","nullable":true},"eligibility_version":{"type":"string"},"source_sha":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"AutomationPublicationEligibilityStatus":{"type":"object","additionalProperties":false,"required":["publication_request_id","finding_id","patch_run_id","eligibility_contract_version","eligibility_decision","reason_code","created_at","updated_at"],"properties":{"publication_request_id":{"type":"string","format":"uuid"},"finding_id":{"type":"string","format":"uuid"},"patch_run_id":{"type":"string","format":"uuid"},"candidate_id":{"type":"string","format":"uuid","nullable":true},"target_branch":{"type":"string","nullable":true},"eligibility_contract_version":{"type":"string"},"eligibility_decision":{"type":"string"},"reason_code":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"AutomationDraftPrStatus":{"type":"object","additionalProperties":false,"required":["publication_request_id","status","attempt_count"],"properties":{"publication_request_id":{"type":"string","format":"uuid"},"status":{"type":"string"},"reason":{"type":"string","nullable":true},"provider_branch_ref":{"type":"string","nullable":true},"provider_commit_sha":{"type":"string","nullable":true},"provider_pr_number":{"type":"integer","format":"int64","nullable":true},"provider_pr_url":{"type":"string","format":"uri","nullable":true},"attempt_count":{"type":"integer","minimum":0}}},"RepositoryAutomationStatusResponse":{"type":"object","additionalProperties":false,"required":["latest_trigger","latest_patch_validation_action","latest_publication_eligibility","latest_publication","latest_jira_issue","latest_jira_delivery"],"properties":{"latest_trigger":{"allOf":[{"$ref":"#/components/schemas/AutomationTriggerStatus"}],"nullable":true},"latest_patch_validation_action":{"allOf":[{"$ref":"#/components/schemas/AutomationPatchValidationActionStatus"}],"nullable":true},"latest_publication_eligibility":{"allOf":[{"$ref":"#/components/schemas/AutomationPublicationEligibilityStatus"}],"nullable":true},"latest_publication":{"allOf":[{"$ref":"#/components/schemas/AutomationDraftPrStatus"}],"nullable":true},"latest_jira_issue":{"type":"object","nullable":true,"additionalProperties":false,"required":["verification_unit_id","issue_key","issue_url","created_at"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"issue_key":{"type":"string"},"issue_url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"}}},"latest_jira_delivery":{"type":"object","nullable":true,"additionalProperties":false,"required":["verification_unit_id","status","issue_key","issue_url","reason_code","updated_at"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["PENDING","FAILED","DELIVERED_UNLINKED","SUCCEEDED"]},"issue_key":{"type":"string","nullable":true},"issue_url":{"type":"string","format":"uri","nullable":true},"reason_code":{"type":"string","nullable":true},"updated_at":{"type":"string","format":"date-time"}}}}},"DemoRedeemRequest":{"type":"object","additionalProperties":false,"required":["code"],"properties":{"code":{"type":"string","pattern":"^dm_[0-9a-f]{32}$"}}},"DemoAgentRedemptionResponse":{"type":"object","required":["api_key","organization_id","company_name","expires_at","api_keys_remaining"],"properties":{"api_key":{"type":"string"},"organization_id":{"type":"string","format":"uuid"},"company_name":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"max_repositories":{"type":"integer","description":"Repository registration cap of the demo plan. Omitted when the plan has no cap."},"api_keys_remaining":{"type":"integer"},"dashboard_url":{"type":"string","description":"Browser link that signs the demo user in to view results."}}},"PublicErrorResponse":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"$ref":"#/components/schemas/PublicError"}}},"PublicError":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":true}}},"HealthResponse":{"type":"object","required":["status","lifecycle_state","lifecycle_version"],"properties":{"status":{"type":"string","enum":["ok"]}}},"PlanResponse":{"type":"object","required":["plan_code","display_name","max_members","max_sast_checks_per_month","max_patch_validations_per_month","repository_limits","prices","promotions"],"properties":{"plan_code":{"type":"string","enum":["starter","pro","business","enterprise"]},"display_name":{"type":"string"},"max_members":{"type":"integer","description":"-1 means unlimited."},"max_sast_checks_per_month":{"type":"integer","description":"-1 means unlimited."},"max_patch_validations_per_month":{"type":"integer","description":"-1 means unlimited."},"repository_limits":{"type":"object","additionalProperties":{"type":"integer"}},"prices":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PlanPriceResponse"}},"promotions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PlanPromotionResponse"}}}},"PlanPriceResponse":{"type":"object","required":["unit_amount_usd_cents","currency","checkout_available"],"properties":{"unit_amount_usd_cents":{"type":"integer","minimum":0},"currency":{"type":"string","example":"usd"},"checkout_available":{"type":"boolean"}}},"PlanPromotionResponse":{"type":"object","required":["discounted_unit_amount_usd_cents","duration"],"properties":{"discounted_unit_amount_usd_cents":{"type":"integer","minimum":0,"nullable":true,"description":"Discounted invoice subtotal in USD cents. Null only for legacy promotions without synchronized discount metadata.","example":0},"duration":{"type":"string","enum":["once","repeating","forever"]},"duration_in_months":{"type":"integer","minimum":1,"nullable":true},"ends_at":{"type":"string","format":"date-time","nullable":true}}},"UserProfile":{"type":"object","required":["id","email","email_verified","onboarding_completed","language","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"oauth_provider":{"type":"string","nullable":true},"provider_id":{"type":"string","nullable":true},"provider_username":{"type":"string","nullable":true},"email":{"type":"string","format":"email"},"email_verified":{"type":"boolean"},"avatar_url":{"type":"string","format":"uri","nullable":true},"name":{"type":"string","nullable":true},"region":{"type":"string","nullable":true,"enum":["North America","South America","Europe","Asia Pacific","Middle East","Africa"]},"purpose":{"type":"string","nullable":true,"enum":["Security auditing","Vulnerability management","Compliance","DevSecOps integration","Research & Education","Other"]},"role":{"type":"string","nullable":true,"description":"User onboarding job role, not organization membership role.","enum":["Security Engineer","Security Analyst","Developer","DevOps Engineer","CISO / Security Manager","Penetration Tester","Other"]},"organization_size":{"type":"string","nullable":true,"enum":["1-10 employees","11-50 employees","51-200 employees","201-1000 employees","1000+ employees"]},"onboarding_completed":{"type":"boolean","description":"Whether the current user has already been shown the initial product onboarding."},"language":{"type":"string","enum":["en","ko"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"UpdateUserProfileRequest":{"type":"object","properties":{"region":{"type":"string","enum":["North America","South America","Europe","Asia Pacific","Middle East","Africa"]},"purpose":{"type":"string","enum":["Security auditing","Vulnerability management","Compliance","DevSecOps integration","Research & Education","Other"]},"role":{"type":"string","description":"User onboarding job role, not organization membership role.","enum":["Security Engineer","Security Analyst","Developer","DevOps Engineer","CISO / Security Manager","Penetration Tester","Other"]},"organization_size":{"type":"string","enum":["1-10 employees","11-50 employees","51-200 employees","201-1000 employees","1000+ employees"]},"language":{"type":"string","enum":["en","ko"]},"onboarding_completed":{"type":"boolean","description":"Marks the initial product onboarding as already shown for the current user."}}},"UpdateUserProfileResponse":{"type":"object","required":["user"],"properties":{"user":{"$ref":"#/components/schemas/UserProfile"}}},"DeleteAccountRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":500,"nullable":true}}},"DeleteAccountResponse":{"type":"object","required":["requires_provider_authorization","message","deleted_at","anonymized","cascade_summary"],"properties":{"requires_provider_authorization":{"type":"boolean","enum":[false],"description":"Always false. Provider re-auth was removed; deletion runs synchronously."},"authorization_url":{"type":"string","nullable":true,"description":"Always null because deletion does not require provider authorization."},"provider":{"type":"string","nullable":true,"description":"Always null because deletion is provider-independent."},"message":{"type":"string"},"deleted_at":{"type":"string","format":"date-time"},"anonymized":{"type":"boolean"},"cascade_summary":{"type":"object","required":["api_keys","memberships"],"properties":{"api_keys":{"type":"integer","minimum":0},"memberships":{"type":"integer","minimum":0}}}}},"ApiKeyCreateRequest":{"type":"object","required":["name","organization_id"],"properties":{"name":{"type":"string","minLength":1,"maxLength":100},"organization_id":{"type":"string","format":"uuid"}}},"ApiKeyCreateResponse":{"type":"object","required":["api_key","key_prefix","name","organization_id","created_at"],"properties":{"api_key":{"type":"string","description":"Raw API key. Returned once on creation."},"key_prefix":{"type":"string"},"name":{"type":"string"},"organization_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"}}},"ApiKeyInfo":{"type":"object","required":["id","key_prefix","name","organization_id","is_active","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"key_prefix":{"type":"string"},"name":{"type":"string"},"organization_id":{"type":"string","format":"uuid"},"is_active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"last_used":{"type":"string","format":"date-time","nullable":true}}},"SlugAvailabilityResponse":{"type":"object","required":["slug","available"],"properties":{"slug":{"type":"string"},"available":{"type":"boolean"}}},"OrganizationCreateRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":100},"slug":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[a-z0-9-]+$","nullable":true}}},"OrganizationUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"nullable":true},"settings":{"type":"object","additionalProperties":true,"properties":{"report_language":{"type":"string","enum":["en","ko"],"description":"Organization LLM narrative language. Defaults to en when absent. Changes apply to subsequent SDK calls, including resume and correction; existing results remain unchanged."}}}}},"OrganizationListResponse":{"type":"object","required":["organizations","total"],"properties":{"organizations":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationResponse"}},"total":{"type":"integer","minimum":0}}},"OrganizationResponse":{"type":"object","required":["id","name","slug","plan","max_members","max_sast_checks_per_month","member_count","my_role","settings","created_at","updated_at","enabled_features"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"plan":{"type":"string","enum":["starter","pro","business","enterprise","demo"]},"max_members":{"type":"integer"},"max_sast_checks_per_month":{"type":"integer"},"member_count":{"type":"integer","minimum":0},"my_role":{"$ref":"#/components/schemas/MemberRole"},"settings":{"type":"object"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"enabled_features":{"type":"array","description":"Organization features in effect: the value set for the organization, else the value for its billing plan, else the value for every organization, all set by AutoProof administrators. Every feature defaults to off; an empty array means the organization uses the standard experience. Keys are AutoProof feature flag names (for example help_agent or repository_scheduled_scans); the set changes as features are added and retired, so clients ignore keys they do not know.","items":{"type":"string"}}}},"BillingCheckoutSessionRequest":{"type":"object","required":["plan_code","billing_interval","success_url","cancel_url"],"properties":{"plan_code":{"type":"string","enum":["pro","business"]},"billing_interval":{"type":"string","enum":["monthly","annual"]},"success_url":{"type":"string","format":"uri"},"cancel_url":{"type":"string","format":"uri"},"confirm_scheduled_change":{"type":"boolean","default":false,"description":"Explicitly confirms a server-classified deferred plan change."}}},"BillingCustomerPortalSessionRequest":{"type":"object","required":["return_url"],"properties":{"return_url":{"type":"string","format":"uri"}}},"BillingSessionResponse":{"type":"object","required":["mode"],"properties":{"session_id":{"type":"string","nullable":true},"url":{"type":"string","format":"uri","nullable":true},"mode":{"type":"string","enum":["checkout","portal_redirect","portal","confirmation_required","scheduled_change"]},"reused":{"type":"boolean"},"expires_at":{"type":"string","format":"date-time","nullable":true},"effective_at":{"type":"string","format":"date-time","nullable":true},"confirmation":{"allOf":[{"$ref":"#/components/schemas/BillingPlanChangeConfirmation"}],"nullable":true}}},"BillingPlanChangeConfirmation":{"type":"object","required":["current_plan_code","current_billing_interval","target_plan_code","target_billing_interval","effective_at","charge_today_amount","renewal_unit_amount","currency"],"properties":{"current_plan_code":{"type":"string","enum":["pro","business"]},"current_billing_interval":{"type":"string","enum":["monthly","annual"]},"target_plan_code":{"type":"string","enum":["pro","business"]},"target_billing_interval":{"type":"string","enum":["monthly","annual"]},"effective_at":{"type":"string","format":"date-time"},"charge_today_amount":{"type":"integer","minimum":0,"description":"Amount due today in the currency's minor unit."},"renewal_unit_amount":{"type":"integer","minimum":0,"description":"Target plan base renewal amount in the currency's minor unit, before tax."},"currency":{"type":"string","minLength":3,"maxLength":3}}},"BillingStripeWebhookResponse":{"type":"object","required":["event_id","event_type","duplicate","subscription_updated"],"properties":{"event_id":{"type":"string"},"event_type":{"type":"string"},"duplicate":{"type":"boolean"},"subscription_updated":{"type":"boolean"}}},"BillingSubscriptionSummaryResponse":{"type":"object","required":["organization_id","plan_code","cancel_at_period_end","pending_checkout"],"properties":{"organization_id":{"type":"string","format":"uuid"},"plan_code":{"type":"string","enum":["starter","pro","business","enterprise","demo"]},"billing_interval":{"type":"string","enum":["monthly","annual"],"nullable":true},"status":{"type":"string","nullable":true},"current_period_end":{"type":"string","format":"date-time","nullable":true},"cancel_at_period_end":{"type":"boolean"},"cancel_at":{"type":"string","format":"date-time","nullable":true},"pending_checkout":{"type":"boolean"},"pending_change":{"allOf":[{"$ref":"#/components/schemas/BillingPendingPlanChangeResponse"}],"nullable":true}}},"BillingPendingPlanChangeResponse":{"type":"object","required":["id","plan_code","billing_interval","effective_at","status"],"properties":{"id":{"type":"string","format":"uuid"},"plan_code":{"type":"string","enum":["pro","business"]},"billing_interval":{"type":"string","enum":["monthly","annual"]},"effective_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["pending"]}}},"UsageSummaryResponse":{"type":"object","required":["plan","analyses","verifications","patch_validations","members","billing_warning"],"properties":{"plan":{"type":"string","enum":["starter","pro","business","enterprise","demo"]},"period_start":{"type":"string","format":"date-time","nullable":true},"period_end":{"type":"string","format":"date-time","nullable":true},"analyses":{"$ref":"#/components/schemas/AnalysisUsageDetail"},"verifications":{"$ref":"#/components/schemas/VerificationUsageDetail"},"patch_validations":{"$ref":"#/components/schemas/UsageDetail"},"members":{"$ref":"#/components/schemas/UsageDetail"},"billing_warning":{"$ref":"#/components/schemas/BillingWarning"}}},"PublicUsageSummaryResponse":{"type":"object","required":["plan_code","analyses","verifications","members"],"properties":{"plan_code":{"type":"string","enum":["starter","pro","business","enterprise","demo"]},"analyses":{"$ref":"#/components/schemas/UsageDetail"},"verifications":{"$ref":"#/components/schemas/UsageDetail"},"members":{"$ref":"#/components/schemas/UsageDetail"}}},"BillingWarning":{"type":"object","required":["state"],"properties":{"state":{"type":"string","nullable":true,"enum":["past_due","cancel_scheduled"]},"period_end":{"type":"string","format":"date-time","nullable":true}}},"UsageDetail":{"type":"object","required":["used","unlimited"],"properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"nullable":true},"unlimited":{"type":"boolean"}}},"VerificationUsageDetail":{"allOf":[{"$ref":"#/components/schemas/UsageDetail"},{"type":"object","required":["source"],"properties":{"source":{"type":"string","enum":["organization","account"]}}}]},"AnalysisUsageDetail":{"type":"object","required":["unlimited"],"properties":{"used":{"type":"integer","minimum":0,"nullable":true},"limit":{"type":"integer","minimum":0,"nullable":true},"unlimited":{"type":"boolean"}}},"MemberUpdateRequest":{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["admin","member","viewer"]}}},"MemberInviteRequest":{"type":"object","required":["email","role"],"properties":{"email":{"type":"string"},"role":{"type":"string","enum":["admin","member","viewer"]}}},"MemberListResponse":{"type":"object","required":["members","total"],"properties":{"members":{"type":"array","items":{"$ref":"#/components/schemas/MemberResponse"}},"total":{"type":"integer","minimum":0}}},"MemberResponse":{"type":"object","required":["user_id","organization_id","email","role","joined_at"],"properties":{"user_id":{"type":"string","format":"uuid"},"organization_id":{"type":"string","format":"uuid"},"email":{"type":"string","format":"email"},"oauth_provider":{"type":"string","nullable":true},"provider_username":{"type":"string","nullable":true},"avatar_url":{"type":"string","format":"uri","nullable":true},"role":{"$ref":"#/components/schemas/MemberRole"},"joined_at":{"type":"string","format":"date-time"}}},"InvitationResponse":{"type":"object","required":["id","organization_name","organization_slug","invited_by_name","role","email","expires_at","status","email_delivery_status"],"properties":{"id":{"type":"string","format":"uuid"},"organization_name":{"type":"string"},"organization_slug":{"type":"string"},"invited_by_name":{"type":"string"},"role":{"type":"string","enum":["admin","member","viewer"]},"email":{"type":"string","format":"email"},"expires_at":{"type":"string","format":"date-time"},"status":{"$ref":"#/components/schemas/InvitationStatus"},"email_delivery_status":{"type":"string","enum":["queued","processing","retry_pending","delivered","dead_letter","cancelled"]}}},"InvitationStatus":{"type":"string","enum":["pending","accepted","cancelled","expired"]},"TransferOwnershipRequest":{"type":"object","required":["new_owner_id"],"properties":{"new_owner_id":{"type":"string","format":"uuid"}}},"TransferOwnershipResponse":{"type":"object","required":["organization_id","previous_owner_id","new_owner_id","previous_owner_new_role","transferred_at"],"properties":{"organization_id":{"type":"string","format":"uuid"},"previous_owner_id":{"type":"string","format":"uuid"},"new_owner_id":{"type":"string","format":"uuid"},"previous_owner_new_role":{"type":"string","enum":["admin"]},"transferred_at":{"type":"string","format":"date-time"}}},"AuditListResponse":{"type":"object","required":["data","page"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AuditRecordResponse"}},"page":{"$ref":"#/components/schemas/AuditPage"}}},"AuditPage":{"type":"object","required":["limit"],"properties":{"next_cursor":{"type":"string","nullable":true},"limit":{"type":"integer"}}},"AuditRecordResponse":{"type":"object","required":["audit_id","organization_id","actor_type","actor_id","event_type","subject_type","subject_id","payload","created_at"],"properties":{"audit_id":{"type":"string","format":"uuid"},"organization_id":{"type":"string","format":"uuid"},"analysis_id":{"type":"string","format":"uuid","nullable":true},"attempt_id":{"type":"string","format":"uuid","nullable":true},"actor_type":{"type":"string","example":"runner"},"actor_id":{"type":"string"},"event_type":{"type":"string","example":"llm.credential-granted"},"subject_type":{"type":"string","example":"llm_credential_grant"},"subject_id":{"type":"string"},"payload":{"type":"object","additionalProperties":true},"created_at":{"type":"string","format":"date-time"}}},"MemberRole":{"type":"string","enum":["owner","admin","member","viewer"]},"RepositoryCreateRequest":{"type":"object","required":["repo_url"],"properties":{"repo_url":{"type":"string","description":"HTTPS, SSH, or schemeless GitHub/GitLab repository URL.","example":"git@github.com:acme/service.git"},"provider":{"type":"string","nullable":true,"example":"github"},"access_mode":{"type":"string","nullable":true,"default":"public","enum":["public","provider_integration"]},"default_branch":{"type":"string","nullable":true,"maxLength":255,"default":"main","description":"Default branch of the repository. When it is omitted for a public GitHub repository, the server reads it with the organization's GitHub App; an organization without the App registers the repository without one, and its scans then send `ref`, `ref_type` and `commit_sha`."}}},"ProviderConnectionRequest":{"type":"object","required":["auth_method"],"properties":{"auth_method":{"type":"string","description":"GitHub supports `github_app`; GitLab supports `oauth` and `gat`. Bitbucket connects through the AutoProof Forge app, not this request.","enum":["github_app","oauth","gat"]},"access_token":{"type":"string","nullable":true,"writeOnly":true,"description":"Required for GitLab OAuth/GAT connections. Never returned."},"refresh_token":{"type":"string","nullable":true,"writeOnly":true,"description":"Optional GitLab OAuth refresh token. Never returned."},"installation_id":{"type":"string","nullable":true,"description":"Required for GitHub App connections.","example":"98765"},"provider_account_id":{"type":"string","nullable":true,"example":"42"},"provider_account_login":{"type":"string","nullable":true,"example":"acme"},"scopes":{"type":"array","items":{"type":"string"},"default":[],"example":["read_api","read_repository"]},"metadata":{"type":"object","additionalProperties":true,"default":{}},"token_expires_at":{"type":"string","format":"date-time","nullable":true}}},"GitHubRepositorySyncSettingsRequest":{"type":"object","description":"Admin-only browser PUT /app/v2/organizations/{organizationId}/providers/github/repository-sync. Saves only the preference; the caller may then invoke the existing Sync API.","required":["repository_auto_sync_enabled"],"properties":{"repository_auto_sync_enabled":{"type":"boolean"}}},"ProviderConnectionResponse":{"type":"object","required":["provider","auth_method","status","active","repository_auto_sync_enabled","scopes","metadata","updated_at"],"properties":{"provider":{"type":"string","enum":["github","gitlab","bitbucket"]},"auth_method":{"type":"string","nullable":true,"description":"Null when a provider has not been connected yet.","enum":["github_app","oauth","gat","forge_app"]},"status":{"type":"string","enum":["active","disconnected"]},"active":{"type":"boolean"},"repository_auto_sync_enabled":{"type":"boolean","default":false,"description":"GitHub only. Automatically register accessible repositories when explicitly enabled by an organization admin."},"installation_id":{"type":"string","nullable":true},"provider_account_id":{"type":"string","nullable":true},"provider_account_login":{"type":"string","nullable":true},"scopes":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object","additionalProperties":true},"token_expires_at":{"type":"string","format":"date-time","nullable":true},"connected_at":{"type":"string","format":"date-time","nullable":true},"updated_at":{"type":"string","format":"date-time"},"disconnected_at":{"type":"string","format":"date-time","nullable":true}}},"OrganizationIntegrationRequest":{"type":"object","required":["access_token"],"properties":{"access_token":{"type":"string","writeOnly":true,"description":"Slack bot token or Jira access token. Never returned."},"secondary_token":{"type":"string","nullable":true,"writeOnly":true,"description":"Optional secondary provider token, such as a Slack user token. Never returned."},"refresh_token":{"type":"string","nullable":true,"writeOnly":true,"description":"Optional Jira refresh token. Never returned."},"external_account_id":{"type":"string","nullable":true,"description":"Provider workspace, team, cloud, or tenant ID.","example":"T123"},"external_account_name":{"type":"string","nullable":true,"description":"Provider workspace, team, cloud, or tenant display name.","example":"Acme Slack"},"config":{"type":"object","additionalProperties":true,"default":{},"description":"Provider configuration such as Slack channel settings or Jira project mappings."},"token_expires_at":{"type":"string","format":"date-time","nullable":true}}},"OrganizationIntegrationResponse":{"type":"object","required":["provider","status","active","config","updated_at"],"properties":{"provider":{"type":"string","enum":["slack","jira"]},"status":{"type":"string","enum":["active","disconnected"]},"active":{"type":"boolean"},"external_account_id":{"type":"string","nullable":true},"external_account_name":{"type":"string","nullable":true},"config":{"type":"object","additionalProperties":true},"token_expires_at":{"type":"string","format":"date-time","nullable":true},"connected_at":{"type":"string","format":"date-time","nullable":true},"updated_at":{"type":"string","format":"date-time"},"disconnected_at":{"type":"string","format":"date-time","nullable":true}}},"JiraProjectListResponse":{"type":"object","required":["projects"],"properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/JiraProject"}}}},"JiraProject":{"type":"object","required":["id","key","name","project_type"],"properties":{"id":{"type":"string","example":"10000"},"key":{"type":"string","example":"SEC"},"name":{"type":"string","example":"Security"},"project_type":{"type":"string","example":"software"}}},"JiraIssueTypeListResponse":{"type":"object","required":["issue_types"],"properties":{"issue_types":{"type":"array","items":{"$ref":"#/components/schemas/JiraIssueType"}}}},"JiraIssueType":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","example":"10001"},"name":{"type":"string","example":"Bug"},"description":{"type":"string","nullable":true},"icon_url":{"type":"string","nullable":true,"format":"uri"}}},"GitHubAppInstallAuthorizeResponse":{"type":"object","required":["authorization_url"],"properties":{"authorization_url":{"type":"string","format":"uri","description":"GitHub App installation URL."}}},"GitLabOAuthAuthorizeResponse":{"type":"object","required":["authorization_url"],"properties":{"authorization_url":{"type":"string","format":"uri","description":"GitLab OAuth authorization URL."}}},"SlackOAuthAuthorizeResponse":{"type":"object","required":["authorization_url"],"properties":{"authorization_url":{"type":"string","format":"uri","description":"Slack OAuth V2 authorization URL."}}},"JiraOAuthAuthorizeResponse":{"type":"object","required":["authorization_url"],"properties":{"authorization_url":{"type":"string","format":"uri","description":"Atlassian OAuth 3LO authorization URL."}}},"SlackChannelListResponse":{"type":"object","required":["channels"],"properties":{"channels":{"type":"array","items":{"$ref":"#/components/schemas/SlackChannel"}}}},"SlackChannel":{"type":"object","required":["id","name","is_private","is_member","num_members"],"properties":{"id":{"type":"string","example":"C123"},"name":{"type":"string","example":"security-alerts"},"is_private":{"type":"boolean"},"is_member":{"type":"boolean"},"num_members":{"type":"integer","format":"int32"}}},"SlackTestNotificationResponse":{"type":"object","required":["status","message","delivered"],"properties":{"status":{"type":"string","enum":["ok"]},"message":{"type":"string"},"repository_id":{"type":"string","format":"uuid","nullable":true},"delivered":{"type":"boolean","description":"True when a repository-targeted Slack test message was sent."}}},"ProviderRepositoryListResponse":{"type":"object","required":["repositories"],"properties":{"repositories":{"type":"array","items":{"$ref":"#/components/schemas/ProviderRepositoryCandidate"}}}},"ProviderRepositoryCandidate":{"type":"object","required":["provider","clone_url","name","private","registered","reconnectable"],"properties":{"provider":{"type":"string","enum":["github","gitlab","bitbucket"]},"clone_url":{"type":"string","format":"uri","description":"HTTPS, SSH, or schemeless GitHub/GitLab repository URL returned by the provider.","example":"https://gitlab.com/acme/service"},"name":{"type":"string","description":"Provider full name such as `owner/repo` or `group/subgroup/repo`.","example":"acme/service"},"provider_repository_id":{"type":"string","nullable":true,"description":"Stable provider-side repository/project ID when available.","example":"1001"},"default_branch":{"type":"string","nullable":true,"example":"main"},"description":{"type":"string","nullable":true},"private":{"type":"boolean"},"language":{"type":"string","nullable":true,"example":"Java"},"updated_at":{"type":"string","format":"date-time","nullable":true},"registered":{"type":"boolean","description":"True when this provider repository is already imported into Autoproof."},"needs_promotion":{"type":"boolean","description":"True when an existing public repository can be promoted to provider integration."},"reconnectable":{"type":"boolean","description":"True when a previously disconnected imported repository can be reconnected using its existing repository identity."}}},"ProviderRepositorySyncRequest":{"type":"object","properties":{"group_path":{"type":"string","nullable":true,"description":"GitLab group path used to scope project discovery.","example":"acme/platform"},"deactivate_missing":{"type":"boolean","default":true,"description":"Marks previously accessible provider repositories as inaccessible when they are missing from the provider listing."}}},"ProviderRepositoryAccessSyncResponse":{"type":"object","required":["provider","created","updated","deactivated","reactivated","repositories"],"properties":{"provider":{"type":"string","enum":["github","gitlab","bitbucket"]},"created":{"type":"integer","minimum":0},"updated":{"type":"integer","minimum":0},"deactivated":{"type":"integer","minimum":0},"reactivated":{"type":"integer","minimum":0},"repositories":{"type":"array","items":{"$ref":"#/components/schemas/ProviderRepositoryAccessItem"}}}},"ProviderRepositoryAccessItem":{"type":"object","required":["provider","clone_url","name"],"properties":{"provider":{"type":"string","enum":["github","gitlab","bitbucket"]},"clone_url":{"type":"string","format":"uri"},"name":{"type":"string"},"provider_repository_id":{"type":"string","nullable":true},"default_branch":{"type":"string","nullable":true}}},"RepositoryListResponse":{"type":"object","required":["data","page"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RepositoryResponse"}},"page":{"$ref":"#/components/schemas/RepositoryPage"}}},"RepositoryPage":{"type":"object","required":["limit"],"properties":{"next_cursor":{"type":"string","nullable":true},"limit":{"type":"integer"}}},"DeletionImpactResponse":{"type":"object","required":["resource_type","resource_id","lifecycle_state","impact_version","active_work_exists","blockers","analysis_count","finding_count","orphan_finding_count","shared_finding_count","jira_issue_keys","artifact_count","derived_artifact_count","source_archive_count","outstanding_reservation_count"],"properties":{"resource_type":{"type":"string","enum":["analysis","repository"]},"resource_id":{"type":"string","format":"uuid"},"lifecycle_state":{"type":"string","enum":["active","archived","purging"]},"impact_version":{"type":"string"},"active_work_exists":{"type":"boolean"},"blockers":{"$ref":"#/components/schemas/DeletionBlockers"},"analysis_count":{"type":"integer","minimum":0},"finding_count":{"type":"integer","minimum":0},"orphan_finding_count":{"type":"integer","minimum":0},"shared_finding_count":{"type":"integer","minimum":0},"jira_issue_keys":{"type":"array","items":{"type":"string"}},"artifact_count":{"type":"integer","minimum":0},"derived_artifact_count":{"type":"integer","minimum":0,"description":"Number of private derived-source artifacts, such as Joern CPGs, included in deletion."},"source_archive_count":{"type":"integer","minimum":0},"outstanding_reservation_count":{"type":"integer","minimum":0}}},"DeletionBlockers":{"type":"object","required":["analyses_without_attempts","application_source_analyses","application_memberships","executions","verification_retries","finding_attempts","patch_validations","source_uploads","source_capabilities","runtime_leases","environment_cleanups","jira_creations"],"properties":{"analyses_without_attempts":{"type":"integer","minimum":0},"application_source_analyses":{"type":"integer","minimum":0},"application_memberships":{"type":"integer","minimum":0},"executions":{"type":"integer","minimum":0},"verification_retries":{"type":"integer","minimum":0},"finding_attempts":{"type":"integer","minimum":0},"patch_validations":{"type":"integer","minimum":0},"source_uploads":{"type":"integer","minimum":0},"source_capabilities":{"type":"integer","minimum":0},"runtime_leases":{"type":"integer","minimum":0},"environment_cleanups":{"type":"integer","minimum":0},"jira_creations":{"type":"integer","minimum":0}}},"DeletionJobResponse":{"type":"object","required":["job_id","resource_type","resource_id","status","attempt_count"],"properties":{"job_id":{"type":"string","format":"uuid"},"resource_type":{"type":"string","enum":["analysis","repository"]},"resource_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","running","failed","dead_letter","succeeded"]},"attempt_count":{"type":"integer","minimum":0},"last_error":{"type":"string","nullable":true,"description":"Safe user-facing retry guidance. Internal exception and storage details are never returned."},"failure_category":{"type":"string","nullable":true,"description":"Stable public failure category. Internal exception classes are never returned."},"next_attempt_at":{"type":"string","format":"date-time","nullable":true},"dead_lettered_at":{"type":"string","format":"date-time","nullable":true}}},"ApplicationRepositoryInput":{"type":"object","additionalProperties":false,"required":["repository_id","source_alias"],"properties":{"repository_id":{"type":"string","format":"uuid"},"source_alias":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"}}},"ApplicationRequest":{"description":"Sources available for finding dynamic verification. Repositories may be shared across Applications; membership does not require deploying every source as a service.","type":"object","additionalProperties":false,"required":["name","repositories"],"properties":{"name":{"type":"string","minLength":1,"maxLength":255},"repositories":{"type":"array","minItems":1,"maxItems":32,"items":{"$ref":"#/components/schemas/ApplicationRepositoryInput"}}}},"ApplicationUpdateRequest":{"type":"object","additionalProperties":false,"required":["name","expected_version","repositories"],"properties":{"name":{"type":"string","minLength":1,"maxLength":255},"expected_version":{"type":"integer","format":"int64","minimum":0},"repositories":{"type":"array","minItems":1,"maxItems":32,"items":{"$ref":"#/components/schemas/ApplicationRepositoryInput"}}}},"ApplicationRuntimeConfigurationRequest":{"type":"object","additionalProperties":false,"properties":{"application_source_inputs":{"type":"array","maxItems":32,"description":"Fresh archive revisions for every archive-backed repository in the Application, and optionally the exact commit of its Git repositories.","items":{"$ref":"#/components/schemas/ApplicationSourceInput"}}}},"ApplicationSourceInput":{"description":"One repository of the Application. An archive-backed repository names a fresh inspected revision; a Git repository may name the exact commit to use. Without a GitHub App connection, a public GitHub repository's commit must be given here because V2 does not read GitHub for it.","oneOf":[{"$ref":"#/components/schemas/ApplicationArchiveSourceInput"},{"$ref":"#/components/schemas/ApplicationGitSourceInput"}]},"ApplicationArchiveSourceInput":{"type":"object","additionalProperties":false,"required":["repository_id","source_archive_revision_id"],"properties":{"repository_id":{"type":"string","format":"uuid"},"source_archive_revision_id":{"type":"string","format":"uuid"}}},"ApplicationGitSourceInput":{"type":"object","additionalProperties":false,"required":["repository_id","ref","ref_type","commit_sha"],"properties":{"repository_id":{"type":"string","format":"uuid"},"ref":{"type":"string","maxLength":255,"description":"Branch or tag the commit was read from."},"ref_type":{"type":"string","enum":["branch","tag"]},"commit_sha":{"type":"string","pattern":"^[a-fA-F0-9]{40}$"}}},"ApplicationRuntimeConfigurationResponse":{"type":"object","additionalProperties":false,"required":["configuration_id","status"],"properties":{"configuration_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["in_progress","succeeded","failed"]}}},"RepositoryRuntimeConfigurationRequest":{"type":"object","additionalProperties":false,"description":"For Git repositories, omitted source fields are resolved through the configured provider. Supplying `ref`, `ref_type`, and `commit_sha` binds the accepted workflow to that exact source without provider ref resolution. Archive repositories accept only `source_archive_revision_id`. V2 reads GitHub only with the organization's GitHub App installation token. Without a GitHub App connection, a public GitHub repository needs `ref`, `ref_type` and `commit_sha` (and a Git member of an Application needs a Git item in `application_source_inputs`); a missing value is rejected with 422 `source_selection_required` instead of being read from GitHub.","properties":{"ref":{"type":"string","nullable":true,"description":"Branch or tag for a Git repository. Provide with `ref_type` and `commit_sha` to bind an exact source without provider ref resolution."},"ref_type":{"type":"string","nullable":true,"enum":["branch","tag"],"description":"Git reference type. Invalid for archive-backed repositories."},"commit_sha":{"type":"string","nullable":true,"description":"Exact Git commit to configure. When provided with `ref` and `ref_type`, V2 accepts the source without provider ref resolution."},"source_archive_revision_id":{"type":"string","format":"uuid","nullable":true,"description":"Fresh inspected source revision required for an archive-backed repository."},"repository_size_kib":{"type":"integer","format":"int32","minimum":0,"nullable":true,"description":"Browser path only (`/app/v2`). Repository size in KiB as GitHub reported it to the browser, used by the plan's early size check for a public repository. API keys cannot send it."}}},"ApplicationRepositoryResponse":{"type":"object","additionalProperties":false,"required":["repository_id","source_alias","repository_name","source_type","provider","status","lifecycle_state"],"properties":{"repository_id":{"type":"string","format":"uuid"},"source_alias":{"type":"string"},"repository_name":{"type":"string"},"source_type":{"type":"string","enum":["git_remote","archive"]},"provider":{"type":"string"},"status":{"type":"string","enum":["READY","DISCONNECTED"]},"lifecycle_state":{"type":"string","enum":["active","archived","purging"]}}},"ApplicationRuntimePlanStepResponse":{"type":"object","additionalProperties":false,"required":["id","kind","status"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["build_artifact","derive_build_context","build_image"]},"status":{"type":"string","enum":["planned","succeeded","failed"]}}},"ApplicationRuntimeStepResponse":{"type":"object","additionalProperties":false,"required":["step","status"],"properties":{"step":{"type":"string"},"status":{"type":"string"}}},"ApplicationLatestRuntimeResponse":{"type":"object","additionalProperties":false,"required":["analysis_id","configuration_id","trigger","execution_status","analysis_status","runtime_status","cleanup_status","reason","active_step","runtime_execution_plan_hash","candidate_number","plan_steps","steps","updated_at"],"properties":{"native_configuration":{"allOf":[{"$ref":"#/components/schemas/NativeRuntimeConfigurationSummary"}],"nullable":true},"analysis_id":{"type":"string","format":"uuid","nullable":true},"configuration_id":{"type":"string","format":"uuid","nullable":true},"trigger":{"type":"string","enum":["analysis","configuration"]},"execution_status":{"type":"string"},"analysis_status":{"type":"string","nullable":true},"runtime_status":{"type":"string","description":"Runtime availability for analysis triggers and test result for configuration triggers. `released` is a legacy response value. For configuration triggers, `unavailable` or legacy `released` means the test result is not available; it does not indicate pass or failure.","enum":["not_started","in_progress","ready","failed","unavailable","released"]},"cleanup_status":{"type":"string","nullable":true,"description":"Cleanup lifecycle, independent from the test outcome. Once cleanup starts, an analysis runtime is no longer available even while cleanup is pending, running, or failed.","enum":["not_requested","pending","running","succeeded","failed"]},"reason":{"type":"string","nullable":true,"description":"Customer-safe primary runtime setup cause. A terminal repair outcome retains the BUILD cause that initiated repair.","enum":["unsupported_source","source_unavailable","capacity_unavailable","build_unavailable","publish_unavailable","runtime_unavailable","health_unavailable","observation_unavailable","system_failure","canceled"]},"active_step":{"type":"string","nullable":true},"runtime_execution_plan_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","nullable":true},"candidate_number":{"type":"integer","minimum":1,"maximum":2,"nullable":true},"plan_steps":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationRuntimePlanStepResponse"}},"steps":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationRuntimeStepResponse"}},"updated_at":{"type":"string","format":"date-time"}}},"NativeRuntimeConfigurationSummary":{"type":"object","additionalProperties":false,"required":["id","status","generation","source_set_hash","recipe_id","parent_recipe_id","services","ready_target_ids"],"properties":{"preparation_mode":{"type":"string","enum":["SERVICE","LIBRARY","UNRESOLVED"],"description":"Server-owned preparation decision. Optional for historical responses; absence or target count does not select LIBRARY. This is not recipe approval or finding reproduction evidence."},"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["planning","library_configuring","created","configuring","saving","closing","accepted","unavailable","failed","canceled"]},"generation":{"type":"integer","minimum":0},"source_set_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","nullable":true},"recipe_id":{"type":"string","format":"uuid","nullable":true},"parent_recipe_id":{"type":"string","format":"uuid","nullable":true},"services":{"type":"array","items":{"type":"string"}},"ready_target_ids":{"type":"array","items":{"type":"string","format":"uuid"}}}},"ApplicationRecentAnalysisResponse":{"type":"object","additionalProperties":false,"required":["analysis_id","repository_id","repository_name","analysis_status","runtime_status","requested_at","updated_at"],"properties":{"analysis_id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"repository_name":{"type":"string"},"analysis_status":{"type":"string"},"runtime_status":{"type":"string","description":"Runtime availability for the analysis. `released` is a legacy response value; current projections emit `unavailable` instead.","enum":["not_started","in_progress","ready","failed","unavailable","released"]},"requested_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ApplicationResponse":{"type":"object","additionalProperties":false,"required":["application_id","organization_id","name","version","repositories","latest_runtime","recent_analyses","created_at","updated_at"],"properties":{"application_id":{"type":"string","format":"uuid"},"organization_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"integer","format":"int64"},"repositories":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationRepositoryResponse"}},"latest_runtime":{"description":"Latest durable runtime projection. Repository detail and refresh responses populate it; list and create responses return null.","nullable":true,"allOf":[{"$ref":"#/components/schemas/ApplicationLatestRuntimeResponse"}]},"recent_analyses":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/ApplicationRecentAnalysisResponse"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"RepositoryResponse":{"type":"object","required":["repository_id","provider","repo_url","name","access_mode","source_type","default_branch","status","lifecycle_state","archived_at","lifecycle_version","latest_runtime","created_at","updated_at"],"properties":{"repository_id":{"type":"string","format":"uuid"},"provider":{"type":"string","example":"github"},"repo_url":{"type":"string","format":"uri","nullable":true},"name":{"type":"string"},"access_mode":{"type":"string","enum":["public","provider_integration"]},"source_type":{"type":"string","enum":["git_remote","archive"]},"default_branch":{"type":"string","nullable":true},"available_branches":{"type":"array","items":{"type":"string"},"description":"Fresh provider branch names when metadata was explicitly refreshed."},"available_tags":{"type":"array","items":{"type":"string"},"description":"Fresh provider tag names when metadata was explicitly refreshed."},"status":{"type":"string","enum":["READY","DISCONNECTED"]},"auto_trigger_status":{"type":"string","nullable":true,"description":"Push auto-trigger state. GitHub/GitLab repository imports default to `disabled` unless a provider webhook flow explicitly enables it."},"lifecycle_state":{"type":"string","enum":["active","archived","purging"]},"archived_at":{"type":"string","format":"date-time","nullable":true},"lifecycle_version":{"type":"integer","format":"int64","example":"disabled"},"latest_runtime":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ApplicationLatestRuntimeResponse"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"RepositoryCommitListResponse":{"type":"object","required":["commits","ref","total"],"properties":{"commits":{"type":"array","items":{"$ref":"#/components/schemas/RepositoryCommit"}},"ref":{"type":"string"},"total":{"type":"integer","minimum":0}}},"RepositoryCommit":{"type":"object","required":["commit_sha","commit_message","commit_author","commit_date"],"properties":{"commit_sha":{"type":"string"},"commit_message":{"type":"string"},"commit_author":{"type":"string"},"commit_date":{"type":"string","format":"date-time"}}},"RepositoryJiraSettingsPatchRequest":{"type":"object","description":"Repository-level Jira settings patch. Omit a field to keep the current repository value. Send `null` to clear the repository override and inherit the organization Jira default.\n","properties":{"project_key":{"type":"string","nullable":true,"description":"Jira project key override. Null clears the override.","example":"SEC"},"issue_type_id":{"type":"string","nullable":true,"description":"Jira issue type ID override. Null clears the override.","example":"10001"},"issue_type_name":{"type":"string","nullable":true,"description":"Jira issue type name override. Null clears the override.","example":"Bug"},"auto_create":{"nullable":true,"description":"Repository auto-create policy override. Null clears the override.","oneOf":[{"$ref":"#/components/schemas/JiraAutoCreatePolicy"}]},"automation_updates":{"nullable":true,"description":"Jira comment policy override for GitHub automation updates. Null clears the override.","oneOf":[{"$ref":"#/components/schemas/JiraAutomationUpdatePolicy"}]},"grouping_mode":{"type":"string","nullable":true,"enum":["VERIFICATION_UNIT","FILE"],"description":"Repository Jira issue grouping override. Null inherits the organization default."},"enabled":{"type":"boolean","nullable":true,"description":"False disables Jira issue creation for this configured repository. Null resets to enabled."}}},"RepositoryJiraSettingsResponse":{"type":"object","required":["configured","enabled","is_project_override","is_issue_type_override","is_auto_create_override","is_automation_updates_override","grouping_mode","is_grouping_mode_override"],"properties":{"configured":{"type":"boolean","description":"True when repository-level Jira settings exist. Jira issue creation requires this to be true."},"enabled":{"type":"boolean","description":"Effective repository Jira enablement. Defaults to true when configured."},"project_key":{"type":"string","nullable":true,"description":"Effective Jira project key after repository override and organization default merge.","example":"SEC"},"issue_type_id":{"type":"string","nullable":true,"description":"Effective Jira issue type ID.","example":"10001"},"issue_type_name":{"type":"string","nullable":true,"description":"Effective Jira issue type name.","example":"Bug"},"auto_create":{"nullable":true,"description":"Effective auto-create policy.","oneOf":[{"$ref":"#/components/schemas/JiraAutoCreatePolicy"}]},"automation_updates":{"nullable":true,"description":"Effective Jira comment policy for GitHub automation updates.","oneOf":[{"$ref":"#/components/schemas/JiraAutomationUpdatePolicy"}]},"grouping_mode":{"type":"string","enum":["VERIFICATION_UNIT","FILE"],"description":"Effective Jira issue grouping mode."},"is_project_override":{"type":"boolean"},"is_issue_type_override":{"type":"boolean"},"is_auto_create_override":{"type":"boolean"},"is_automation_updates_override":{"type":"boolean"},"is_grouping_mode_override":{"type":"boolean"}}},"RepositorySlackSettingsPatchRequest":{"type":"object","description":"Repository-level Slack settings patch. Sending an empty object opts the repository into Slack delivery using the organization default channel. Set `channel_id` to use a repository-specific channel. Send `null` to clear that override and inherit the organization default. Omit a field to keep the current repository value. Delete the settings to disable Slack delivery for the repository.\n","properties":{"channel_id":{"type":"string","nullable":true,"description":"Slack channel ID to post notifications.","example":"C123"},"channel_name":{"type":"string","nullable":true,"description":"Human-readable Slack channel name.","example":"security-alerts"},"enabled":{"type":"boolean","nullable":true,"description":"False disables Slack delivery for this configured repository. Null resets to enabled."},"notify_on":{"nullable":true,"description":"Repository event toggle override. Null clears the override.","oneOf":[{"type":"object","additionalProperties":{"type":"boolean"}}]},"verification_filter":{"nullable":true,"description":"Repository verification summary filter override. Null clears the override.","oneOf":[{"$ref":"#/components/schemas/IntegrationClassificationFilter"}]}}},"RepositorySlackSettingsResponse":{"type":"object","required":["configured","enabled","notify_on","is_notify_on_override","is_filter_override","is_channel_override"],"properties":{"configured":{"type":"boolean","description":"True when repository-level Slack settings exist. Organization defaults alone do not configure a repository."},"enabled":{"type":"boolean","description":"Effective repository Slack enablement. Organization defaults never enable a repository by themselves."},"channel_id":{"type":"string","nullable":true,"description":"Effective Slack delivery channel ID after inheritance. When configured is false, this may expose the organization default as an enablement candidate but no delivery occurs.","example":"C123"},"channel_name":{"type":"string","nullable":true,"description":"Repository Slack delivery channel name.","example":"security-alerts"},"notify_on":{"type":"object","additionalProperties":{"type":"boolean"},"description":"Effective event toggles after repository override and organization default merge."},"verification_filter":{"nullable":true,"description":"Effective verification summary filter.","oneOf":[{"$ref":"#/components/schemas/IntegrationClassificationFilter"}]},"is_notify_on_override":{"type":"boolean"},"is_filter_override":{"type":"boolean"},"is_channel_override":{"type":"boolean","description":"True when the repository overrides the organization default channel."}}},"RepositoryNotificationSettingsListResponse":{"type":"object","required":["slack","jira"],"properties":{"slack":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RepositorySlackSettingsResponse"}},"jira":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RepositoryJiraSettingsResponse"}}}},"ArchiveRepositoryCreateRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"PublicArchiveRevisionUploadSessionRequest":{"type":"object","required":["filename","size_bytes","sha256"],"properties":{"filename":{"type":"string"},"size_bytes":{"type":"integer","format":"int64","minimum":1},"sha256":{"type":"string","pattern":"^[a-fA-F0-9]{64}$"},"content_type":{"type":"string","nullable":true,"default":"application/octet-stream"},"revision_label":{"type":"string","nullable":true},"retry_source_analysis_id":{"type":"string","format":"uuid","nullable":true,"description":"Source analysis whose immutable source identity this retry upload must match."}}},"PublicSourceArchiveSelectionRequest":{"type":"object","required":["ref","commit_sha"],"properties":{"ref":{"type":"string"},"commit_sha":{"type":"string","pattern":"^[a-fA-F0-9]{40,64}$"}}},"PublicSourceArchiveUploadSession":{"type":"object","required":["source_id","filename","format","size_bytes","sha256","storage_backend","gcs_bucket","gcs_object","upload_url","upload_method","content_type","max_size_bytes"],"properties":{"source_id":{"type":"string","format":"uuid"},"filename":{"type":"string"},"format":{"type":"string","enum":["zip","tar.gz"]},"size_bytes":{"type":"integer","format":"int64"},"sha256":{"type":"string","pattern":"^[a-fA-F0-9]{64}$"},"storage_backend":{"type":"string"},"gcs_bucket":{"type":"string"},"gcs_object":{"type":"string"},"upload_url":{"type":"string","format":"uri"},"upload_method":{"type":"string","example":"PUT"},"content_type":{"type":"string"},"max_size_bytes":{"type":"integer","format":"int64"}}},"PublicSourceArchiveRevisionUploadSessionResponse":{"type":"object","required":["source_archive_revision","upload"],"properties":{"source_archive_revision":{"$ref":"#/components/schemas/PublicSourceArchiveRevision"},"upload":{"$ref":"#/components/schemas/PublicSourceArchiveUploadSession"}}},"PublicSourceArchiveRevision":{"type":"object","required":["source_archive_revision_id","repository_id","revision_label","synthetic_commit_sha","source_tree_fingerprint","filename","format","size_bytes","sha256","status","created_at"],"properties":{"source_archive_revision_id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"revision_label":{"type":"string"},"synthetic_commit_sha":{"type":"string"},"source_tree_fingerprint":{"type":"string"},"filename":{"type":"string"},"format":{"type":"string"},"size_bytes":{"type":"integer","format":"int64"},"sha256":{"type":"string"},"status":{"type":"string","enum":["uploading","inspecting","ready","failed","deleted"]},"failure_reason":{"type":"string","nullable":true},"source_identity_kind":{"type":"string","nullable":true,"enum":["GIT_COMMIT","ARCHIVE_SHA256"]},"source_identity":{"type":"string","nullable":true,"pattern":"^[a-f0-9]{40,64}$"},"selected_ref":{"type":"string","nullable":true},"retry_source_analysis_id":{"type":"string","format":"uuid","nullable":true},"inspection":{"type":"object","nullable":true,"additionalProperties":true},"created_at":{"type":"string","format":"date-time"}}},"PublicSourceArchiveRevisionListResponse":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicSourceArchiveRevision"}}}},"PublicScanCreateRequest":{"type":"object","additionalProperties":false,"properties":{"application_id":{"type":"string","format":"uuid","description":"Select an active Application containing this repository. Omit to retain automatic selection for a single membership. Multiple memberships do not block repository analysis; runtime context is resolved separately."},"ref":{"type":"string","nullable":true,"description":"Branch or tag to scan. Defaults to the repository default branch."},"ref_type":{"type":"string","nullable":true,"enum":["branch","tag","archive_revision"],"description":"Reference type. Git repositories accept `branch` or `tag`; archive repositories use `archive_revision`."},"commit_sha":{"type":"string","nullable":true,"description":"Explicit commit SHA. If omitted, V2 resolves the requested ref before accepting the scan and returns the resolved SHA as the public lookup key."},"source_archive_revision_id":{"type":"string","format":"uuid","nullable":true,"description":"Required when scanning an archive repository and invalid for Git repositories."},"application_source_inputs":{"type":"array","maxItems":32,"description":"Fresh archive revisions for every archive-backed repository in the target Application, and optionally the exact commit of other Git repositories in it.","items":{"$ref":"#/components/schemas/ApplicationSourceInput"}},"sast_input":{"nullable":true,"description":"Caller-supplied SAST results for verify-only mode. Supported formats are Semgrep/OpenGrep native JSON (`version` plus `results`) and SARIF (`$schema` containing `sarif` plus `runs`). Unknown formats and payloads over 50 MiB are rejected with `validation_error`.\n","oneOf":[{"type":"object","additionalProperties":true},{"type":"array","items":{}}]}}},"PublicScanListResponse":{"type":"object","required":["data","page"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicScanResponse"}},"page":{"$ref":"#/components/schemas/AnalysisPage"}}},"PublicScanResponse":{"type":"object","required":["status","scanned_at","scan_mode","sast_scan_enabled"],"properties":{"commit_sha":{"type":"string","nullable":true},"ref":{"type":"string","nullable":true},"ref_type":{"type":"string","nullable":true,"enum":["branch","tag","archive_revision"]},"scan_mode":{"$ref":"#/components/schemas/ScanMode"},"sast_scan_enabled":{"type":"boolean","description":"True only when AutoProof runs its own SAST scan. False for verify-only scans backed by caller-supplied SAST input."},"status":{"$ref":"#/components/schemas/PublicScanStatus"},"scanned_at":{"type":"string","format":"date-time"},"summary":{"$ref":"#/components/schemas/PublicScanSummaryResponse","nullable":true,"description":"Present on per-commit detail responses and null on trigger/list responses."},"artifact_manifest":{"$ref":"#/components/schemas/PublicArtifactManifestResponse","nullable":true,"description":"Public-safe metadata for the active scan artifact manifest, when runner final artifacts have been recorded. Storage object keys, object prefixes, internal analysis IDs, and execution attempt IDs are intentionally omitted.\n"},"execution":{"$ref":"#/components/schemas/PublicScanExecution","nullable":true,"description":"Public-safe execution progress for the scan. Present on scan list/detail/event responses backed by an execution attempt; null on trigger responses before the read model is available.\n"},"runtime_environment":{"$ref":"#/components/schemas/AnalysisTestInfra","nullable":true,"description":"Runtime environment workflow outcome, current availability, opaque runtime target ID, and sanitized failure reason. Internal target URLs are never exposed.\n"}}},"PublicScanExecution":{"type":"object","required":["status","phase_statuses","task_statuses"],"properties":{"status":{"$ref":"#/components/schemas/AnalysisStatus"},"current_phase":{"$ref":"#/components/schemas/WorkflowPhase","nullable":true},"phase_statuses":{"type":"array","items":{"$ref":"#/components/schemas/AnalysisPhaseStatus"}},"task_statuses":{"type":"array","description":"Current attempt tasks, one per kind. States follow the selected active or final run. Task clocks are first heartbeat and terminal receipt, not internal phase durations.","items":{"$ref":"#/components/schemas/AnalysisTaskStatus"}}}},"PublicScanSummaryResponse":{"type":"object","required":["findings_count","deduplicated_findings_count","verified_count","terminal_count","pending_count","state_counts","classification_counts","true_positive_count","false_positive_count"],"properties":{"findings_count":{"type":"integer","minimum":0,"description":"Raw SAST detections recorded for this scan."},"deduplicated_findings_count":{"type":"integer","minimum":0,"description":"Distinct repository findings linked to this scan via detections."},"verified_count":{"type":"integer","minimum":0,"description":"Distinct scan-linked findings whose canonical finding currently has a final_classification. A finding remains included while a manual retry is pending because the previously accepted canonical result is retained.\n"},"terminal_count":{"type":"integer","minimum":0,"description":"Derived as max(0, deduplicated_findings_count - pending_count). This is a workflow completion count, not a count of accepted canonical results; it includes failed, filtered, and quota-blocked findings and excludes findings currently verifying or retrying.\n"},"pending_count":{"type":"integer","minimum":0,"description":"Derived as state_counts.verifying + state_counts.retrying for distinct scan-linked findings whose latest verification attempt is queued or running.\n"},"state_counts":{"type":"object","additionalProperties":{"type":"integer","minimum":0},"description":"Distinct linked finding counts grouped by current derived state."},"classification_counts":{"$ref":"#/components/schemas/FindingClassificationCounts"},"true_positive_count":{"type":"integer","minimum":0,"description":"Distinct linked findings with verdict TRUE_POSITIVE."},"false_positive_count":{"type":"integer","minimum":0,"description":"Distinct linked findings with verdict FALSE_POSITIVE."}}},"PublicArtifactManifestResponse":{"type":"object","required":["retention_policy","expires_at","artifacts","excluded_sensitive_artifacts"],"additionalProperties":false,"properties":{"retention_policy":{"type":"string","enum":["STANDARD","DEBUG_FAILURE"]},"expires_at":{"type":"string","format":"date-time"},"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/PublicArtifactRefResponse"}},"excluded_sensitive_artifacts":{"type":"array","description":"Sensitive artifact categories intentionally excluded from public artifact metadata.","items":{"type":"string","enum":["CLONED_REPOSITORY","FULL_WORKSPACE","JOERN_CPG","RAW_LLM_TRANSCRIPT","INTERMEDIATE_TEMP_FILES"]}}}},"PublicArtifactRefResponse":{"type":"object","required":["kind","size_bytes","content_type"],"additionalProperties":false,"properties":{"kind":{"type":"string","enum":["FINAL_SCAN_RESULT_BUNDLE","PATCH_VALIDATION_RESULT_BUNDLE","PATCH_DIFF","VERIFICATION_RESULT","ARTIFACT_MANIFEST","DEBUG_BUNDLE"]},"size_bytes":{"type":"integer","format":"int64","minimum":0},"content_type":{"type":"string"}}},"PublicScanStatus":{"type":"string","enum":["CREATING","ANALYZING","COMPLETED","FAILED"]},"FindingActivity":{"type":"string","nullable":true,"enum":["verifying","retrying"]},"FindingState":{"type":"string","enum":["verifying","retrying","failed","quota_blocked","filtered"]},"FindingFinalClassification":{"type":"string","nullable":true,"description":"v1 compatibility field. Every organization gets the v1 meaning: exploitable_runtime_confirmed and exploitable_structurally_confirmed need a runtime or regression reproduction, and a structurally proven result without one is needs_review. Every organization also gets exploitability, exploit_evidence, exploit_evidence_detail and needs_review_reason, the two-tier classification (v2) its screens show.","enum":["exploitable_runtime_confirmed","exploitable_structurally_confirmed","not_exploitable","needs_review",null]},"Exploitability":{"type":"string","description":"Classification v2, first tier. Decided by the structural stage alone; a failed execution stage never lowers it.","enum":["proven_exploitable","not_exploitable","needs_review"]},"ExploitEvidence":{"type":"string","description":"Classification v2, second tier of a proven_exploitable result. Runtime reproduction outranks a regression test.","enum":["runtime_reproduced","regression_reproduced","none"]},"ExploitEvidenceDetail":{"type":"string","description":"Why the exploit evidence is none. not_requested: a policy turned the execution checks of the verification off after the structural proof, for example the organization's Organization settings > Verification set to Off. That setting is changed in the app only, not through this API.","enum":["not_applicable","not_requested","environment_unavailable","attempted_not_reproduced","execution_error"]},"NeedsReviewReason":{"type":"string","description":"Why a needs_review result is undecided. external_condition: the condition holds only after an operator changes the repository-defined default state, or the repository does not decide it. insufficient_evidence: a proof category is missing (results from earlier contracts report this).","enum":["external_condition","insufficient_evidence"]},"IntegrationClassificationFilter":{"type":"object","additionalProperties":false,"required":["final_classifications"],"properties":{"final_classifications":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["exploitable_runtime_confirmed","exploitable_structurally_confirmed","not_exploitable","needs_review"]}}}},"JiraAutoCreatePolicy":{"type":"object","additionalProperties":false,"required":["enabled","on_exploitable_runtime_confirmed","on_exploitable_structurally_confirmed","on_not_exploitable","on_needs_review"],"properties":{"enabled":{"type":"boolean"},"on_exploitable_runtime_confirmed":{"type":"boolean"},"on_exploitable_structurally_confirmed":{"type":"boolean"},"on_not_exploitable":{"type":"boolean"},"on_needs_review":{"type":"boolean"}}},"JiraAutomationUpdatePolicy":{"type":"object","additionalProperties":false,"required":["comment_on_patch_validation","comment_on_draft_pull_request"],"properties":{"comment_on_patch_validation":{"type":"boolean"},"comment_on_draft_pull_request":{"type":"boolean"}}},"FindingSecurityVerdict":{"type":"string","nullable":true,"enum":["exploitable","not_exploitable",null]},"FindingProofStatus":{"type":"string","nullable":true,"enum":["runtime_confirmed","structurally_confirmed","disproved","insufficient_evidence",null]},"FindingRuntimeResult":{"type":"string","nullable":true,"enum":["reproduced","not_reproduced","env_failed","not_attempted","error",null]},"FindingRegressionResult":{"type":"string","nullable":true,"enum":["reproduced","not_reproduced","not_attempted","error",null]},"FindingStructuralResult":{"type":"string","nullable":true,"enum":["proven_exploitable","proven_not_exploitable","insufficient_evidence",null]},"VerificationFileListResponse":{"type":"object","required":["data","page","total_unit_count"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VerificationFileResponse"}},"page":{"$ref":"#/components/schemas/FindingPage"},"total_unit_count":{"type":"integer","minimum":0}}},"VerificationFileResponse":{"type":"object","required":["file_path","first_detected_at","unit_count","units"],"properties":{"file_path":{"type":"string"},"first_detected_at":{"type":"string","format":"date-time"},"unit_count":{"type":"integer","minimum":1},"units":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/VerificationUnitResponse"}}}},"VerificationUnitResponse":{"type":"object","required":["verification_unit_id","repository_id","origin_attempt_id","member_count","grouped","kind","retryable","rule_ids","cwes","members","vulnerability_info","first_detected_at","created_at","updated_at"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"origin_attempt_id":{"type":"string","format":"uuid","nullable":true},"origin_commit_sha":{"type":"string","nullable":true},"member_count":{"type":"integer","minimum":1},"grouped":{"type":"boolean"},"kind":{"type":"string","enum":["GENERATED","MIGRATED_SINGLETON"]},"file_path":{"type":"string","nullable":true},"start_line":{"type":"integer","minimum":1,"nullable":true},"end_line":{"type":"integer","minimum":1,"nullable":true},"start_column":{"type":"integer","minimum":1,"nullable":true},"end_column":{"type":"integer","minimum":1,"nullable":true},"source_code_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","nullable":true},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","QUOTA_BLOCKED"],"nullable":true},"state":{"allOf":[{"$ref":"#/components/schemas/FindingState"}],"nullable":true},"final_classification":{"$ref":"#/components/schemas/FindingFinalClassification"},"security_verdict":{"$ref":"#/components/schemas/FindingSecurityVerdict"},"proof_status":{"$ref":"#/components/schemas/FindingProofStatus"},"classification_reason":{"type":"string","nullable":true},"classification_evidence":{"type":"object","additionalProperties":true,"nullable":true},"verification_failure":{"allOf":[{"$ref":"#/components/schemas/PublicVerificationFailure"}],"nullable":true},"retryable":{"type":"boolean","description":"Whether the customer may request a manual finding retry; independent of automatic runner retry policy."},"current_detection_count":{"type":"integer","minimum":0,"nullable":true,"description":"Distinct members detected in the requested commit; null without a commit filter."},"highest_severity":{"type":"string","nullable":true},"rule_ids":{"type":"array","items":{"type":"string"}},"cwes":{"type":"array","items":{"type":"string"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/VerificationUnitMember"}},"vulnerability_info":{"type":"object","additionalProperties":true},"raw_sast":{"type":"object","additionalProperties":true,"nullable":true},"first_detected_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"title":{"type":"string","maxLength":90,"description":"Browser verification file list only, for organizations with Repository Overview enabled. Title from the accepted verification result; absent when the result has none."},"title_source":{"type":"string","enum":["verification","backfill"],"description":"Browser verification file list only; present with title."},"sast_message":{"type":"string","description":"Browser verification file list only, for organizations with Repository Overview enabled. SAST rule message of the anchor finding."},"priority":{"type":"object","description":"Browser verification file list only, for organizations with Repository Overview enabled and one selected commit. Fix order of an exploitable unit in that commit's Overview snapshot.","required":["rank","of","policy_version"],"properties":{"rank":{"type":"integer","minimum":1},"of":{"type":"integer","minimum":1},"policy_version":{"type":"string"}}},"exploitability":{"allOf":[{"$ref":"#/components/schemas/Exploitability"}],"description":"Every organization (browser and API key requests alike), only for a unit with a resolved result; the four classification v2 fields are then present together. final_classification keeps its v1 meaning next to them."},"exploit_evidence":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidence"}],"nullable":true,"description":"With exploitability; set only for proven_exploitable."},"exploit_evidence_detail":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidenceDetail"}],"nullable":true,"description":"With exploitability; set only when exploit_evidence is none."},"needs_review_reason":{"allOf":[{"$ref":"#/components/schemas/NeedsReviewReason"}],"nullable":true,"description":"With exploitability; set only for needs_review."}}},"VerificationUnitMember":{"type":"object","required":["ordinal","finding_id","vulnerability_hash","cwes","vulnerability_info","jira_issues"],"properties":{"ordinal":{"type":"integer","minimum":0},"finding_id":{"type":"string","format":"uuid"},"vulnerability_hash":{"type":"string"},"finding_identity_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","nullable":true},"rule_id":{"type":"string","nullable":true},"severity":{"type":"string","nullable":true},"cwes":{"type":"array","items":{"type":"string"}},"vulnerability_info":{"type":"object","additionalProperties":true},"raw_sast":{"type":"object","additionalProperties":true,"nullable":true},"jira_issues":{"type":"array","items":{"$ref":"#/components/schemas/JiraIssueLinkResponse"}}}},"VerificationUnitStats":{"type":"object","required":["raw_detection_count","canonical_finding_count","verification_unit_count","new_verification_unit_count","verification_reduction_count","verifying","retrying","failed","quota_blocked","filtered","final_classifications","by_analysis"],"properties":{"raw_detection_count":{"type":"integer","minimum":0},"canonical_finding_count":{"type":"integer","minimum":0},"verification_unit_count":{"type":"integer","minimum":0},"new_verification_unit_count":{"type":"integer","minimum":0},"verification_reduction_count":{"type":"integer","minimum":0},"verifying":{"type":"integer","minimum":0},"retrying":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"quota_blocked":{"type":"integer","minimum":0},"filtered":{"type":"integer","minimum":0},"final_classifications":{"type":"object","additionalProperties":{"type":"integer","minimum":0}},"by_analysis":{"type":"array","items":{"$ref":"#/components/schemas/FindingStatsByAnalysis"}},"exploitability":{"type":"object","description":"Browser requests only. Units by the exploitability of their resolved result; every Exploitability value is a key.","additionalProperties":{"type":"integer","minimum":0}},"exploit_evidence":{"type":"object","description":"Browser requests only. Proven units by exploit evidence; every ExploitEvidence value is a key.","additionalProperties":{"type":"integer","minimum":0}}}},"VerificationUnitRetryRequest":{"type":"object","additionalProperties":false,"properties":{"source_archive_inputs":{"$ref":"#/components/schemas/VerificationRetrySourceInputs"}}},"VerificationUnitBulkRetryRequest":{"type":"object","additionalProperties":false,"required":["verification_unit_ids"],"properties":{"verification_unit_ids":{"type":"array","minItems":1,"maxItems":100,"uniqueItems":true,"items":{"type":"string","format":"uuid"}},"source_archive_inputs":{"$ref":"#/components/schemas/VerificationRetrySourceInputs"}}},"FindingListResponse":{"type":"object","required":["data","page"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FindingSummaryResponse"}},"page":{"$ref":"#/components/schemas/FindingPage"}}},"FindingPage":{"type":"object","required":["limit","total_count"],"properties":{"next_cursor":{"type":"string","nullable":true},"limit":{"type":"integer"},"total_count":{"type":"integer","minimum":0,"description":"Total number of findings matching the request filters, independent of cursor position."}}},"FindingSummaryResponse":{"type":"object","required":["finding_id","repository_id","retryable","filtered","created_at","updated_at","vulnerability_info"],"properties":{"finding_id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"first_detected_commit_sha":{"type":"string","nullable":true},"verdict":{"type":"string","nullable":true},"confidence":{"type":"string","nullable":true},"activity":{"$ref":"#/components/schemas/FindingActivity"},"state":{"allOf":[{"$ref":"#/components/schemas/FindingState"}],"nullable":true},"final_classification":{"$ref":"#/components/schemas/FindingFinalClassification"},"security_verdict":{"$ref":"#/components/schemas/FindingSecurityVerdict"},"proof_status":{"$ref":"#/components/schemas/FindingProofStatus"},"runtime_result":{"$ref":"#/components/schemas/FindingRuntimeResult"},"regression_result":{"$ref":"#/components/schemas/FindingRegressionResult"},"structural_result":{"$ref":"#/components/schemas/FindingStructuralResult"},"condition_scope":{"type":"string","nullable":true},"classification_reason":{"type":"string","nullable":true,"description":"Deterministic classification reason code, such as runtime_env_failed_regression_reproduced or insufficient_evidence."},"classification_evidence":{"type":"object","additionalProperties":true,"nullable":true,"description":"Control-plane classification evidence summary derived from Phase 4 output."},"verification_failure":{"allOf":[{"$ref":"#/components/schemas/PublicVerificationFailure"}],"nullable":true},"retryable":{"type":"boolean","description":"Whether the current result supports single-unit re-verification. FAILED is false and uses commit bulk recovery with verification_failure.action=retry_commit."},"filtered":{"type":"boolean"},"first_detected_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"vulnerability_info":{"$ref":"#/components/schemas/FindingVulnerabilityInfo"},"raw_sast":{"type":"object","additionalProperties":true,"nullable":true,"description":"Original SAST payload, embedded only when `include_sast=true` and the latest detection has an object raw finding."},"jira_issue":{"allOf":[{"$ref":"#/components/schemas/JiraIssueLinkResponse"}],"nullable":true,"description":"Durable Jira link for this finding, or null when no issue is linked. Reading this field never calls Atlassian."},"exploitability":{"allOf":[{"$ref":"#/components/schemas/Exploitability"}],"description":"Every organization (browser and API key requests alike), only for a finding with a classified result; the four classification v2 fields are then present together. final_classification keeps its v1 meaning next to them."},"exploit_evidence":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidence"}],"nullable":true,"description":"With exploitability; set only for proven_exploitable."},"exploit_evidence_detail":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidenceDetail"}],"nullable":true,"description":"With exploitability; set only when exploit_evidence is none."},"needs_review_reason":{"allOf":[{"$ref":"#/components/schemas/NeedsReviewReason"}],"nullable":true,"description":"With exploitability; set only for needs_review."}}},"FindingDetailResponse":{"description":"Legacy finding detail. raw_sast uses latest detection; verification_unit_id links to the canonical unit when available.","type":"object","required":["finding_id","repository_id","vulnerability_hash","retryable","filtered","execution_info","patch_validation","created_at","updated_at","vulnerability_info"],"properties":{"verification_unit_id":{"type":"string","format":"uuid","nullable":true},"finding_id":{"type":"string","format":"uuid"},"repository_id":{"type":"string","format":"uuid"},"vulnerability_hash":{"type":"string"},"verdict":{"type":"string","nullable":true},"confidence":{"type":"string","nullable":true},"activity":{"$ref":"#/components/schemas/FindingActivity"},"state":{"allOf":[{"$ref":"#/components/schemas/FindingState"}],"nullable":true},"final_classification":{"$ref":"#/components/schemas/FindingFinalClassification"},"security_verdict":{"$ref":"#/components/schemas/FindingSecurityVerdict"},"proof_status":{"$ref":"#/components/schemas/FindingProofStatus"},"runtime_result":{"$ref":"#/components/schemas/FindingRuntimeResult"},"regression_result":{"$ref":"#/components/schemas/FindingRegressionResult"},"structural_result":{"$ref":"#/components/schemas/FindingStructuralResult"},"condition_scope":{"type":"string","nullable":true},"classification_reason":{"type":"string","nullable":true,"description":"Deterministic classification reason code, such as runtime_env_failed_regression_reproduced or insufficient_evidence."},"classification_evidence":{"type":"object","additionalProperties":true,"nullable":true,"description":"Control-plane classification evidence summary derived from Phase 4 output."},"verification_failure":{"allOf":[{"$ref":"#/components/schemas/PublicVerificationFailure"}],"nullable":true},"retryable":{"type":"boolean","description":"Whether the current result supports single-unit re-verification. FAILED is false and uses commit bulk recovery with verification_failure.action=retry_commit."},"filtered":{"type":"boolean"},"source_link":{"type":"string","format":"uri","nullable":true,"description":"Stored direct repository source link for the finding location when available."},"ep_context":{"allOf":[{"$ref":"#/components/schemas/FindingEpContext"}],"nullable":true},"verification":{"allOf":[{"$ref":"#/components/schemas/FindingVerification"}],"nullable":true},"execution_info":{"$ref":"#/components/schemas/FindingExecutionInfo"},"patch_validation":{"$ref":"#/components/schemas/FindingPatchValidation"},"first_detected_commit_sha":{"type":"string","nullable":true},"first_detected_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"vulnerability_info":{"$ref":"#/components/schemas/FindingVulnerabilityInfo"},"raw_sast":{"type":"object","additionalProperties":true,"nullable":true,"description":"Original SAST payload, embedded only when `include_sast=true` and the latest detection has an object raw finding."},"exploitability":{"allOf":[{"$ref":"#/components/schemas/Exploitability"}],"description":"Every organization (browser and API key requests alike), only for a finding with a classified result; the four classification v2 fields are then present together. final_classification keeps its v1 meaning next to them."},"exploit_evidence":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidence"}],"nullable":true,"description":"With exploitability; set only for proven_exploitable."},"exploit_evidence_detail":{"allOf":[{"$ref":"#/components/schemas/ExploitEvidenceDetail"}],"nullable":true,"description":"With exploitability; set only when exploit_evidence is none."},"needs_review_reason":{"allOf":[{"$ref":"#/components/schemas/NeedsReviewReason"}],"nullable":true,"description":"With exploitability; set only for needs_review."}}},"JiraIssueCreateRequest":{"type":"object","properties":{"analysis_id":{"type":"string","format":"uuid","nullable":true,"description":"Analysis-scoped mutation context. Archived analyses are read-only and require restore before issue creation."}}},"JiraFileIssueCreateRequest":{"type":"object","required":["analysis_id","commit_sha","file_path","finding_ids"],"properties":{"analysis_id":{"type":"string","format":"uuid"},"commit_sha":{"type":"string","minLength":1},"file_path":{"type":"string","minLength":1,"description":"Canonical repository-relative file path."},"finding_ids":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","format":"uuid"},"description":"Successful findings from the selected analysis, commit, and file to include in the issue."}}},"JiraIssueCreateResponse":{"type":"object","required":["issue_key","issue_url","created"],"properties":{"issue_key":{"type":"string","example":"SEC-101"},"issue_url":{"type":"string","format":"uri","example":"https://acme.atlassian.net/browse/SEC-101"},"created":{"type":"boolean","description":"False when an existing duplicate link was returned."},"duplicate_warning":{"type":"string","nullable":true,"example":"Issue already exists: SEC-101"}}},"JiraIssueLinkResponse":{"type":"object","required":["issue_key","issue_url","created_at","created_by"],"properties":{"issue_key":{"type":"string","example":"SEC-101"},"issue_url":{"type":"string","format":"uri","example":"https://acme.atlassian.net/browse/SEC-101"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"}}},"JiraFileIssueListResponse":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/JiraFileIssueLinkResponse"}}}},"JiraFileIssueLinkResponse":{"allOf":[{"$ref":"#/components/schemas/JiraIssueLinkResponse"},{"type":"object","required":["commit_sha","file_path","creation_mode","finding_ids"],"properties":{"commit_sha":{"type":"string"},"file_path":{"type":"string"},"creation_mode":{"type":"string","enum":["AUTO","MANUAL"]},"finding_ids":{"type":"array","items":{"type":"string","format":"uuid"}}}}]},"FindingVulnerabilityInfo":{"type":"object","additionalProperties":true,"description":"User-facing vulnerability context derived from the deduplicated repository finding. This is distinct from `raw_sast`, which is only embedded when `include_sast=true`.","properties":{"check_id":{"type":"string","description":"SAST rule identifier.","example":"javascript.express.security.audit.directory-listing"},"path":{"type":"string","description":"Repository-relative file path for the finding.","example":"routes/admin.js"},"start":{"$ref":"#/components/schemas/FindingSourceLocation"},"end":{"$ref":"#/components/schemas/FindingSourceLocation"},"extra":{"type":"object","additionalProperties":true,"description":"Tool-specific public metadata such as message, severity, CWE, and OWASP fields."},"source_category":{"type":"string","enum":["product","config","test","vendored","generated","minified","build","docs","data"],"description":"What kind of file the finding is in, as judged from the file's path and content: `product` is the repository's own code, `test` a test or fixture, `vendored` a copy of third-party code, `generated` tool output, `minified` a minified or bundled asset, `build` a committed build output, `config` a build, deployment or CI definition or another small structured configuration file, `docs` documentation or an example, `data` an asset or data file. Absent when the file could not be classified, for findings recorded before this field existed, and for findings submitted as an uploaded SARIF or Semgrep result. It describes the file, not the finding: it does not say whether the finding is exploitable.","example":"product"}}},"FindingSourceLocation":{"type":"object","additionalProperties":true,"properties":{"line":{"type":"integer","minimum":1},"col":{"type":"integer","minimum":1}}},"FindingEpContext":{"type":"object","required":["entry_points"],"additionalProperties":false,"description":"Public entry-point context rendered in finding detail. Internal Joern traces and methodology fields are excluded.","properties":{"entry_points":{"type":"array","items":{"$ref":"#/components/schemas/FindingEntryPoint"}}}},"FindingEntryPoint":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"function":{"type":"string"},"ep_path":{"type":"string"},"file":{"type":"string"},"line":{"oneOf":[{"type":"integer"},{"type":"string"}]},"trigger_mechanism":{"type":"object","additionalProperties":false,"properties":{"method":{"type":"string"},"endpoint":{"type":"string"}}}}},"FindingVerification":{"type":"object","required":["artifact","remediation","vuln_location"],"additionalProperties":false,"description":"Client-safe top-level allowlist of Phase 4 output. Internal `analysis` and non-allowlisted fields are excluded.","properties":{"artifact":{"nullable":true},"remediation":{"nullable":true},"vuln_location":{"nullable":true}}},"FindingExecutionInfo":{"type":"object","required":["output"],"additionalProperties":false,"description":"Accepted verification result plus any currently active verification activity. Authenticated responses omit `phase4c.poc.code`, `phase4l.poc.code` and `phase4r.test.code`; source download uses the dedicated endpoints.","properties":{"activity":{"$ref":"#/components/schemas/FindingActivity"},"final_classification":{"$ref":"#/components/schemas/FindingFinalClassification"},"security_verdict":{"$ref":"#/components/schemas/FindingSecurityVerdict"},"proof_status":{"$ref":"#/components/schemas/FindingProofStatus"},"runtime_result":{"$ref":"#/components/schemas/FindingRuntimeResult"},"regression_result":{"$ref":"#/components/schemas/FindingRegressionResult"},"structural_result":{"$ref":"#/components/schemas/FindingStructuralResult"},"condition_scope":{"type":"string","nullable":true},"classification_reason":{"type":"string","nullable":true},"classification_evidence":{"type":"object","additionalProperties":true,"nullable":true},"output":{"$ref":"#/components/schemas/FindingExecutionOutput"}}},"FindingRootCause":{"type":"object","required":["summary"],"additionalProperties":false,"properties":{"summary":{"type":"string","minLength":1,"description":"One causal explanation synthesizing attacker input, reachable path, sink reached, and absent or bypassable protection."}}},"FindingStructuralEvidence":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true},"references":{"type":"array","items":{"$ref":"#/components/schemas/FindingEvidenceReference"}}}},"FindingEvidenceReference":{"type":"object","additionalProperties":true,"properties":{"kind":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"function":{"type":"string","nullable":true},"line":{"nullable":true,"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"start_line":{"nullable":true,"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"end_line":{"nullable":true,"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"summary":{"type":"string","nullable":true},"code_snippet":{"type":"string","nullable":true,"description":"Line-numbered source excerpt read by the runner from the verified workspace location."}}},"FindingExecutionOutput":{"type":"object","additionalProperties":false,"description":"Public Phase 4 report output. Authenticated finding responses omit `phase4c.poc.code`, `phase4l.poc.code` and `phase4r.test.code`; public shares may include those canonical fields only when proof-code exposure is enabled. Version 6 uses phase4l; historical and service aggregates use phase4c.","properties":{"verification_egress_policy":{"type":"string","enum":["verification-egress-v2"],"description":"Isolation policy recorded from the leased native target binding, without internal runtime coordinates. Presence alone is not packet-enforcement evidence."},"schema_version":{"type":"string"},"final_classification":{"$ref":"#/components/schemas/FindingFinalClassification"},"security_verdict":{"$ref":"#/components/schemas/FindingSecurityVerdict"},"proof_status":{"$ref":"#/components/schemas/FindingProofStatus"},"structural_result":{"$ref":"#/components/schemas/FindingStructuralResult"},"runtime_result":{"$ref":"#/components/schemas/FindingRuntimeResult"},"regression_result":{"$ref":"#/components/schemas/FindingRegressionResult"},"condition_scope":{"type":"string","nullable":true},"confidence":{"type":"string","nullable":true},"classification_reason":{"type":"string","nullable":true},"classification_evidence":{"nullable":true},"phase4a":{"type":"object","additionalProperties":true,"nullable":true},"phase4b":{"type":"object","additionalProperties":true,"nullable":true,"properties":{"root_cause":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/FindingRootCause"}]},"evidence":{"type":"object","additionalProperties":true,"nullable":true,"properties":{"attacker_input":{"$ref":"#/components/schemas/FindingStructuralEvidence"},"reachable_path":{"$ref":"#/components/schemas/FindingStructuralEvidence"},"sink_reached":{"$ref":"#/components/schemas/FindingStructuralEvidence"},"protection_absent":{"$ref":"#/components/schemas/FindingStructuralEvidence"},"security_impact":{"$ref":"#/components/schemas/FindingStructuralEvidence"}}}}},"phase4c":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"runtime_result":{"$ref":"#/components/schemas/FindingRuntimeResult"},"skip_reason":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true},"poc":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"code":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"command":{"type":"string","nullable":true},"snippet":{"type":"string","nullable":true},"steps":{"type":"array","nullable":true,"minItems":2,"items":{"type":"string"}}}},"execution":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"command":{"type":"string","nullable":true},"target":{"nullable":true},"request":{"nullable":true},"exit_code":{"type":"integer","nullable":true},"http_status":{"type":"integer","nullable":true},"response":{"nullable":true},"stdout":{"nullable":true},"stderr":{"nullable":true},"runtime_logs":{"nullable":true},"expected_signal":{"nullable":true},"observed_signal":{"nullable":true},"security_impact_observed":{"type":"boolean","nullable":true}}}}},"phase4l":{"$ref":"#/components/schemas/FindingExecutionOutput/properties/phase4c"},"phase4r":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"regression_result":{"$ref":"#/components/schemas/FindingRegressionResult"},"skip_reason":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true},"test":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"description":{"type":"string","nullable":true},"command":{"type":"string","nullable":true},"file_path":{"type":"string","nullable":true},"code":{"type":"string","nullable":true}}},"execution":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"command":{"type":"string","nullable":true},"input":{"nullable":true},"exit_code":{"type":"integer","nullable":true},"stdout":{"nullable":true},"stderr":{"nullable":true},"expected_signal":{"nullable":true},"observed_signal":{"nullable":true},"vulnerable_behavior_observed":{"type":"boolean","nullable":true}}}}},"phase4d":{"type":"object","additionalProperties":true,"nullable":true},"evidence_summary":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true},"next_action":{"type":"string","nullable":true},"analysis":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"conclusion":{"type":"string","nullable":true},"confidence":{"type":"string","nullable":true}}},"artifact":{"type":"object","additionalProperties":false,"nullable":true,"properties":{"description":{"type":"string"},"content":{"type":"string","description":"Markdown validation report rendered by the verification detail UI."}}},"remediation":{"nullable":true},"vuln_location":{"nullable":true}}},"FindingPatchValidation":{"type":"object","additionalProperties":false,"required":["run_id","status","output","blocked_reason","progress","can_trigger"],"description":"Public finding-detail patch validation summary. Runtime task identifiers, pipeline execution identifiers, and quota ledger fields are intentionally excluded from the finding detail response.","properties":{"run_id":{"type":"string","format":"uuid","nullable":true},"status":{"type":"string","enum":["not_started","queued","running","fixed","still_exploitable","unable_to_validate","failed"]},"output":{"allOf":[{"$ref":"#/components/schemas/PatchValidationPublicOutput"}],"nullable":true,"description":"Allowlisted public result projected from the canonical run terminal result."},"blocked_reason":{"type":"string","enum":["patch_validation_already_active","patch_validation_runtime_reproduction_required","patch_validation_poc_required","patch_validation_source_unsupported","patch_validation_clone_credential_unavailable","analysis_restore_required"],"nullable":true,"description":"Public-safe reason code explaining why a new patch validation cannot be triggered."},"progress":{"allOf":[{"$ref":"#/components/schemas/FindingPatchValidationProgress"}],"nullable":true},"can_trigger":{"type":"boolean","description":"Backend-owned domain eligibility. Authorization and quota are enforced atomically by POST."}}},"PatchValidationPublicOutput":{"type":"object","additionalProperties":false,"required":["patch_status","patch_report_markdown","changed_files","final_patch_diff","poc_rerun_result"],"properties":{"patch_status":{"type":"string","enum":["fixed","still_exploitable","unable_to_validate"]},"patch_report_markdown":{"type":"string","maxLength":65536},"changed_files":{"type":"array","maxItems":10000,"items":{"type":"string","maxLength":1024}},"final_patch_diff":{"type":"string","maxLength":4194304},"poc_rerun_result":{"allOf":[{"$ref":"#/components/schemas/PatchValidationPublicPocResult"}],"nullable":true}}},"PatchValidationPublicPocResult":{"type":"object","additionalProperties":false,"required":["execution_status","summary"],"properties":{"execution_status":{"type":"string","enum":["completed","not_executed","incomplete"]},"summary":{"type":"string","maxLength":65536}}},"FindingPatchValidationProgress":{"type":"object","additionalProperties":false,"required":["current_candidate_index","max_candidates","current_candidate_status","deadline_at"],"properties":{"current_candidate_index":{"type":"integer","minimum":0,"maximum":3},"max_candidates":{"type":"integer","enum":[3]},"current_candidate_status":{"type":"string","enum":["sealed","runtime_requested","runtime_running","fixed","still_exploitable","unable_to_validate","failed","canceled"],"nullable":true},"deadline_at":{"type":"string","format":"date-time"}}},"PatchValidationTriggerResponse":{"type":"object","additionalProperties":false,"required":["finding_id","run_id","status","duplicate"],"properties":{"finding_id":{"type":"string","format":"uuid","description":"Public finding identifier."},"run_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running"]},"duplicate":{"type":"boolean","description":"True when the active run was returned. Same-run saga recovery may run idempotently, but no new reservation or Job is created."}}},"AnalysisMutationRequest":{"type":"object","properties":{"analysis_id":{"type":"string","format":"uuid","nullable":true,"description":"Analysis-scoped mutation context. Archived analyses are read-only."}}},"VerificationRetryRequest":{"type":"object","properties":{"analysis_id":{"type":"string","format":"uuid","nullable":true,"description":"Exact source analysis. When omitted, the server selects the latest active detection."},"source_archive_input_id":{"type":"string","format":"uuid","nullable":true,"description":"Fresh inspected upload required when the source analysis is archive-backed. analysis_id is required when this field is present."},"source_archive_inputs":{"$ref":"#/components/schemas/VerificationRetrySourceInputs"}}},"VerificationRetryEligibility":{"type":"object","required":["eligible_count","selected_count","unavailable_count","required_source_inputs"],"properties":{"eligible_count":{"type":"integer","minimum":0},"selected_count":{"type":"integer","minimum":0,"description":"All server-selected units in scope, including units whose original inputs cannot be restored."},"unavailable_count":{"type":"integer","minimum":0,"description":"Selected units that cannot start recovery with the retained source evidence."},"required_source_inputs":{"type":"array","maxItems":32,"items":{"type":"object","additionalProperties":false,"required":["source_analysis_id","repository_id","source_alias"],"properties":{"source_analysis_id":{"type":"string","format":"uuid","description":"Frozen source analysis whose archive bytes must be supplied."},"repository_id":{"type":"string","format":"uuid"},"source_alias":{"type":"string"}}}}}},"VerificationRetryJobRequest":{"description":"Compatibility request. Optional body idempotency_key retains legacy retention; optional header uses 24h receipts. Both must match when supplied together.","type":"object","additionalProperties":false,"oneOf":[{"required":["mode","commit"],"properties":{"commit":{"type":"string","minLength":1,"nullable":false},"new_only":{"type":"boolean","enum":[false]},"state":{"type":"array","maxItems":0},"final_classification":{"type":"array","maxItems":0},"q":{"type":"string","pattern":"^\\s*$","nullable":true}}},{"not":{"required":["mode"]}}],"properties":{"mode":{"type":"string","enum":["all","failed"]},"source_archive_inputs":{"$ref":"#/components/schemas/VerificationRetrySourceInputs"},"commit":{"type":"string","nullable":true},"new_only":{"type":"boolean","default":false},"state":{"type":"array","items":{"$ref":"#/components/schemas/FindingState"}},"final_classification":{"type":"array","items":{"$ref":"#/components/schemas/FindingFinalClassification"}},"q":{"type":"string","nullable":true},"idempotency_key":{"type":"string","minLength":1,"maxLength":160}}},"VerificationRetrySourceInputs":{"type":"array","maxItems":32,"items":{"type":"object","additionalProperties":false,"required":["repository_id","source_archive_input_id"],"properties":{"source_analysis_id":{"type":"string","format":"uuid","nullable":true,"description":"Frozen source analysis for this input. Required when one request spans multiple source analyses."},"repository_id":{"type":"string","format":"uuid"},"source_archive_input_id":{"type":"string","format":"uuid"}}},"description":"Fresh inspected uploads for every archive-backed member of the immutable source snapshot. They supply bytes only; the verification unit keeps source selection frozen."},"VerificationRetryJob":{"type":"object","required":["job_id","status","repository_id","total_count","processed_count","queued_count","quota_blocked_count","skipped_count","failed_count","created_at","updated_at"],"properties":{"job_id":{"type":"string","format":"uuid","nullable":true},"status":{"type":"string","enum":["pending","running","succeeded","partial","failed"]},"repository_id":{"type":"string","format":"uuid"},"analysis_id":{"type":"string","format":"uuid","nullable":true},"total_count":{"type":"integer","minimum":0},"processed_count":{"type":"integer","minimum":0},"queued_count":{"type":"integer","minimum":0},"quota_blocked_count":{"type":"integer","minimum":0},"skipped_count":{"type":"integer","minimum":0},"failed_count":{"type":"integer","minimum":0},"last_error":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time","nullable":true},"excluded_units":{"type":"array","items":{"type":"object","required":["verification_unit_id","code"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"code":{"type":"string"}}}},"replayed":{"type":"boolean"}}},"VerificationRetryResponse":{"type":"object","required":["message","verification_id","queued","duplicate"],"properties":{"message":{"type":"string","example":"Manual retry queued successfully"},"verification_id":{"type":"string","format":"uuid","description":"Public finding identifier."},"activity":{"$ref":"#/components/schemas/FindingActivity"},"pipeline_execution_id":{"type":"string","nullable":true,"description":"V2 execution attempt identifier for the queued retry workflow."},"retry_session_id":{"type":"string","format":"uuid","nullable":true,"description":"Analysis-scoped retry session shared by rapid individual and bulk retry requests."},"duplicate":{"type":"boolean","description":"True when the request reused an existing active finding retry attempt instead of allocating another attempt or quota unit."},"queued":{"type":"boolean","description":"False when retry quota was blocked and the finding state was updated without queueing a runner job."},"quota_state":{"type":"string","nullable":true,"description":"reserved | blocked"},"blocked_reason":{"type":"string","nullable":true}}},"FindingStatsResponse":{"type":"object","required":["repository_id","summary","by_analysis"],"properties":{"repository_id":{"type":"string","format":"uuid"},"summary":{"$ref":"#/components/schemas/FindingStatsSummary"},"by_analysis":{"type":"array","items":{"$ref":"#/components/schemas/FindingStatsByAnalysis"}}}},"FindingStatsSummary":{"type":"object","required":["total","verifying","retrying","failed","filtered","quota_blocked","classification_counts"],"properties":{"total":{"type":"integer"},"verifying":{"type":"integer"},"retrying":{"type":"integer"},"failed":{"type":"integer"},"filtered":{"type":"integer"},"quota_blocked":{"type":"integer"},"classification_counts":{"$ref":"#/components/schemas/FindingClassificationCounts"}}},"FindingStatsByAnalysis":{"type":"object","required":["analysis_id","total","verifying","retrying","failed","filtered","quota_blocked","classification_counts","recovery_issues"],"properties":{"analysis_id":{"type":"string","format":"uuid"},"analysis_name":{"type":"string","nullable":true},"ref":{"type":"string","nullable":true},"ref_type":{"type":"string","nullable":true},"commit_sha":{"type":"string","nullable":true},"total":{"type":"integer"},"verifying":{"type":"integer"},"retrying":{"type":"integer"},"failed":{"type":"integer"},"filtered":{"type":"integer"},"quota_blocked":{"type":"integer"},"classification_counts":{"$ref":"#/components/schemas/FindingClassificationCounts"},"recovery_issues":{"type":"array","description":"Analysis-scoped recovery conditions aggregated from affected finding verification attempts. Finding-level retry failures are excluded.","items":{"$ref":"#/components/schemas/AnalysisRecoveryIssue"}}}},"AnalysisRecoveryIssue":{"type":"object","required":["action","owner","reason","affected_findings"],"properties":{"action":{"type":"string","enum":["RERUN_ANALYSIS","OPEN_PLAN_USAGE","OPEN_ORGANIZATION_SETTINGS","CONTACT_SUPPORT"]},"owner":{"type":"string","enum":["USER","ORGANIZATION_ADMIN","AUTOPROOF"]},"reason":{"type":"string","enum":["VERIFICATION_QUOTA_EXHAUSTED","ORGANIZATION_CONFIGURATION_REQUIRED","SERVICE_RECOVERY_REQUIRED","ANALYSIS_CONTEXT_REBUILD_REQUIRED","UNSPECIFIED"]},"affected_findings":{"type":"integer","minimum":1}}},"FindingClassificationCounts":{"type":"object","required":["exploitable_runtime_confirmed","exploitable_structurally_confirmed","not_exploitable","needs_review"],"properties":{"exploitable_runtime_confirmed":{"type":"integer","minimum":0},"exploitable_structurally_confirmed":{"type":"integer","minimum":0},"not_exploitable":{"type":"integer","minimum":0},"needs_review":{"type":"integer","minimum":0}}},"StartAnalysisRequest":{"type":"object","required":["repository"],"properties":{"repository":{"$ref":"#/components/schemas/RepositorySource"}}},"RepositorySource":{"type":"object","required":["provider","cloneUrl","ref"],"properties":{"provider":{"type":"string","example":"github"},"cloneUrl":{"type":"string","format":"uri","example":"https://github.com/acme/service.git"},"ref":{"type":"string","example":"main"},"commitSha":{"type":"string","nullable":true}}},"AnalysisListResponse":{"type":"object","required":["data","page"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AnalysisSummaryResponse"}},"page":{"$ref":"#/components/schemas/AnalysisPage"}}},"AnalysisPage":{"type":"object","required":["limit"],"properties":{"next_cursor":{"type":"string","nullable":true},"limit":{"type":"integer"}}},"AnalysisSummaryResponse":{"type":"object","required":["analysisId","attemptId","repositoryId","provider","clone_url","ref","ref_type","status","phases","scan_mode","sast_scan_enabled","execution","archived","created_at","updated_at"],"properties":{"analysisId":{"type":"string","format":"uuid"},"attemptId":{"type":"string","format":"uuid"},"repositoryId":{"type":"string","format":"uuid"},"provider":{"type":"string","example":"github"},"clone_url":{"type":"string","format":"uri"},"ref":{"type":"string"},"ref_type":{"type":"string","enum":["branch","tag","archive_revision"]},"commit_sha":{"type":"string","nullable":true},"scan_mode":{"$ref":"#/components/schemas/ScanMode"},"sast_scan_enabled":{"type":"boolean","description":"True only when AutoProof runs its own SAST scan. False for verify-only scans backed by caller-supplied SAST input."},"status":{"$ref":"#/components/schemas/AnalysisStatus"},"jobName":{"type":"string","nullable":true},"failureReason":{"type":"string","nullable":true},"phases":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowPhase"}},"execution":{"$ref":"#/components/schemas/AnalysisExecution"},"runtime_environment":{"$ref":"#/components/schemas/AnalysisTestInfra","nullable":true},"archived":{"type":"boolean","description":"Whether this analysis is archived and excluded from active analysis and finding views."},"archived_at":{"type":"string","format":"date-time","nullable":true},"application_id":{"type":"string","format":"uuid","nullable":true},"application_name":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"AnalysisExecution":{"type":"object","required":["attempt_id","status","phase_statuses","task_statuses"],"properties":{"attempt_id":{"type":"string","format":"uuid"},"status":{"$ref":"#/components/schemas/AnalysisStatus"},"current_phase":{"$ref":"#/components/schemas/WorkflowPhase","nullable":true},"phase_statuses":{"type":"array","items":{"$ref":"#/components/schemas/AnalysisPhaseStatus"}},"task_statuses":{"type":"array","description":"Current attempt tasks, one per kind. States follow the selected active or final run. Task clocks are first heartbeat and terminal receipt, not internal phase durations.","items":{"$ref":"#/components/schemas/AnalysisTaskStatus"}}}},"AnalysisTaskStatus":{"type":"object","required":["kind","status","run_id","run_number","started_at","finished_at","reused_from_task_run_id","failure_code"],"properties":{"kind":{"type":"string","enum":["source_prep","analysis_context","sast","cpg_build","verification"]},"status":{"type":"string","enum":["pending","ready","claimed","scheduled","running","retry_pending","succeeded","failed","skipped","canceled"]},"run_id":{"type":"string","format":"uuid","nullable":true},"run_number":{"type":"integer","nullable":true},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"reused_from_task_run_id":{"type":"string","format":"uuid","nullable":true},"failure_code":{"type":"string","nullable":true,"pattern":"^[a-z][a-z0-9_]{0,63}$","description":"Why the task failed, when its status is failed; null otherwise. Source preparation reports source_size_limit_exceeded or source_file_count_exceeded when the source is over the plan's limits, source_unavailable when it could not be fetched, source_integrity_rejected or a more specific source_* code when the upload could not be accepted, and system_error for a failure on Autoproof's side. Other tasks report codes such as sast_scan_failed. New codes may be added; treat an unknown code as system_error.\n","example":"source_size_limit_exceeded"}}},"AnalysisPhaseStatus":{"type":"object","required":["phase","status","accepted_at"],"properties":{"phase":{"$ref":"#/components/schemas/WorkflowPhase"},"status":{"type":"string","enum":["succeeded","failed","skipped"]},"reason":{"type":"string","nullable":true},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"accepted_at":{"type":"string","format":"date-time"},"reused_from_task_run_id":{"type":"string","format":"uuid","nullable":true},"source_started_at":{"type":"string","format":"date-time","nullable":true},"source_finished_at":{"type":"string","format":"date-time","nullable":true}}},"AnalysisTestInfra":{"type":"object","required":["status","setup_status","runtime_target_id","access_scope","strategy","reason","failure_code","workflow_version","active_step","acceptance_status","failure_information"],"properties":{"status":{"type":"string","enum":["available","unavailable","in_progress","failed","released"],"description":"Current lifecycle and consumer availability of the environment."},"setup_status":{"type":"string","enum":["in_progress","succeeded","failed","skipped"],"description":"Durable outcome of runtime environment setup for this analysis."},"runtime_target_id":{"type":"string","format":"uuid","nullable":true},"access_scope":{"type":"string","enum":["runner_internal"]},"strategy":{"type":"string","enum":["kubernetes_runtime","pod_native_compose"]},"reason":{"type":"string","nullable":true,"description":"Customer-safe primary runtime setup cause. A terminal repair outcome retains the BUILD cause that initiated repair.","enum":["unsupported_source","source_unavailable","capacity_unavailable","build_unavailable","publish_unavailable","runtime_unavailable","health_unavailable","observation_unavailable","system_failure","canceled"]},"failure_code":{"type":"string","nullable":true,"maxLength":96,"description":"Durable terminal outcome code. For a failed repair, this is the repair outcome while reason and failure_information retain the primary BUILD cause."},"failure_information":{"allOf":[{"$ref":"#/components/schemas/AnalysisTestInfraFailureInformation"}],"nullable":true,"description":"Bounded, redacted primary failure evidence visible only to the owning organization until expires_at."},"workflow_version":{"type":"string","description":"Durable runtime-environment workflow contract version."},"active_step":{"type":"string","nullable":true,"enum":["materialize","target_selection","prepare","build","publish","deploy","acceptance","configure"]},"acceptance_status":{"type":"string","enum":["not_started","running","passed","failed"]}}},"AnalysisTestInfraFailureInformation":{"type":"object","additionalProperties":false,"required":["schema_version","stage","failure_code","failure_disposition","responsibility","diagnostic_excerpt","evidence_sha256","observed_bytes","truncated","redaction_version","expires_at"],"properties":{"schema_version":{"type":"string","enum":["v1"]},"stage":{"type":"string","enum":["build","publish","deploy","acceptance"]},"failure_code":{"type":"string","maxLength":96},"failure_disposition":{"type":"string","enum":["RETRYABLE_TRANSIENT","REPAIR_CANDIDATE","NON_REPAIRABLE","INSUFFICIENT_EVIDENCE"]},"responsibility":{"type":"string","enum":["deployment_config","application_source","infrastructure","policy","external_dependency","unknown"]},"diagnostic_excerpt":{"type":"string","minLength":1,"maxLength":1536},"evidence_sha256":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"observed_bytes":{"type":"integer","format":"int64","minimum":0},"truncated":{"type":"boolean"},"redaction_version":{"type":"string","enum":["v1"]},"expires_at":{"type":"string","format":"date-time"}}},"StartAnalysisResponse":{"type":"object","required":["analysisId","attemptId","correlationId","status","jobName","reusedExistingJob","phases"],"properties":{"analysisId":{"type":"string","format":"uuid"},"attemptId":{"type":"string","format":"uuid"},"correlationId":{"type":"string"},"status":{"$ref":"#/components/schemas/AnalysisStatus"},"jobName":{"type":"string"},"reusedExistingJob":{"type":"boolean"},"phases":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowPhase"}}}},"AnalysisStatusResponse":{"type":"object","required":["analysisId","attemptId","correlationId","status","phases"],"properties":{"analysisId":{"type":"string","format":"uuid"},"attemptId":{"type":"string","format":"uuid"},"correlationId":{"type":"string"},"status":{"$ref":"#/components/schemas/AnalysisStatus"},"jobName":{"type":"string","nullable":true},"failureReason":{"type":"string","nullable":true},"phases":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowPhase"}}}},"AnalysisStatus":{"type":"string","enum":["created","job_scheduled","running","succeeded","failed","canceled","heartbeat_timeout","pod_failed"]},"ScanMode":{"type":"string","enum":["DIRECT","SAST_INPUT"]},"WorkflowPhase":{"type":"string","enum":["clone","phase1","sast","joern","phase2","ep","llm","patch","verification"]},"AppVerificationDetail":{"allOf":[{"$ref":"#/components/schemas/VerificationSummary"},{"type":"object","required":["verdict","confidence","runtime_result","regression_result","structural_result","condition_scope","execution_info","patch_validation","source_link","ep_context","retry","poc_url","regression_code_url","attempts_url"],"properties":{"verdict":{"type":"string","nullable":true},"confidence":{"type":"string","nullable":true},"runtime_result":{"$ref":"#/components/schemas/FindingRuntimeResult"},"regression_result":{"$ref":"#/components/schemas/FindingRegressionResult"},"structural_result":{"$ref":"#/components/schemas/FindingStructuralResult"},"condition_scope":{"type":"string","nullable":true},"execution_info":{"allOf":[{"$ref":"#/components/schemas/FindingExecutionInfo"}],"nullable":true},"patch_validation":{"$ref":"#/components/schemas/FindingPatchValidation"},"source_link":{"type":"string","format":"uri","nullable":true,"description":"Stored direct repository source link for the finding location when available."},"ep_context":{"allOf":[{"$ref":"#/components/schemas/FindingEpContext"}],"nullable":true},"retry":{"allOf":[{"$ref":"#/components/schemas/VerificationRetryStatus"}],"nullable":true},"poc_url":{"type":"string"},"regression_code_url":{"type":"string"},"attempts_url":{"type":"string"}}}],"description":"App result identity is verification_unit_id. Internal action_finding_id is excluded."},"VerificationPatchValidationResponse":{"type":"object","additionalProperties":false,"required":["verification_unit_id","run_id","status","duplicate"],"properties":{"run_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running"]},"duplicate":{"type":"boolean","description":"True when the active run was returned. Same-run saga recovery may run idempotently, but no new reservation or Job is created."},"verification_unit_id":{"type":"string","format":"uuid","description":"Public finding identifier."}}},"VerificationJiraIssuesResponse":{"type":"object","required":["verification_unit_id","data"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"},"data":{"type":"array","items":{"$ref":"#/components/schemas/JiraIssueLinkResponse"}}}},"VerificationJiraIssueResponse":{"allOf":[{"$ref":"#/components/schemas/JiraIssueCreateResponse"},{"type":"object","required":["verification_unit_id"],"properties":{"verification_unit_id":{"type":"string","format":"uuid"}}}]},"AppJiraFileIssueCreateRequest":{"properties":{"analysis_id":{"format":"uuid","type":"string"},"commit_sha":{"minLength":1,"type":"string"},"file_path":{"description":"Canonical repository-relative file path.","minLength":1,"type":"string"},"verification_unit_ids":{"description":"Successful units detected in the selected analysis/commit at the canonical unit file path. Every immutable member is included, including members not redetected in that analysis.","items":{"format":"uuid","type":"string"},"minItems":1,"type":"array","uniqueItems":true}},"required":["analysis_id","commit_sha","file_path","verification_unit_ids"],"type":"object"},"AppJiraFileIssueLinkResponse":{"allOf":[{"$ref":"#/components/schemas/JiraIssueLinkResponse"},{"properties":{"commit_sha":{"type":"string"},"creation_mode":{"enum":["AUTO","MANUAL"],"type":"string"},"file_path":{"type":"string"},"verification_unit_ids":{"items":{"format":"uuid","type":"string"},"type":"array"}},"required":["commit_sha","file_path","creation_mode","verification_unit_ids"],"type":"object"}]},"AppJiraFileIssueListResponse":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AppJiraFileIssueLinkResponse"}}}}}}}