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 'authorization: <authorization>'
{
  "ok": true,
  "data": {
    "id": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "filePath": "<string>",
    "title": "<string>",
    "content": "<string>",
    "sourceUrl": "<string>",
    "isManual": true,
    "productId": "<string>",
    "contentType": "markdown",
    "deletedAt": "<string>"
  }
}

Headers

authorization
string
required

Bearer API key, for example: Bearer tpc_...

Minimum string length: 1
x-tpc-organization-id
string

Organization ID. Provide this or x-tpc-organization-slug.

Minimum string length: 1
x-tpc-product-id
string

Product ID. Provide this or x-tpc-product-slug.

Minimum string length: 1
x-tpc-organization-slug
string

Organization slug. Provide this or x-tpc-organization-id.

Minimum string length: 1
x-tpc-product-slug
string

Product slug. Provide this or x-tpc-product-id.

Minimum string length: 1

Response

Successful response

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