Skip to main content
GET
/
api
/
posts
/
public
curl -X GET "https://api.dyeink.com/api/posts/public?subdomain=myblog"
{
  "posts": [
    {
      "id": "507f1f77bcf86cd799439011",
      "userId": "507f191e810c19729de860ea",
      "title": "Latest Blog Post",
      "slug": "latest-blog-post",
      "content": "# Hello World\n\nThis is my latest post.",
      "excerpt": "A brief introduction",
      "coverImage": "https://example.com/cover.jpg",
      "published": true,
      "publishedAt": "2026-03-04T10:30:00.000Z",
      "views": 150,
      "shares": 12,
      "createdAt": "2026-03-04T10:00:00.000Z",
      "updatedAt": "2026-03-04T10:30:00.000Z"
    },
    {
      "id": "507f1f77bcf86cd799439012",
      "userId": "507f191e810c19729de860ea",
      "title": "Previous Post",
      "slug": "previous-post",
      "content": "Another post content.",
      "excerpt": "Another summary",
      "coverImage": "",
      "published": true,
      "publishedAt": "2026-03-03T15:20:00.000Z",
      "views": 89,
      "shares": 7,
      "createdAt": "2026-03-03T15:00:00.000Z",
      "updatedAt": "2026-03-03T15:20: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 all published posts for a specific blog identified by its subdomain or custom domain. This endpoint is used to display posts on public blog sites.

Authentication

No authentication required. Only published posts are returned.

Query Parameters

subdomain
string
The subdomain of the blog (e.g., “myblog” for myblog.dyeink.com). Either subdomain or customDomain must be provided.
customDomain
string
The custom domain of the blog (e.g., “blog.example.com”). Either subdomain or customDomain must be provided.

Response

posts
array
Array of published post objects, sorted by publication date (newest first)
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
Always true for this endpoint
publishedAt
string
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
curl -X GET "https://api.dyeink.com/api/posts/public?subdomain=myblog"
{
  "posts": [
    {
      "id": "507f1f77bcf86cd799439011",
      "userId": "507f191e810c19729de860ea",
      "title": "Latest Blog Post",
      "slug": "latest-blog-post",
      "content": "# Hello World\n\nThis is my latest post.",
      "excerpt": "A brief introduction",
      "coverImage": "https://example.com/cover.jpg",
      "published": true,
      "publishedAt": "2026-03-04T10:30:00.000Z",
      "views": 150,
      "shares": 12,
      "createdAt": "2026-03-04T10:00:00.000Z",
      "updatedAt": "2026-03-04T10:30:00.000Z"
    },
    {
      "id": "507f1f77bcf86cd799439012",
      "userId": "507f191e810c19729de860ea",
      "title": "Previous Post",
      "slug": "previous-post",
      "content": "Another post content.",
      "excerpt": "Another summary",
      "coverImage": "",
      "published": true,
      "publishedAt": "2026-03-03T15:20:00.000Z",
      "views": 89,
      "shares": 7,
      "createdAt": "2026-03-03T15:00:00.000Z",
      "updatedAt": "2026-03-03T15:20:00.000Z"
    }
  ]
}

Build docs developers (and LLMs) love