Skip to main content
GET
/
api
/
v1
/
posts
List posts for the authenticated user
curl --request GET \
  --url https://mallary.ai/api/v1/posts \
  --header 'Authorization: <api-key>'
{
  "status": "ok",
  "data": {
    "posts": [
      {
        "id": 123,
        "message": "<string>",
        "platforms": [
          "<string>"
        ],
        "media": [
          {}
        ],
        "status": "queued",
        "source": "dashboard",
        "scheduled_at": "2023-11-07T05:31:56Z",
        "posted_at": "2023-11-07T05:31:56Z",
        "created_at": "2023-11-07T05:31:56Z",
        "results": [
          {
            "platform": "<string>",
            "success": true,
            "platform_post_id": "<string>",
            "error_message": "<string>",
            "created_at": "2023-11-07T05:31:56Z"
          }
        ],
        "analytics": {}
      }
    ],
    "meta": {
      "page": 123,
      "per_page": 123,
      "total": 123,
      "total_pages": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer {api_key}

Query Parameters

page
integer

Page number (1-based). Default 1.

Required range: x >= 1
per_page
integer

Page size (default 20, max 100).

Required range: 1 <= x <= 100

Response

Posts retrieved

status
enum<string>
Available options:
ok
data
object