---
title: "Get public markdown content by path"
method: GET
path: "/api/v1/md/by-path/{path}"
tags: ["Content"]
---

# Get public markdown content by path

`GET /api/v1/md/by-path/{path}`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/md/by-path/{path}`
- Auth: API key in header `x-api-key`

Retrieves public markdown content by file path. Supports standard x-api-key authentication (productId/productSlug via query param or X-Tpc-Product-* headers as fallback) as well as the legacy X-Tpc-* header model.

## Path parameters

- `path` string, required

## Headers

- `x-api-key` string
- `authorization` string
- `x-tpc-organization-id` string
- `x-tpc-organization-slug` string
- `x-tpc-product-id` string
- `x-tpc-product-slug` string

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` object, required
    - `id` string, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `deletedAt` string, nullable
    - `filePath` string, required
    - `title` string, required
    - `content` string, required
    - `sourceUrl` string, required
    - `isManual` boolean, required
    - `productId` string, required
    - `contentType` 'markdown', required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api.md) - [All operations](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/revisions/c0451ea10e9a?raw)
