Builds
sfp server API reference for Builds: 7 endpoints.
/sfp/api/builds/statusRetrieves the latest build statuses ordered by commit date, with package metadata enriched from the package collection
Authorization
access-token In: header
Query Parameters
Repository identifier (e.g., owner/repo)
Maximum number of builds to return
1 <= value <= 10020Offset for pagination
0 <= value0Filter by specific domain
Response Body
application/json
curl -X GET "https://example.com/sfp/api/builds/status?repositoryIdentifier=flxbl-io%2Fsf-core"{ "builds": [ { "commitId": "string", "commitMessage": "string", "commitAuthor": "string", "commitDate": "string", "commitTimestamp": 0, "ciInfo": { "service": "string", "name": "string", "buildUrl": "string", "buildNumber": "string", "job": "string", "branch": "string", "isPr": true, "prNumber": "string" }, "domains": {}, "skipReason": "string", "workflowStatus": {}, "firstSeenAt": "string", "lastUpdatedAt": "string" } ], "total": 0, "hasMore": true}/sfp/api/builds/branchesAuthorization
access-token In: header
Query Parameters
Response Body
curl -X GET "https://example.com/sfp/api/builds/branches?repositoryIdentifier=flxbl-io%2Fsf-core"/sfp/api/builds/commitsAuthorization
access-token In: header
Query Parameters
1 <= value <= 5030Response Body
application/json
curl -X GET "https://example.com/sfp/api/builds/commits?repositoryIdentifier=flxbl-io%2Fsf-core&branch=release%2FV3"[ { "sha": "string", "message": "string", "authorName": {}, "authoredAt": "2019-08-24T14:15:22Z", "baseRef": {} }]/sfp/api/builds/previewAuthorization
access-token In: header
Query Parameters
Value in
- "true"
- "false"
Response Body
application/json
curl -X GET "https://example.com/sfp/api/builds/preview?repositoryIdentifier=flxbl-io%2Fsf-core&branchName=release%2FV3&commitId=c306bc1510cd0518c707ee3889cee54f7ca95c8d"{ "workflowKind": "build-on-merge", "targetScope": "allowed-domains", "plannedTargets": [ "string" ], "cascadeSourceBranch": "string", "excluded": true, "exclusionReason": "string", "dispatchStatus": "available", "existingExecutionId": "string", "existingRun": { "executionId": "exec-123", "status": "failed" }, "impact": { "status": "pending", "previewKey": "string", "jobId": "string", "impactedDomains": [ { "domainName": "string", "impactedPackages": [ "string" ] } ], "computedAt": "string", "message": "string" }}/sfp/api/builds/impact-previewAuthorization
access-token In: header
Query Parameters
Response Body
application/json
curl -X GET "https://example.com/sfp/api/builds/impact-preview?repositoryIdentifier=flxbl-io%2Fsf-core&previewKey=v1-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"{ "status": "pending", "previewKey": "string", "jobId": "string", "impactedDomains": [ { "domainName": "string", "impactedPackages": [ "string" ] } ], "computedAt": "string", "message": "string"}/sfp/api/builds/impact-preview/resultsAuthorization
access-token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/builds/impact-preview/results" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "string", "previewKey": "string", "generation": "string", "status": "available", "impactedDomains": [ { "domainName": "string", "impactedPackages": [ "string" ] } ], "computedAt": "string" }'/sfp/api/builds/runValidates the branch and commit server-side, then re-enters the canonical push pipeline. Existing active or completed builds are returned instead of duplicated.
Authorization
access-token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/sfp/api/builds/run" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "flxbl-io/sf-core", "branchName": "release/V3", "commitId": "c306bc1510cd0518c707ee3889cee54f7ca95c8d" }'{ "outcome": "started", "executionId": "string", "message": "string"}