Skip to main content
GET
/
api
/
posts
/
:id
curl -X GET "https://api.dyeink.com/api/posts/507f1f77bcf86cd799439011" \
  -H "Cookie: session=your_session_token"
{
  "id": "507f1f77bcf86cd799439011",
  "userId": "507f191e810c19729de860ea",
  "title": "My Blog Post",
  "slug": "my-blog-post",
  "content": "# Welcome\n\nThis is my blog post content.",
  "excerpt": "An introduction to my blog",
  "coverImage": "https://example.com/cover.jpg",
  "published": true,
  "publishedAt": "2026-03-04T10:30:00.000Z",
  "views": 42,
  "shares": 5,
  "createdAt": "2026-03-04T10:00:00.000Z",
  "updatedAt": "2026-03-04T10:30:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/subratomandal/dyeink/llms.txt

Use this file to discover all available pages before exploring further.

Retrieves a single post by its unique identifier. Published posts are publicly accessible, while unpublished posts can only be accessed by their owner.

Authentication

Authentication is optional. Unauthenticated users can only access published posts. The post owner can access both published and unpublished posts.

Path Parameters

id
string
required
The unique identifier of the post

Response

id
string
Unique identifier for the post
userId
string
ID of the user who owns the post
title
string
The title of the post
slug
string
URL-friendly identifier for the post
content
string
The main content of the post
excerpt
string
Short summary of the post
coverImage
string
URL of the cover image
published
boolean
Publication status
publishedAt
string | null
ISO 8601 timestamp of when the post was published, or null if unpublished
views
number
Number of views
shares
number
Number of shares
createdAt
string
ISO 8601 timestamp of when the post was created
updatedAt
string
ISO 8601 timestamp of when the post was last updated
curl -X GET "https://api.dyeink.com/api/posts/507f1f77bcf86cd799439011" \
  -H "Cookie: session=your_session_token"
{
  "id": "507f1f77bcf86cd799439011",
  "userId": "507f191e810c19729de860ea",
  "title": "My Blog Post",
  "slug": "my-blog-post",
  "content": "# Welcome\n\nThis is my blog post content.",
  "excerpt": "An introduction to my blog",
  "coverImage": "https://example.com/cover.jpg",
  "published": true,
  "publishedAt": "2026-03-04T10:30:00.000Z",
  "views": 42,
  "shares": 5,
  "createdAt": "2026-03-04T10:00:00.000Z",
  "updatedAt": "2026-03-04T10:30:00.000Z"
}

Build docs developers (and LLMs) love