release-candidates

sfp server API reference for release-candidates: 2 endpoints.

GET/sfp/api/release-candidates/diff

Returns the package-version delta and git file-level diff between two release candidates. Async, mirroring code-analysis / AI reports: a cached result is served immediately (status: available); otherwise the generate-release-diff flow is dispatched and status: pending is returned with a jobId. Poll this same endpoint (same from/to) until status becomes available — the result is keyed by (repository, from, to), not by jobId. Concurrent polls reuse the in-flight run.

Authorization

access-token
AuthorizationBearer <token>

In: header

Query Parameters

repositoryIdentifier*string

Repository identifier (owner/repo or org/project/repo).

from*string

Baseline release ref as domain:releaseName.

to*string

Target release ref as domain:releaseName.

refresh?boolean

Force a recompute, bypassing the cache (an in-flight run is still reused).

Response Body

application/json

curl -X GET "https://example.com/sfp/api/release-candidates/diff?repositoryIdentifier=flxbl-io%2Fsf-core&from=sales%3Asales-10JUN26-1&to=sales%3Asales-19JUN26-2"
{  "status": "available",  "data": {    "repositoryIdentifier": "string",    "fromRelease": "string",    "toRelease": "string",    "packages": [      {        "package": "string",        "fromVersion": "string",        "toVersion": "string",        "change": "added"      }    ],    "summary": {},    "fileDiff": {},    "computedAt": "string",    "status": "string",    "durationMs": 0  },  "jobId": "string",  "message": "string"}
POST/sfp/api/release-candidates/diff/results

Callback used by the generate-release-diff flow to persist its result into the doc store. Requires an application token.

Authorization

access-token
AuthorizationBearer <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/release-candidates/diff/results" \  -H "Content-Type: application/json" \  -d '{    "repositoryIdentifier": "string",    "fromRelease": "string",    "toRelease": "string",    "packages": [      {        "package": "string",        "change": "added"      }    ],    "summary": {}  }'
Empty