Validation

Query validation result summaries

get

Retrieve lightweight validation summaries for a repository. Returns only counts and status — no markdown content or raw deployment data.

Use cases:

  • Table view: list recent validations with status badges and package counts

  • Filter by base branch or PR number

Results are ordered by most recent first.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
repositoryIdentifierstringRequired

Repository identifier (e.g., flxbl-io/sf-core)

Example: flxbl-io/sf-core
pullRequestNumberstringOptional

Filter by PR number

baseBranchstringOptional

Filter by target/base branch

limitnumberOptional

Maximum results (default: 20, max: 100)

Responses
chevron-right
200

Lightweight validation summaries

No content

get
/sfp/api/validation/results

No content

Publish validation results

post

Store validation results from sfp validate. Called by the CLI when --publish-results is used.

Dual write: Stores full results (with markdown and deployment/test data) in the results table and a lightweight summary in the summary table.

Duplicate handling: If results already exist for the same PR + commit + domain, they are overwritten.

Retention: Keeps last 500 results per repository.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
repositoryIdentifierstringRequired

Repository identifier (e.g., flxbl-io/sf-core)

Example: flxbl-io/sf-core
pullRequestNumberstringOptional

Pull request number (if PR context)

Example: 123
commitShastringRequired

Git commit SHA that was validated

Example: 6dcb09b5b57875f334f61aebed695e2e4193db5e
domainstringOptional

Domain / release config name (e.g., "frameworks", "core"). Used as part of the storage key so each domain is stored separately.

Example: frameworks
branchNamestringOptional

Source branch name

baseBranchstringOptional

Target branch name (for PRs)

statusstring · enumRequired

Validation status

Possible values:
validationModestring · enumRequired

Validation mode

Possible values:
targetOrgstringOptional

Target org used for validation

poolstringOptional

Pool tag(s) used

errorMessagestringOptional

Overall error message if validation failed

validationMarkdownstringOptional

Pre-rendered validation markdown

testResultsMarkdownstringOptional

Pre-rendered test results markdown

executionTimeMsnumberOptional

Total execution time in milliseconds

prUrlstringOptional

Direct URL to the pull request

commitUrlstringOptional

Direct URL to the commit

Responses
post
/sfp/api/validation/results

No content

Get full validation results for a pull request

get

Retrieve all validation runs for a specific PR with full data including markdown and deployment/test details.

Use cases:

  • PR detail view: show deployment breakdown, test results, and markdown reports

  • Compare validation results between commits on the same PR

Each entry represents a separate validation run (one per commit + domain combination).

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
prNumberstringRequired

Pull request number

Example: 617
Query parameters
repositoryIdentifierstringRequired

Repository identifier (e.g., flxbl-io/sf-core)

Example: flxbl-io/sf-core
Responses
chevron-right
200

PR validation runs with full data

No content

get
/sfp/api/validation/pr/{prNumber}

No content

Last updated