---
title: "Builder Mode: read one file of an extension (deployed branch)."
method: POST
path: "/api/v1/ext_code_read"
---

# Builder Mode: read one file of an extension (deployed branch).

`POST /api/v1/ext_code_read`

## Request

- Base URL: `https://k-phi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://k-phi.com/api/v1/ext_code_read`
- Auth: HTTP bearer

Builder Mode: read one file of an extension (deployed branch).

## Request body

- object
  - `extension_id` string: The extension (see kphi_ext_code_list without arguments). An extension key reaches its own extension and may omit it.
  - `path` string, required: File path in the repository, e.g. public/app.js

## Response `200`

OK

- object
  - `data` object
  - `meta` object
    - `api` string
    - `capability` string
    - `at` string

## Other responses

- `401`: No or invalid credential
- `403`: Scope, extension or Builder Mode refused
- `422`: The capability refused the input
- `429`: Rate or daily quota reached

---

[API](https://skmtc.dev/k-phi/apis/k-api.md) · [All operations](https://skmtc.dev/k-phi/apis/k-api/llms.txt) · [OpenAPI document](https://skmtc.dev/k-phi/apis/k-api/revisions/60b28690ec35?raw)
