Get Revision Scans
https://app.fossa.com/api/revisions/{locator}/scansRetrieve a paginated list of scans for a given revision, ordered by scan time descending, with ties broken by id DESC for deterministic pagination. Scans are filtered to the organization that owns the revision's project, so public and private projects behave consistently. Requires an authenticated user.
Path parameters
locatorstringrequiredThe URL-encoded locator of the revision
Query parameters
pageintegerThe 1-indexed page of results to return
pageSizeintegerThe number of scans to return per page (maximum 50)
Responses
200A paginated list of revision scans.resultsobject[]requiredidintegerUnique identifier for the scan
scanned_atstring <date-time>Timestamp when the scan was performed
scanTypeenumThe scan type. This endpoint only returns project scans.
projectrevisionIdstringThe locator of the revision the scan belongs to
organizationIdintegerThe organization that owns the scan
releaseScanIdintegerAssociated release scan identifier, if any
licensingPolicyVersionIdintegerThe licensing policy version used during this scan
securityPolicyVersionIdintegerThe security policy version used during this scan
qualityPolicyVersionIdintegerThe quality policy version used during this scan
createdAtstring <date-time>updatedAtstring <date-time>pageintegerrequiredThe current page number
pageSizeintegerrequiredThe number of items requested per page
totalCountintegerrequiredThe total number of scans matching the query across all pages
400Invalid pagination parametersuuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
401UnauthorizeduuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
404Revision not founduuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
500Server ErroruuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
Try this endpoint
Build a request and run it against app.fossa.com.
Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.
GET https://app.fossa.com/api/revisions/custom%252B1234%252Fmy-project%2524abcd1234/scanscurl --request GET \ --url 'https://app.fossa.com/api/revisions/custom%252B1234%252Fmy-project%2524abcd1234/scans' \ --header 'accept: application/json' \ --header 'authorization: Bearer YOUR_API_TOKEN'Real request. Mutating methods can change data.
Path params
locatorstringrequiredThe URL-encoded locator of the revision
Query params
pageintegerThe 1-indexed page of results to return
pageSizeintegerThe number of scans to return per page (maximum 50)