Get all posts
posts
Get all posts
Retrieves all active posts with pagination, filtering, and sorting support
GET
Get all posts
Authorizations
YALG Developer API key. Send it in the x-api-key header from a server-side environment only.
Query Parameters
Page number (default: 1)
Example:
1
Number of posts per page (default: 10)
Example:
10
Filter posts by status
Available options:
drafted, scheduled, published, failed Example:
"draft"
Field to sort by (default: createdAt)
Available options:
createdAt, updatedAt, scheduledAt, publishedAt Example:
"example"
Sort order (default: DESC)
Available options:
ASC, DESC Example:
"example"
Response
Posts retrieved successfully