---
title: "Read an automation skill file"
method: GET
path: "/api/v0/automations/{automationId}/skills/file"
tags: ["Automations"]
---

# Read an automation skill file

`GET /api/v0/automations/{automationId}/skills/file`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/automations/{automationId}/skills/file`
- Auth: HTTP bearer

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.

## 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

## Response `200`

Response for status 200

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

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `409`: Response for status 409
- `413`: Response for status 413
- `424`: Response for status 424
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-20** `e4bdc0947acc`: 2 info
  - added the non-success response with the status `413`
  - added the non-success response with the status `424`
- **2026-11-12** `c30daf4e3744`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/automations/:automationId/skills/file/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
