---
title: "Get content by path"
method: GET
path: "/api/v1/content/by-path"
tags: ["Content"]
---

# Get content by path

`GET /api/v1/content/by-path`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/content/by-path`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

## Query parameters

- `brandId` string, required
- `path` string, required

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` object, nullable, required
    - `id` string, required
    - `title` string, required
    - `content` string, required
    - `filePath` string, required
    - `sourceUrl` string, required
    - `description` string, nullable, required
    - `ogTitle` string, nullable, required
    - `ogDescription` string, nullable, required
    - `ogImage` string, nullable, required
    - `twitterTitle` string, nullable, required
    - `twitterDescription` string, nullable, required
    - `twitterImage` string, nullable, required
    - `metadata` object, required
      - `contentType` 'recommended' | 'solution-recommendation' | 'comparison' | 'explainer' | 'implementation-guide' | 'decision-guide' | 'use-case-workflow' | 'listicle' | 'solution-guide' | 'code-example' | 'code-decision-guide' | 'compatibility' | 'faq' | 'custom' | 'null', nullable, 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)
