Skip to main content

Get Content by ID

Retrieve a specific content item by its ID.

GET /api/content/:id

Response

{
"id": "number",
"title": "string",
"slug": "string",
"description": "string",
"descriptionPlain": "string",
"likeCount": "number",
"commentCount": "number",
"hasCurrentUserLiked": "boolean",
"featuredImage": "string?",
"type": "link" | "video" | "post",
"contentURI": "string?",
"video": "string?",
"chatEnabled": "boolean",
"visibility": "public" | "private",
"expireDate": "string?",
"publishedDate": "string?",
"featured": "boolean",
"createdAt": "string",
"updatedAt": "string",
"PlatformId": "number",
"UserId": "number",
"Groups": [
{
"id": "number",
"name": "string",
"slug": "string",
"description": "string",
"visibility": "string",
"coverImg": "string?",
"PlatformId": "number",
"createdAt": "string",
"updatedAt": "string"
}
],
"User": {}
}