Automations

Read an automation skill file

Changed on

One file of a skill under the automation's skills/ directory, from the cloud copy or from the computer that hosts the automation (424 or 503 when that computer cannot be reached), addressed by its automation-relative path (skills/<skill>/SKILL.md), with its sha256 to name as the base of a later whole-file write or delete and the skill directory's sha256 to name as the base of a later move or delete of the skill. secrets.json is never served; a file synced by name and size only, or not text on its host, answers 409.

get/api/v0/automations/{automationId}/skills/file

Request

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

Path parameters

automationId, string required

Automation ID

Query parameters

path, string required

Automation-relative path of the file under skills/ (for example skills/triage/SKILL.md)

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

GetAutomationSkillFile200ResponseBody required
path, string required
content, string required
sha256, string required
sizeBytes, number required
directorySha256, string required

Changes