Skip to main content
GET
/
api
/
v1
/
md
/
by-path
Get root public markdown content
curl --request GET \
  --url https://app.promptingco.com/api/v1/md/by-path \
  --header 'x-api-key: <api-key>'
{
  "data": {
    "id": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "filePath": "<string>",
    "title": "<string>",
    "content": "<string>",
    "sourceUrl": "<string>",
    "isManual": true,
    "productId": "<string>",
    "deletedAt": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.promptingcompany.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Organization-scoped API key. Available scopes:

  • content:read: Read site pages, markdown content, and llms.txt files
  • content:write: Create, update, and delete site pages and content
  • prompts:read: Read prompts, topics, and prompt analysis results
  • prompts:write: Create, update, archive prompts
  • simulations:read: Read agent-simulation tasks, runs, environments, and analytics
  • simulations:write: Create and trigger simulation runs
  • logs:read: Read AI-traffic logs and request-level audit events
  • analytics:read: Read analytics aggregates (rankings, mentions, sources, SOV)
  • products:read: Read product metadata and competitor data
  • products:write: Update product settings and competitor lists

Headers

x-api-key
string

Standard API key authentication (preferred). When present, X-Tpc-* headers are ignored.

authorization
string

Bearer API key (used with X-Tpc-* headers for legacy public access)

x-tpc-organization-id
string

Organization ID (used with legacy public auth)

x-tpc-organization-slug
string

Organization slug (used with legacy public auth)

x-tpc-product-id
string

Product ID (used with legacy public auth)

x-tpc-product-slug
string

Product slug (used with legacy public auth)

Response

Successful response

ok
enum<boolean>
required
Available options:
true
data
object
required