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: Bearer $FACTORY_BEARER_TOKENCreate 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.
- Open Factory API keys settings.
- Create a new API key and give it a name that matches the integration.
- Copy the key, store it securely, and load it as an 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.
https://api.factory.aiAPI 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.