Environments

Get a Factory Environment

Changed on
get/api/v0/environments/{environmentId}

Request

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

Path parameters

environmentId, string required

Factory Environment ID. Must not contain "/" and must not be "." or "..".

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

GetEnvironment200ResponseBody required
id, string required
name, string required
scope, 'user' | 'organization' required
repositories, object[] required
activeRepositories, object[]
setupScript, string
source, object required
activeSource, object
activeRepositoryCheckouts, object[]
status, 'building' | 'ready' | 'failed' required
isDefault, boolean
computerSizes, object[]
latestBuild, object
lastSuccessfulBuildAt, integer

Unix timestamp, in milliseconds, when the last successful build finished.

failureReason, string
createdAt, integer required

Unix timestamp, in milliseconds, when the environment was created.

updatedAt, integer required

Unix timestamp, in milliseconds, when the environment last changed.

Changes

    • info

      added the optional property computerSizes to the response with the status

    • info

      added the optional property activeRepositories/items/check to the response with the status

    • info

      added the optional property repositories/items/check to the response with the status