Skip to main content
GET
/
v1
/
posts
/
scheduled
/
upcoming
Get upcoming scheduled posts
curl --request GET \
  --url https://api.yalg.ai/v1/posts/scheduled/upcoming \
  --header 'x-api-key: <api-key>'
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "content": "Excited to share my thoughts on the future of AI in software development...",
    "status": "scheduled",
    "scheduledAt": "2024-01-16T09:00:00Z",
    "scheduledAtFormatted": "Tomorrow, 9:00 AM",
    "engagement": {
      "likes": 0,
      "comments": 0,
      "shares": 0
    },
    "anecdotes": [
      {
        "id": "anecdote-id",
        "title": "AI Development Experience"
      }
    ],
    "linkedInUrl": null
  }
]

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Query Parameters

limit
number

Number of posts to return (default: 10)

Example:

10

Response

Upcoming scheduled posts retrieved successfully