Skip to main content
Retrieves detailed information about a specific published content item. This is a public endpoint that does not require authentication.

Path Parameters

contentId
string
required
The unique identifier of the content

Response

content
object
Content object with detailed information
The fileUrl and filePublicId fields are not included in the response. To access the file URL, users must purchase the content and use the Access Content endpoint.

Error Responses

error
string
Error message

404 Not Found

Returned when the content does not exist or is not published.
{
  "error": "Content not found"
}
{
  "content": {
    "_id": "507f1f77bcf86cd799439011",
    "title": "Advanced JavaScript Patterns",
    "description": "Learn advanced design patterns in JavaScript including Module, Observer, and Factory patterns with real-world examples.",
    "type": "pdf",
    "category": "507f1f77bcf86cd799439012",
    "price": 29.99,
    "thumbnailUrl": "https://res.cloudinary.com/example/image/upload/v1234567890/thumbnail.jpg",
    "fileSize": 5242880,
    "status": "published",
    "tags": ["javascript", "patterns", "advanced", "design-patterns"],
    "createdBy": {
      "_id": "507f1f77bcf86cd799439013",
      "name": "John Doe"
    },
    "createdAt": "2024-03-01T12:00:00.000Z",
    "updatedAt": "2024-03-01T12:00:00.000Z"
  }
}

Build docs developers (and LLMs) love