GET
/
posts
/
{post_id}
Get a post by ID
curl --request GET \
  --url http://localhost:3001/portal-api/posts/{post_id} \
  --header 'Authorization: <api-key>'
{
  "ID": "<string>",
  "Title": "<string>",
  "Lede": "<string>",
  "Content": "<string>",
  "Status": "<string>",
  "Path": "<string>",
  "Categories": [
    {
      "ID": "<string>",
      "Name": "<string>",
      "CreatedAt": "2023-06-25 13:37",
      "UpdatedAt": "2023-06-25 13:37"
    }
  ],
  "Tags": [
    {
      "ID": "<string>",
      "Name": "<string>",
      "CreatedAt": "2023-06-25 13:37",
      "UpdatedAt": "2023-06-25 13:37"
    }
  ],
  "MarkdownEnabled": true,
  "MarkdownContent": "<string>",
  "PreviewContent": "<string>",
  "CreatedAt": "2023-06-25 13:37",
  "UpdatedAt": "2023-06-25 13:37"
}

Authorizations

Authorization
string
header
required

Path Parameters

post_id
integer
required

UID of a post

Example:

1

Response

200 - application/json

OK

ID
string

Unique identifier for the post

Title
string

Title of the post

Lede
string

Short summary or lead paragraph of the post

Content
string

Full content of the post

Status
string

Status of the post (e.g., draft, published)

Path
string

URL path for the post

Categories
object[]

List of categories associated with the post

Tags
object[]

List of tags associated with the post

MarkdownEnabled
boolean

Whether Markdown is enabled for this post

MarkdownContent
string

Content of the post in Markdown format, if Markdown is enabled

PreviewContent
string

Preview content of the post

CreatedAt
string

Timestamp of when this post was created

Example:

"2023-06-25 13:37"

UpdatedAt
string

Timestamp of when this post was last updated

Example:

"2023-06-25 13:37"