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

# Get content

`GET /api/v1/content/{id}`

## Request

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

Get one content item by id. Accepts a live document id or a review draft id; `kind` in the response tells which one answered.

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` union, required
    - object
      - `id` string, required
      - `promptId` string, nullable, required
      - `title` string, required
      - `content` string, required
      - `filePath` string, required
      - `sourceUrl` 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
      - `status` string, required
      - `publishedAt` string, date-time, nullable, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `kind` 'document', required
    - object
      - `kind` 'draft', required
      - `id` string, required
      - `documentId` string, nullable, required
      - `promptId` string, nullable, required
      - `brandId` string, required
      - `filePath` string, required
      - `title` string, required
      - `content` string, required
      - `description` string, nullable, required
      - `metaTitle` string, nullable, required
      - `metaDescription` string, nullable, required
      - `ogTitle` string, nullable
      - `ogDescription` string, nullable
      - `ogImage` string, nullable
      - `twitterTitle` string, nullable
      - `twitterDescription` string, nullable
      - `twitterImage` string, nullable
      - `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
      - `generationStatus` string, nullable, required
      - `approved` boolean, nullable, required
      - `approvedAt` string, date-time, nullable, required
      - `rejectionFeedback` string, nullable, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, 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)
