Skip to main content
GET
/
api
/
posts
curl -X GET "https://api.dyeink.com/api/posts?page=1&limit=10&published=true" \
  -H "Cookie: session=your_session_token"
{
  "posts": [
    {
      "id": "507f1f77bcf86cd799439011",
      "userId": "507f191e810c19729de860ea",
      "title": "My Latest Post",
      "slug": "my-latest-post",
      "content": "# Hello World\n\nThis is my content.",
      "excerpt": "A brief introduction",
      "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"
    },
    {
      "id": "507f1f77bcf86cd799439012",
      "userId": "507f191e810c19729de860ea",
      "title": "Another Post",
      "slug": "another-post",
      "content": "More content here.",
      "excerpt": "Another summary",
      "coverImage": "",
      "published": true,
      "publishedAt": "2026-03-03T15:20:00.000Z",
      "views": 18,
      "shares": 2,
      "createdAt": "2026-03-03T15:00:00.000Z",
      "updatedAt": "2026-03-03T15:20:00.000Z"
    }
  ],
  "total": 2,
  "page": 1,
  "limit": 10
}

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 all posts belonging to the authenticated user with pagination support. Results can be filtered by publication status.

Authentication

This endpoint requires authentication. Include a valid session token in the request.

Query Parameters

page
number
default:"1"
Page number for pagination (1-indexed)
limit
number
default:"50"
Number of posts per page
published
boolean
Filter by publication status. Omit to return all posts regardless of status.

Response

posts
array
Array of post objects
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
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 publication
views
number
Number of views
shares
number
Number of shares
createdAt
string
ISO 8601 timestamp of creation
updatedAt
string
ISO 8601 timestamp of last update
total
number
Total number of posts matching the query
page
number
Current page number
limit
number
Number of posts per page
curl -X GET "https://api.dyeink.com/api/posts?page=1&limit=10&published=true" \
  -H "Cookie: session=your_session_token"
{
  "posts": [
    {
      "id": "507f1f77bcf86cd799439011",
      "userId": "507f191e810c19729de860ea",
      "title": "My Latest Post",
      "slug": "my-latest-post",
      "content": "# Hello World\n\nThis is my content.",
      "excerpt": "A brief introduction",
      "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"
    },
    {
      "id": "507f1f77bcf86cd799439012",
      "userId": "507f191e810c19729de860ea",
      "title": "Another Post",
      "slug": "another-post",
      "content": "More content here.",
      "excerpt": "Another summary",
      "coverImage": "",
      "published": true,
      "publishedAt": "2026-03-03T15:20:00.000Z",
      "views": 18,
      "shares": 2,
      "createdAt": "2026-03-03T15:00:00.000Z",
      "updatedAt": "2026-03-03T15:20:00.000Z"
    }
  ],
  "total": 2,
  "page": 1,
  "limit": 10
}

Build docs developers (and LLMs) love