Automations

Read an automation memory file

Changed on

Available only while automation memory tools are enabled for the caller; a request that reaches this operation with that feature disabled answers 404. Readable by the automation's owner, by every member for an automation shared with the organization, and by the service account the automation runs as; any other automation answers 404, and one whose runs keep no memory answers 409. One file under the automation's memory/ directory, from the cloud copy or from the computer that hosts the automation, with its sha256 to name as the base of a later whole-file write. runs.json is served only to the owner and to the service account the automation runs as (403 for any other reader); secrets.json is never served; a file synced by name and size only answers 409; one too large to answer from its host answers 413.

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

Request

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

Path parameters

automationId, string required

Automation ID

Query parameters

path, string required

Path of the file under memory/ (for example notes.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

One memory file with its text; sha256 is the base a later whole-file write names.

GetAutomationMemoryFile200ResponseBody required

One memory file with its text; sha256 is the base a later whole-file write names.

path, string required
content, string required
sha256, string required
sizeBytes, number required
access, 'editable' | 'read_only' required

Changes