Skip to main content
Scheduling

List Scheduled

Retrieve a paginated list of scheduled posts awaiting publication.

Endpoint

GET https://api.postpeer.dev/v1/posts/scheduled

Query Parameters

ParameterTypeDefaultDescription
limitinteger20Page size (1–100)
offsetinteger0Number of scheduled posts to skip
sortstring"asc"Sort by scheduledFor: "asc" (next post first) or "desc"

Example

curl "https://api.postpeer.dev/v1/posts/scheduled?limit=5&offset=0" \
  -H "x-access-key: YOUR_API_KEY"

Response

{
  "success": true,
  "total": 12,
  "posts": [
    {
      "postId": "post_xyz789",
      "content": "This post will go live tomorrow morning!",
      "scheduledFor": "2026-03-29T13:00:00.000Z",
      "timezone": "America/New_York",
      "mediaItems": [],
      "platforms": [
        { "platform": "twitter", "status": "pending" }
      ],
      "createdAt": "2026-03-28T15:00:00.000Z"
    }
  ]
}

total is the total number of scheduled posts matching the filter (across all pages). Walk the result set by incrementing offset by limit until you've fetched total items.

Status Codes

CodeMeaning
200Success
400Invalid query parameters

On this page