Skip to main content
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
Example:

Response

200 - application/json
ID
string
Title
string
Lede
string
Content
string
Status
string
Path
string
Categories
object[]
Tags
object[]
MarkdownEnabled
boolean
MarkdownContent
string
PreviewContent
string
CreatedAt
string
Example:
UpdatedAt
string
Example: