Readiness Reports

List readiness reports

Changed on

Returns the readiness reports of the authenticated organization that the caller can read, newest first. A caller can read a report they uploaded, a report shared with the organization, a report for a repository they can access through source control, and a report whose source session they created; in an organization whose Prem is not hosted by Factory, the creator's access does not apply, and a report that only the creator of its source session could read is not listed. Deleted reports are not listed, but pagination.nextCursor is a position in the stored reports of the organization and can name a report the caller cannot read, a deleted one included. Access is checked after each page of stored reports is read, so a page can hold fewer than limit reports, or none, while pagination.hasMore is true; pass pagination.nextCursor as cursor until hasMore is false. The server looks up who created a report's source session only for a report that is not deleted, that the caller did not upload, cannot access through source control and that is not shared with the organization, and whose source session ID is a UUID. While the lookup is unavailable, a request that needs it answers 503, a page that also holds reports the caller can read included.

get/api/v0/readiness-reports

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Query parameters

limit, integer

Maximum number of items to return (1-100)

cursor, string

The previous page's pagination.nextCursor: a position in the organization's stored reports, which can name a report the caller cannot read. A cursor that names no stored report answers the first page.

repoUrl, string

Only list reports for this repository URL, such as https://github.com/owner/repo

createdAfter, integer

Only list reports created at or after this time, in Unix epoch milliseconds, from 1 through 253402300799999

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

ListReadinessReports200ResponseBody required
reports, object[] required

Newest first. Access is checked after each page of stored reports is read, so a page can hold fewer than limit reports, or none, while pagination.hasMore is true.

pagination, object required

Changes