API ReferenceCommunity
Show a single community post.
Authorization
bearerAuth AuthorizationBearer <token>
AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).
In: header
Path Parameters
id*string
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/community/posts/string"{ "data": { "post": { "id": "cpo_01jq8zv1a3c5e7g9j1l3n5p7q9", "ownerId": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "owner": { "id": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "fullName": "Khalid Al-Saud", "avatar": null, "truckName": "Crispy Cart Co." }, "body": "Pop-up tonight on Tahlia — first 20 burgers half-price. See you there!", "conversationId": "cnv_01jq8zw1a3c5e7g9j1l3n5p7q9", "country": "SA", "city": "Riyadh", "channel": "discussion", "likedByMe": false, "status": "published", "likesCount": 42, "repliesCount": 7, "images": [ { "id": "fil_01jq8zu1a3c5e7g9j1l3n5p7q9", "purpose": "community_post", "urls": { "original": "https://cdn.trackme.sa/cp/khalid-post-1-original.jpg", "thumb": "https://cdn.trackme.sa/cp/khalid-post-1-thumb.jpg", "medium": "https://cdn.trackme.sa/cp/khalid-post-1-medium.jpg", "large": "https://cdn.trackme.sa/cp/khalid-post-1-large.jpg" } } ], "createdAt": "2026-05-19T16:18:24.000Z", "updatedAt": "2026-05-19T16:18:24.000Z" } }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "NOT_FOUND", "message": "Resource not found.", "targetType": "food_truck", "targetId": "trk_01jq8z2hf5t8z4w9d8x4mzg2p3" }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}Publish a community post (with up to 4 photos). POST
Mint photo `fileId`s via `POST /api/v1/uploads` (`purpose=community_image`) first, then pass them in `fileIds` together with the post body.
Soft-delete a community post (author or admin). DELETE
Anyone who authored the post can delete it; otherwise the caller must hold an admin membership. Returns 403 for non-authors without admin rights.