Skip to main content
POST
/
post
Create a post
curl --request POST \
  --url https://api.sleekplan.com/v1/post \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "type": "<string>",
  "description": "<string>",
  "status": "<string>",
  "user": 123,
  "created": "2024-01-01 00:00:00"
}
'
{
  "status": "<string>",
  "data": {
    "feedback_id": 123,
    "message": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://sleekplan.com/docs/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
title
string
required

Post title. Plain text only.

type
string
required

Category ID to assign to this post. Every post must have a category.

description
string

Post description. Plain text or Markdown — never HTML.

status
string

Status ID. Defaults to "open".

user
integer

End-user ID to create the post on behalf of a user.

created
string

Creation date in YYYY-MM-DD HH:ii:ss. Must be now or in the past.

Example:

"2024-01-01 00:00:00"

Response

200 - application/json

OK

status
string
data
object