Content

List content

Unified content list across the lifecycle. status selects the view: published (default) and draft list live site pages; pending_review, generating, failed, rejected, and approved list content drafts in the review queue. Provide exactly one of productId or productSlug.

get/api/v1/content

Request

  • Base URL
    https://app.promptingco.com
  • URL
    https://app.promptingco.com/api/v1/content
  • Auth
    • API key in header x-api-key
    • or HTTP bearer
    • or API key in cookie better-auth.session_token

Query parameters

productIdstring

Product ID. Provide exactly one of productId or productSlug (the server enforces this at runtime).

productSlugstring

Product slug. Provide exactly one of productId or productSlug (the server enforces this at runtime).

status'draft' | 'published' | 'pending_review' | 'generating' | 'failed' | 'rejected' | 'approved'

Lifecycle filter. published (default) and draft list live site pages; pending_review, generating, failed, rejected, and approved list content drafts in the review queue.

promptIdstring

Filter by the prompt the content was generated from. Works for every status: published pages keep their prompt lineage.

pageinteger
pageSizeinteger
orderBy'createdAt' | 'updatedAt' | 'deletedAt'
orderByDirection'asc' | 'desc'
querystring
qstring
typestring
isManualboolean
pathPrefixstring
hasContentboolean
includeContentboolean
domainIdstring
domainstring
archivedStatus'active' | 'archived' | 'all'

Response

Successful response

oktrue required

Changes

No recorded changes to this operation across all 1 revision of this API.