Skip to main content
GET
/
api
/
posts
List posts
curl --request GET \
  --url https://api.mymarky.ai/api/posts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "business_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "caption": "<string>",
      "status": "<string>",
      "media_urls": [
        "<string>"
      ],
      "publish_to": [
        "<string>"
      ],
      "adhoc_publish_time": "2023-11-07T05:31:56Z",
      "published_at": "2023-11-07T05:31:56Z",
      "publish_results": [
        {
          "platform": "<string>",
          "status": "<string>",
          "publish_id": "<string>",
          "post_url": "<string>",
          "error_type": "<string>",
          "error_message": "<string>",
          "updated_at": "2023-11-07T05:31:56Z"
        }
      ],
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mymarky.ai/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.

Query Parameters

business_id
string
required

UUID of the business to list posts for

status
enum<string> | null

Filter by post status

Available options:
draft,
scheduled,
published
limit
integer
default:20

Max results per page (1-100)

Required range: 1 <= x <= 100
cursor
string | null

Cursor from previous page's next_cursor

Response

Successful Response

data
PostResponse · object[]
required

Page of results

has_more
boolean
required

Whether more results exist after this page

next_cursor
string | null

Cursor for the next page (pass as ?cursor= parameter)