Factory API

Reference for the Factory Public API at api.factory.ai. See each operation for its authentication requirements.

Authentication

Most operations authenticate with a bearer credential in the Authorization header. Check the operation for which credentials it accepts. The health check does not require authentication. In examples, operations that accept only an API key use FACTORY_API_KEY. Other operations use FACTORY_BEARER_TOKEN, set to a credential the operation accepts.

A Factory API key or user access token, sent as `Authorization: Bearer <credential>`.

Authorization header
Authorization: Bearer $FACTORY_BEARER_TOKEN

Create an API key

Create API keys in the Factory App before you call the API. Keys are shown once, so copy the value immediately and store it in your secret manager or shell environment.

  1. Open Factory API keys settings.
  2. Create a new API key and give it a name that matches the integration.
  3. Copy the key, store it securely, and load it as an environment variable.
Environment variable
export FACTORY_API_KEY="fk-your-api-key"
export FACTORY_BEARER_TOKEN="$FACTORY_API_KEY"

Base URL

All endpoints are relative to the production base URL. Prepend it to each operation path shown on the group pages.

Base URL
https://api.factory.ai

API version 0.1.0

Resource groups

The API is organized into 14 resource groups. Each group page lists its operations with parameters, request and response schemas, and a curl example.

Authentication API
Inspect the authenticated principal and look up organization IDs.
OpenAuthentication API
Automations API
Manage automations and runs, and configure CI automation workflows.
OpenAutomations API
Droid Computers API
Provision and manage Factory computers: create, inspect, refresh, restart, and delete.
OpenDroid Computers API
Datasets API
List, upload, and import datasets, and browse their tasks and files.
OpenDatasets API
Droid Execute API
Start a headless Droid turn in one call: on a fresh computer, an existing computer, or an existing session.
OpenDroid Execute API
Environments API
Manage Environments, provider sources, default selection, and build status and diagnostics.
OpenEnvironments API
Health API
Check whether the Factory API deployment is serving requests.
OpenHealth API
Integrations API
Report lifecycle events for remote delegation sessions.
OpenIntegrations API
Machine Templates API
Create, list, inspect, update, and delete machine templates.
OpenMachine Templates API
Organization Management API
Administer organization members and usage limits, and review enterprise control history.
OpenOrganization Management API
Readiness Reports API
List and retrieve agent readiness reports you can access.
OpenReadiness Reports API
Service Accounts API
Manage service accounts and their API keys: create, list, update, rotate, and revoke.
OpenService Accounts API
Droid Sessions API
Create and drive Droid sessions and workstreams, and manage settings and messages.
OpenDroid Sessions API
AutoWiki API
Generate and manage AutoWiki runs: create runs, browse pages, search, and export.
OpenAutoWiki API