Readiness Reports API

List and retrieve agent readiness reports you can access.

GET/api/v0/readiness-reports

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
curl 'https://api.factory.ai/api/v0/readiness-reports' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

limitintegerqueryoptional

Maximum number of items to return (1-100)

Default: 20

cursorstringqueryoptional

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.

repoUrlstringqueryoptional

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

Minimum length: 1

Maximum length: 2048

createdAfterintegerqueryoptional

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

X-Factory-Org-Idstringheaderoptional

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

200Response for status 200

application/json

reportsobject[]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.

Array items

reportIdstringrequired

Readiness report ID

createdAtnumberrequired

When the report was stored, in Unix epoch milliseconds

sourceSessionIdstringrequired

ID of the session that generated the report

ownerUserIdstring

User ID of the caller that uploaded the report; for a report a service account uploaded, the service account ID

repoUrlstring

Repository the report evaluated

reportobject (map)required

Evaluation of each readiness criterion, by criterion ID

Values

numeratornumber | nullrequired
denominatornumberrequired
rationalestringrequired
appsobject (map)

Applications found in the repository, by path within it

Values

descriptionstringrequired
commitHashstring

Commit the report evaluated

branchstring

Branch the report evaluated

hasLocalChangesboolean

Whether the working tree had uncommitted changes when the report was generated

hasNonRemoteCommitsboolean

Whether the branch had commits not pushed to its remote when the report was generated

modelUsedobject

Model that generated the report

idstringrequired

Model ID

reasoningEffortstring

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.

droidVersionstring

Version of Droid that generated the report

privacyLevelstring

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.

paginationobjectrequired
hasMorebooleanrequired

Whether there are more items after this page

nextCursorstring | nullrequired

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

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/readiness-reports/{reportId}

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
curl 'https://api.factory.ai/api/v0/readiness-reports/{reportId}' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

reportIdstringpathrequired

Readiness report ID

X-Factory-Org-Idstringheaderoptional

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

200Response for status 200

application/json

reportIdstringrequired

Readiness report ID

createdAtnumberrequired

When the report was stored, in Unix epoch milliseconds

sourceSessionIdstringrequired

ID of the session that generated the report

ownerUserIdstring

User ID of the caller that uploaded the report; for a report a service account uploaded, the service account ID

repoUrlstring

Repository the report evaluated

reportobject (map)required

Evaluation of each readiness criterion, by criterion ID

Values

numeratornumber | nullrequired
denominatornumberrequired
rationalestringrequired
appsobject (map)

Applications found in the repository, by path within it

Values

descriptionstringrequired
commitHashstring

Commit the report evaluated

branchstring

Branch the report evaluated

hasLocalChangesboolean

Whether the working tree had uncommitted changes when the report was generated

hasNonRemoteCommitsboolean

Whether the branch had commits not pushed to its remote when the report was generated

modelUsedobject

Model that generated the report

idstringrequired

Model ID

reasoningEffortstring

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.

droidVersionstring

Version of Droid that generated the report

privacyLevelstring

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

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users