Readiness Reports API
List and retrieve agent readiness reports you can access.
List readiness reports
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.
curl 'https://api.factory.ai/api/v0/readiness-reports' \
-H "Authorization: Bearer $FACTORY_BEARER_TOKEN"Parameters
Maximum number of items to return (1-100)
Default: 20
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.
Only list reports for this repository URL, such as `https://github.com/owner/repo`
Minimum length: 1
Maximum length: 2048
Only list reports created at or after this time, in Unix epoch milliseconds, from 1 through 253402300799999
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.
Responses
application/json
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.
Array items
Readiness report ID
When the report was stored, in Unix epoch milliseconds
ID of the session that generated the report
User ID of the caller that uploaded the report; for a report a service account uploaded, the service account ID
Repository the report evaluated
Evaluation of each readiness criterion, by criterion ID
Values
Applications found in the repository, by path within it
Values
Commit the report evaluated
Branch the report evaluated
Whether the working tree had uncommitted changes when the report was generated
Whether the branch had commits not pushed to its remote when the report was generated
Model that generated the report
Model ID
Reasoning effort the model ran with, such as `low`, `medium`, `high` or `off`. More values may be added; treat a value you do not know as unknown.
Version of Droid that generated the report
Who can read the report: `private` limits it to its owner, callers with source-control access to its repository, and the creator of its source session; `organization` also shares it with the organization. Absent means `private`. More values may be added; treat a value you do not know as unknown.
Whether there are more items after this page
Position to pass as `cursor` for the next page, null when `hasMore` is false. It names a stored report of the organization, which can be a report the caller cannot read, a deleted one included.
400Response for status 400
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
Request validation error
Framework validation issues, when available
Array items
object401Response for status 401
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
402Response for status 402
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
403Response for status 403
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
404Response for status 404
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
451Response for status 451
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
500Response for status 500
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
503Response for status 503
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
Get a readiness report
Returns one readiness report the caller can read, by the same rule as the list. In an organization whose Prem is not hosted by Factory, the creator's access does not apply, and a report only the creator of its source session could read answers 404. 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 can be made, a report that does not exist, a deleted report and a report the caller cannot read answer the same 404. While it is unavailable, a report that needs it answers 503, and a report that does not exist or is deleted still answers 404.
curl 'https://api.factory.ai/api/v0/readiness-reports/{reportId}' \
-H "Authorization: Bearer $FACTORY_BEARER_TOKEN"Parameters
Readiness report ID
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.
Responses
application/json
Readiness report ID
When the report was stored, in Unix epoch milliseconds
ID of the session that generated the report
User ID of the caller that uploaded the report; for a report a service account uploaded, the service account ID
Repository the report evaluated
Evaluation of each readiness criterion, by criterion ID
Values
Applications found in the repository, by path within it
Values
Commit the report evaluated
Branch the report evaluated
Whether the working tree had uncommitted changes when the report was generated
Whether the branch had commits not pushed to its remote when the report was generated
Model that generated the report
Model ID
Reasoning effort the model ran with, such as `low`, `medium`, `high` or `off`. More values may be added; treat a value you do not know as unknown.
Version of Droid that generated the report
Who can read the report: `private` limits it to its owner, callers with source-control access to its repository, and the creator of its source session; `organization` also shares it with the organization. Absent means `private`. More values may be added; treat a value you do not know as unknown.
400Response for status 400
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
Request validation error
Framework validation issues, when available
Array items
object401Response for status 401
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
402Response for status 402
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
403Response for status 403
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
404Response for status 404
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
451Response for status 451
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
500Response for status 500
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
503Response for status 503
application/json
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users
The same error fields, for clients that only read body.error
Human-readable error message
HTTP status code
HTTP status title
Additional error metadata
Values
objectRequest identifier to include when contacting support
Stable machine-readable error code, when one applies
True when detail is curated copy that is safe to show users